net.datacrow.core.db
Class Conversion
java.lang.Object
net.datacrow.core.db.Conversion
public class Conversion
- extends java.lang.Object
Manages table conversions based on the module definition.
- Author:
- Robert Jan van der Waals
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Conversion
public Conversion(java.lang.String s)
Conversion
public Conversion(int module)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isNeeded
public boolean isNeeded()
- Checks whether the conversion is actually needed. This check is in place to make
sure older backups can still be restored.
execute
public boolean execute()
- Handles complex conversions. Simple conversions are executed directly on the database.
- Returns:
- See Also:
DatabaseManager.initialize()
getReferencingModuleIdx
public int getReferencingModuleIdx()
setReferencingModuleIdx
public void setReferencingModuleIdx(int referencingModuleIdx)
getModuleIdx
public int getModuleIdx()
setModuleIdx
public void setModuleIdx(int moduleIdx)
getColumnName
public java.lang.String getColumnName()
setColumnName
public void setColumnName(java.lang.String columnName)
getOldFieldType
public int getOldFieldType()
setOldFieldType
public void setOldFieldType(int oldFieldType)
getNewFieldType
public int getNewFieldType()
setNewFieldType
public void setNewFieldType(int newFieldType)