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, setBambooConnectionTemplategetBuildNumber, getErrors, getShortDescriptionprotected AbstractPreparedStatementUpgradeTask(@NotNull
String buildNumber,
@NotNull
String shortDescription)
protected AbstractPreparedStatementUpgradeTask(@NotNull
String shortDescription)
public void doUpgrade(@NotNull
Connection connection)
throws SQLException
doUpgrade in class AbstractInHibernateTransactionUpgradeTaskSQLExceptionprotected abstract String getPreparedStatementSql()
PreparedStatementprotected abstract void prepareStatement(PreparedStatement statement) throws SQLException
PreparedStatementstatement - SQLExceptionprotected boolean isShouldRunUpgrade(@NotNull
Statement statement)
statement - Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.