com.liferay.portal.kernel.upgrade
Class UpgradeProcess

java.lang.Object
  extended by com.liferay.portal.kernel.upgrade.UpgradeProcess

public abstract class UpgradeProcess
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan, Alexander Chow

Constructor Summary
UpgradeProcess()
           
 
Method Summary
protected  void doUpgrade()
           
 int getThreshold()
           
 long increment()
           
 boolean isSupportsAlterColumnName()
           
 boolean isSupportsAlterColumnType()
           
 boolean isSupportsStringCaseSensitiveQuery()
           
 boolean isSupportsUpdateWithInnerJoin()
           
 void runSQL(java.lang.String template)
           
 void runSQL(java.lang.String[] templates)
           
 void runSQLTemplate(java.lang.String path)
           
 void runSQLTemplate(java.lang.String path, boolean failOnError)
           
 void upgrade()
           
 void upgrade(java.lang.Class<?> upgradeProcessClass)
           
 void upgrade(UpgradeProcess upgradeProcess)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeProcess

public UpgradeProcess()
Method Detail

getThreshold

public int getThreshold()

increment

public long increment()
               throws SystemException
Throws:
SystemException

isSupportsAlterColumnName

public boolean isSupportsAlterColumnName()

isSupportsAlterColumnType

public boolean isSupportsAlterColumnType()

isSupportsStringCaseSensitiveQuery

public boolean isSupportsStringCaseSensitiveQuery()

isSupportsUpdateWithInnerJoin

public boolean isSupportsUpdateWithInnerJoin()

runSQL

public void runSQL(java.lang.String template)
            throws java.io.IOException,
                   java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

runSQL

public void runSQL(java.lang.String[] templates)
            throws java.io.IOException,
                   java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

runSQLTemplate

public void runSQLTemplate(java.lang.String path)
                    throws java.io.IOException,
                           javax.naming.NamingException,
                           java.sql.SQLException
Throws:
java.io.IOException
javax.naming.NamingException
java.sql.SQLException

runSQLTemplate

public void runSQLTemplate(java.lang.String path,
                           boolean failOnError)
                    throws java.io.IOException,
                           javax.naming.NamingException,
                           java.sql.SQLException
Throws:
java.io.IOException
javax.naming.NamingException
java.sql.SQLException

upgrade

public void upgrade()
             throws UpgradeException
Throws:
UpgradeException

upgrade

public void upgrade(java.lang.Class<?> upgradeProcessClass)
             throws UpgradeException
Throws:
UpgradeException

upgrade

public void upgrade(UpgradeProcess upgradeProcess)
             throws UpgradeException
Throws:
UpgradeException

doUpgrade

protected void doUpgrade()
                  throws java.lang.Exception
Throws:
java.lang.Exception