public abstract class AbstractConstraintCreationUpgradeTask extends AbstractUpgradeTask implements DatabaseUpgradeTask
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
protected net.sf.hibernate.SessionFactory |
sessionFactory |
Constructor and Description |
---|
AbstractConstraintCreationUpgradeTask(net.sf.hibernate.SessionFactory sessionFactory) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doBeforeUpgrade(net.sf.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 net.sf.hibernate.SessionFactory sessionFactory
public AbstractConstraintCreationUpgradeTask(net.sf.hibernate.SessionFactory sessionFactory)
protected abstract List<String> getSqlStatementsFromPropertiesFile()
protected static List<String> getSqlStatementsFromPropertiesFile(String propertiesFile)
protected abstract void doBeforeUpgrade(net.sf.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–2015 Atlassian. All rights reserved.