API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.test.db. TestUser View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTModelAddons
          JOTModel
              TestUser
Implements
Subclasses
Description
public class TestUser
Internal JOT class for self-test Test user for testing of JOTFS DB implementation
See also:   
Constructors
public TestUser ()
Methods
Hide/Show inherited methods
protectedstatic void createTableIfNecessary (JOTTransaction transaction, Class modelClass) throws Exception [Inherited From net.jot.persistance.JOTModelAddons]
Creates the table in the DB, if it doesn't exists yet
public void customize (JOTModelMapping mapping) [Specified in JOTModel]
public String defineStorage () [Inherited From JOTModel]
  Returns the "storage" to be used by this Model.
protected int defineVersion ()
public void delete () throws Exception [Inherited From JOTModel]
public void delete (JOTTransaction transaction) throws Exception [Inherited From JOTModel]
Deletes the coresponding record from the database
publicstatic void deleteWholeTable (JOTTransaction transaction, Class modelClass) throws Exception [Inherited From net.jot.persistance.JOTModelAddons]
  Dump a whole table (model) data into a stream(ie file) in CSV format
public Object getFieldValue (String fieldName) [Inherited From JOTModel]
public Object getFieldValues (JOTModelMapping mapping, JOTSQLCondition conds) [Inherited From JOTModel]
  Return all fields values
public long getId () [Inherited From JOTModel]
publicfinal JOTModelMapping getMapping (JOTTransaction transaction) throws Exception [Inherited From JOTModel]
  Called to get the table mapping.
public Class getQueryImplClass () [Inherited From JOTModel]
public void initQueryImplClass () throws Exception [Inherited From JOTModel]
Deletes the table in the DB
public boolean isNew () [Inherited From JOTModel]
public void resetTable () throws Exception
public void save () throws Exception [Inherited From JOTModel]
public void save (JOTTransaction transaction) throws Exception [Inherited From JOTModel]
Save/update the table in teh database.
publicfinal void setId (int id) [Inherited From JOTModel]
public String toString ()
public void upgradeTable (int fromVersion)
Fields
Hide/Show inherited fields
public int age
publicfinalstatictransient String DEFAULT_STORAGE = "default" [Inherited From JOTModel]
public String firstName
protected long id [Inherited From JOTModel]
The "id" of the object in the database (ie: primary key)
public String lastName
protectedtransient Class queryImplClass [Inherited From JOTModel]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar