org.archiviststoolkit.maintenance.upgrades
Class UpgradeTo_1_5_2

java.lang.Object
  extended by org.archiviststoolkit.maintenance.upgrades.Upgrade
      extended by org.archiviststoolkit.maintenance.upgrades.UpgradeTo_1_5_2

public class UpgradeTo_1_5_2
extends Upgrade

Archivists' Toolkit(TM) Copyright © 2005-2007 Regents of the University of California, New York University, & Five Colleges, Inc. All rights reserved. This software is free. You can redistribute it and / or modify it under the terms of the Educational Community License (ECL) version 1.0 (http://www.opensource.org/licenses/ecl1.php) This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ECL license for more details about permissions and limitations. Archivists' Toolkit(TM) http://www.archiviststoolkit.org info@archiviststoolkit.org Created by IntelliJ IDEA. User: Nathan Stevens Date: Nov 25, 2008 Time: 10:50:35 AM


Field Summary
 
Fields inherited from class org.archiviststoolkit.maintenance.upgrades.Upgrade
errorString
 
Constructor Summary
UpgradeTo_1_5_2()
           
 
Method Summary
protected  boolean doUpgrade(java.sql.Connection conn, int initialStep, int numberOfSteps, org.netbeans.spi.wizard.DeferredWizardResult.ResultProgressHandle progress)
           
protected  int getNumberOfSteps()
           
protected  boolean runFieldInit()
           
protected  boolean runPostDBInitializationSQLCode(java.sql.Connection conn)
          Method to run SQL code that needs to be executed after hibernate has been initialized should circumvent some of the chicken and the egg problem where a table that hibernate creates needs to be updated by SQL code cause it is just easier
protected  boolean upgradeNeeded(java.sql.Connection conn)
           
 
Methods inherited from class org.archiviststoolkit.maintenance.upgrades.Upgrade
fixListValues, getErrorString, getWarningMessage, runDetermineSequenceNumbers, runLoadLookupLists, runPostDBInitializationCode, setErrorString, updateFieldValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeTo_1_5_2

public UpgradeTo_1_5_2()
Method Detail

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

getNumberOfSteps

protected int getNumberOfSteps()
Specified by:
getNumberOfSteps 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

runFieldInit

protected boolean runFieldInit()
Overrides:
runFieldInit in class Upgrade

runPostDBInitializationSQLCode

protected boolean runPostDBInitializationSQLCode(java.sql.Connection conn)
Description copied from class: Upgrade
Method to run SQL code that needs to be executed after hibernate has been initialized should circumvent some of the chicken and the egg problem where a table that hibernate creates needs to be updated by SQL code cause it is just easier

Overrides:
runPostDBInitializationSQLCode in class Upgrade
Parameters:
conn - The connection to the database
Returns:
Whether the sql commands executed without error