public abstract class AbstractConstraintCreationUpgradeTask extends AbstractUpgradeTask implements DatabaseUpgradeTask
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
protected org.hibernate.SessionFactory |
sessionFactory |
Constructor and Description |
---|
AbstractConstraintCreationUpgradeTask(org.hibernate.SessionFactory sessionFactory) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doBeforeUpgrade(org.hibernate.Session session,
org.springframework.jdbc.core.JdbcTemplate template) |
void |
doUpgrade()
Perform the upgrade.
|
protected abstract List<String> |
getSqlStatementsFromPropertiesFile() |
protected static List<String> |
getSqlStatementsFromPropertiesFile(String propertiesFile) |
static boolean |
uniqueAllowsMultipleNullValues() |
addAllErrors, addError, addError, getBuildNumber, getConstraint, getErrors, getName, getShortDescription, isDatabaseUpgrade, setBeanName, setBuildNumber, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConstraint, getErrors, validate
getBuildNumber, getName, getShortDescription, isDatabaseUpgrade
breaksBackwardCompatibility, runOnSpaceImport
public static final org.slf4j.Logger log
protected final org.hibernate.SessionFactory sessionFactory
public AbstractConstraintCreationUpgradeTask(org.hibernate.SessionFactory sessionFactory)
protected abstract List<String> getSqlStatementsFromPropertiesFile()
protected static List<String> getSqlStatementsFromPropertiesFile(String propertiesFile)
protected abstract void doBeforeUpgrade(org.hibernate.Session session, org.springframework.jdbc.core.JdbcTemplate template)
public final void doUpgrade() throws Exception
UpgradeTask
doUpgrade
in interface UpgradeTask
Exception
doUpgrade(JdbcTemplate)
public static boolean uniqueAllowsMultipleNullValues()
Copyright © 2003–2020 Atlassian. All rights reserved.