org.archiviststoolkit.maintenance.upgrades
Class UpgradeTo_1_7_0
java.lang.Object
org.archiviststoolkit.maintenance.upgrades.Upgrade
org.archiviststoolkit.maintenance.upgrades.UpgradeTo_1_7_0
public class UpgradeTo_1_7_0
- extends Upgrade
Fields inherited from class org.archiviststoolkit.maintenance.upgrades.Upgrade |
errorString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpgradeTo_1_7_0
public UpgradeTo_1_7_0()
doUpgrade
protected boolean doUpgrade(java.sql.Connection conn,
int initialStep,
int numberOfSteps,
org.netbeans.spi.wizard.DeferredWizardResult.ResultProgressHandle progress)
- Specified by:
doUpgrade
in class Upgrade
runPostDBInitializationSQLCode
protected boolean runPostDBInitializationSQLCode(java.sql.Connection conn)
- Run any sql and hibernate code that needs to be ran after the database has been
initialized by hibernate.
- Overrides:
runPostDBInitializationSQLCode
in class Upgrade
- Parameters:
conn
- The connection to the database
- Returns:
- true if all the code executed fine
setRepository
protected void setRepository(DigitalObjects digitalObject,
Repositories repository)
- Method to set the digital object repositories
- Parameters:
digitalObject
- The digital objectrepository
- The repository
getNumberOfSteps
protected int getNumberOfSteps()
- Specified by:
getNumberOfSteps
in class Upgrade
runLoadLookupLists
protected boolean runLoadLookupLists()
- Overrides:
runLoadLookupLists
in class Upgrade
runFieldInit
protected boolean runFieldInit()
- Overrides:
runFieldInit
in class Upgrade
upgradeNeeded
protected boolean upgradeNeeded(java.sql.Connection conn)
throws java.sql.SQLException
- Specified by:
upgradeNeeded
in class Upgrade
- Throws:
java.sql.SQLException
getWarningMessage
protected java.lang.String getWarningMessage()
- Overrides:
getWarningMessage
in class Upgrade