public abstract class AbstractPreparedStatementUpgradeTask extends AbstractInHibernateTransactionUpgradeTask
PreparedStatement upgradeserrors| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPreparedStatementUpgradeTask(@NotNull String shortDescription) |
protected |
AbstractPreparedStatementUpgradeTask(@NotNull String buildNumber,
@NotNull String shortDescription) |
| Modifier and Type | Method and Description |
|---|---|
void |
doUpgrade(@NotNull Connection connection) |
protected abstract String |
getPreparedStatementSql()
Returns the SQL that will be used to init a
PreparedStatement |
protected boolean |
isShouldRunUpgrade(@NotNull 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
@NotNull String buildNumber,
@NotNull
@NotNull String shortDescription)
protected AbstractPreparedStatementUpgradeTask(@NotNull
@NotNull String shortDescription)
public void doUpgrade(@NotNull
@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
@NotNull Statement statement)
statement - Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.