public abstract class AbstractPreparedStatementUpgradeTask extends AbstractInHibernateTransactionUpgradeTask
PreparedStatement
upgradeserrors
Modifier | Constructor and Description |
---|---|
protected |
AbstractPreparedStatementUpgradeTask(String shortDescription) |
protected |
AbstractPreparedStatementUpgradeTask(String buildNumber,
String shortDescription) |
Modifier and Type | Method and Description |
---|---|
void |
doUpgrade(Connection connection) |
protected abstract String |
getPreparedStatementSql()
Returns the SQL that will be used to init a
PreparedStatement |
protected boolean |
isShouldRunUpgrade(Statement statement)
Whether or not the upgrade task should actually run
|
protected abstract void |
prepareStatement(PreparedStatement statement)
Sets the various values in a
PreparedStatement |
doUpgrade, setBambooConnectionTemplate
getBuildNumber, getErrors, getShortDescription
protected AbstractPreparedStatementUpgradeTask(@NotNull String buildNumber, @NotNull String shortDescription)
protected AbstractPreparedStatementUpgradeTask(@NotNull String shortDescription)
public void doUpgrade(@NotNull Connection connection) throws SQLException
doUpgrade
in class AbstractInHibernateTransactionUpgradeTask
SQLException
protected abstract String getPreparedStatementSql()
PreparedStatement
protected abstract void prepareStatement(PreparedStatement statement) throws SQLException
PreparedStatement
statement
- SQLException
protected boolean isShouldRunUpgrade(@NotNull Statement statement)
statement
- Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.