Liferay 6.2-ce-ga5

com.liferay.portal.kernel.upgrade.util
Class BaseUpgradeColumnImpl

java.lang.Object
  extended by com.liferay.portal.kernel.upgrade.util.BaseUpgradeColumnImpl
All Implemented Interfaces:
UpgradeColumn
Direct Known Subclasses:
DateUpgradeColumnImpl, SwapUpgradeColumnImpl, TempUpgradeColumnImpl

public abstract class BaseUpgradeColumnImpl
extends Object
implements UpgradeColumn


Constructor Summary
BaseUpgradeColumnImpl(String name)
           
BaseUpgradeColumnImpl(String name, Integer oldColumnType)
           
 
Method Summary
 String getName()
           
 Integer getNewColumnType(Integer defaultType)
           
 Object getNewValue()
           
 Integer getOldColumnType(Integer defaultType)
           
 Object getOldValue()
           
 long increment()
           
 boolean isApplicable(String name)
           
 void setNewValue(Object newValue)
           
 void setOldValue(Object oldValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.upgrade.util.UpgradeColumn
getNewValue
 

Constructor Detail

BaseUpgradeColumnImpl

public BaseUpgradeColumnImpl(String name)

BaseUpgradeColumnImpl

public BaseUpgradeColumnImpl(String name,
                             Integer oldColumnType)
Method Detail

getName

public String getName()
Specified by:
getName in interface UpgradeColumn

getNewColumnType

public Integer getNewColumnType(Integer defaultType)
Specified by:
getNewColumnType in interface UpgradeColumn

getNewValue

public Object getNewValue()
Specified by:
getNewValue in interface UpgradeColumn

getOldColumnType

public Integer getOldColumnType(Integer defaultType)
Specified by:
getOldColumnType in interface UpgradeColumn

getOldValue

public Object getOldValue()
Specified by:
getOldValue in interface UpgradeColumn

increment

public long increment()
               throws SystemException
Specified by:
increment in interface UpgradeColumn
Throws:
SystemException

isApplicable

public boolean isApplicable(String name)
Specified by:
isApplicable in interface UpgradeColumn

setNewValue

public void setNewValue(Object newValue)
Specified by:
setNewValue in interface UpgradeColumn

setOldValue

public void setOldValue(Object oldValue)
Specified by:
setOldValue in interface UpgradeColumn

Liferay 6.2-ce-ga5