net.jot.test
Class FSUser
java.lang.Object
net.jot.persistance.JOTModel
net.jot.test.FSUser
public class FSUser
- extends JOTModel
Internal JOT class for self-test
Test user for testing of JOTFS DB implementation
- Author:
- thibautc
| Methods inherited from class net.jot.persistance.JOTModel |
createTable, delete, deleteTable, getFieldValue, getFieldValues, getId, getMapping, getQueryImplClass, initQueryImplClass, isNew, save, setId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
firstName
public java.lang.String firstName
lastName
public java.lang.String lastName
age
public int age
FSUser
public FSUser()
defineStorage
public java.lang.String defineStorage()
- Description copied from class:
JOTModel
- Returns the "storage" to be used by this Model.
default is to return JOTModel.DEFAULT_STORAGE (to use the "default" storage).
- Specified by:
defineStorage in class JOTModel
defineVersion
protected int defineVersion()
customize
public void customize(JOTModelMapping mapping)
- Description copied from class:
JOTModel
- Implements the customization (User defined tables modifications, ie: fields mappings, etc ...)
- Specified by:
customize in class JOTModel
upgradeTable
public void upgradeTable(int fromVersion)
resetTable
public void resetTable()
throws java.lang.Exception
- Throws:
java.lang.Exception
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
upgrade
protected void upgrade(int fromVersion,
JOTDBUpgrader upgrader)
throws java.lang.Exception
- Throws:
java.lang.Exception