org.melati.util.test.generated
Class NodeBase

Package class diagram package NodeBase
java.lang.Object
  extended by org.melati.poem.transaction.Transactioned
      extended by org.melati.poem.JdbcPersistent
          extended by org.melati.util.test.generated.NodeBase
All Implemented Interfaces:
Cloneable, Persistable, Persistent, Treeable
Direct Known Subclasses:
Node

public abstract class NodeBase
extends JdbcPersistent

Melati POEM generated abstract base class for a Persistent Node Object.

See Also:
prepro.TableDef

Field Summary
protected  Integer id
          id
protected  String name
          name - Contact Name
protected  Integer parent
          parent - Parent of this Node
 
Fields inherited from class org.melati.poem.transaction.Transactioned
valid
 
Constructor Summary
NodeBase()
           
 
Method Summary
 Integer getId_unsafe()
          Retrieves the Id value, without locking, for this Node Persistent.
 Integer getId()
          Retrieves the Id value, with locking, for this Node Persistent.
 Field getIdField()
          Retrieves the Id value as a Field from this Node Persistent.
 String getName_unsafe()
          Retrieves the Name value, without locking, for this Node Persistent.
 String getName()
          Retrieves the Name value, with locking, for this Node Persistent.
 Field getNameField()
          Retrieves the Name value as a Field from this Node Persistent.
 NodeTable getNodeTable()
          Retrieves the NodeTable table which this Persistent is from.
 Integer getParent_unsafe()
          Retrieves the Parent value, without locking, for this Node Persistent.
 Node getParent()
          Retrieves the Parent object referred to.
 Field getParentField()
          Retrieves the Parent value as a Field from this Node Persistent.
 Integer getParentTroid()
          Retrieves the Table Row Object ID.
 TreeDatabaseTables getTreeDatabaseTables()
          Retrieves the Database object.
 void setId_unsafe(Integer cooked)
          Sets the Id value directly, without checking, for this Node Persistent.
 void setId(int cooked)
          Sets the Id value, with checking, for this Node Persistent.
 void setId(Integer cooked)
          Sets the Id value, with checking, for this Node Persistent.
 void setName_unsafe(String cooked)
          Sets the Name value directly, without checking, for this Node Persistent.
 void setName(String cooked)
          Sets the Name value, with checking, for this Node Persistent.
 void setParent_unsafe(Integer cooked)
          Sets the Parent value directly, without checking, for this Node Persistent.
 void setParent(Node cooked)
          Set the Parent.
 void setParentTroid(Integer raw)
          Sets the Table Row Object ID.
 
Methods inherited from class org.melati.poem.JdbcPersistent
assertCanCreate, assertCanCreate, assertCanDelete, assertCanDelete, assertCanRead, assertCanRead, assertCanWrite, assertCanWrite, clone, commit, countMatchSQL, delete_unsafe, delete, delete, deleteAndCommit, deleteAndCommit, deleteLock, displayString, displayString, displayString, dump, dump, duplicated, duplicatedFloating, equals, existenceLock, existenceLock, fieldsOfColumns, fromClause, getCanDelete, getCanRead, getCanSelect, getCanWrite, getChildren, getCooked, getCookedString, getDatabase, getDetailDisplayFields, getField, getFields, getPrimaryDisplayField, getRaw, getRawString, getReadable, getRecordDisplayFields, getSearchCriterionFields, getSummaryDisplayFields, getTable, getTroid, hashCode, invalidate, isDirty, load, makePersistent, postEdit, postInsert, postModify, postWrite, preEdit, readLock, readLock, readLock, rollback, setCooked, setDirty, setRaw, setRawString, statusExistent, statusNonexistent, toString, troid, upToDate, writeDown, writeLock, writeLock, writeLock
 
Methods inherited from class org.melati.poem.transaction.Transactioned
markValid, reset, setTransactionPool, transactionPool, unSee
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected Integer id
id


name

protected String name
name - Contact Name


parent

protected Integer parent
parent - Parent of this Node

Constructor Detail

NodeBase

public NodeBase()
Method Detail

getTreeDatabaseTables

public TreeDatabaseTables getTreeDatabaseTables()
Retrieves the Database object.

Returns:
the database
See Also:
prepro.TableDef

getNodeTable

public NodeTable getNodeTable()
Retrieves the NodeTable table which this Persistent is from.

Returns:
the NodeTable
See Also:
prepro.TableDef

getId_unsafe

public Integer getId_unsafe()
Retrieves the Id value, without locking, for this Node Persistent.

Returns:
the Integer id
See Also:
prepro.FieldDef

setId_unsafe

public void setId_unsafe(Integer cooked)
Sets the Id value directly, without checking, for this Node Persistent.

Parameters:
cooked - the pre-validated value to set
See Also:
prepro.FieldDef

getId

public Integer getId()
              throws AccessPoemException
Retrieves the Id value, with locking, for this Node Persistent.

Returns:
the value of the field Id for this Node Persistent
Throws:
AccessPoemException - if the current AccessToken does not confer write access rights
Generator
org.melati.poem.prepro.AtomFieldDef#generateBaseMethods

setId

public void setId(Integer cooked)
           throws AccessPoemException,
                  ValidationPoemException
Sets the Id value, with checking, for this Node Persistent.

Parameters:
cooked - a validated int
Throws:
AccessPoemException - if the current AccessToken does not confer write access rights
ValidationPoemException - if the value is not valid
Generator
org.melati.poem.prepro.AtomFieldDef#generateBaseMethods

setId

public final void setId(int cooked)
                 throws AccessPoemException,
                        ValidationPoemException
Sets the Id value, with checking, for this Node Persistent.

Parameters:
cooked - a validated int
Throws:
AccessPoemException - if the current AccessToken does not confer write access rights
ValidationPoemException - if the value is not valid
Generator
org.melati.poem.prepro.IntegerFieldDef#generateBaseMethods

getIdField

public Field getIdField()
                 throws AccessPoemException
Retrieves the Id value as a Field from this Node Persistent.

Returns:
the Integer id
Throws:
AccessPoemException - if the current AccessToken does not confer write access rights
See Also:
prepro.FieldDef

getName_unsafe

public String getName_unsafe()
Retrieves the Name value, without locking, for this Node Persistent.

Returns:
the String name
See Also:
prepro.FieldDef

setName_unsafe

public void setName_unsafe(String cooked)
Sets the Name value directly, without checking, for this Node Persistent.

Parameters:
cooked - the pre-validated value to set
See Also:
prepro.FieldDef

getName

public String getName()
               throws AccessPoemException
Retrieves the Name value, with locking, for this Node Persistent. Field description: Contact Name

Specified by:
getName in interface Treeable
Overrides:
getName in class JdbcPersistent
Returns:
the value of the field Name for this Node Persistent
Throws:
AccessPoemException - if the current AccessToken does not confer write access rights
Generator
org.melati.poem.prepro.AtomFieldDef#generateBaseMethods

setName

public void setName(String cooked)
             throws AccessPoemException,
                    ValidationPoemException
Sets the Name value, with checking, for this Node Persistent. Field description: Contact Name

Parameters:
cooked - a validated int
Throws:
AccessPoemException - if the current AccessToken does not confer write access rights
ValidationPoemException - if the value is not valid
Generator
org.melati.poem.prepro.AtomFieldDef#generateBaseMethods

getNameField

public Field getNameField()
                   throws AccessPoemException
Retrieves the Name value as a Field from this Node Persistent.

Returns:
the String name
Throws:
AccessPoemException - if the current AccessToken does not confer write access rights
See Also:
prepro.FieldDef

getParent_unsafe

public Integer getParent_unsafe()
Retrieves the Parent value, without locking, for this Node Persistent.

Returns:
the Integer parent
See Also:
prepro.FieldDef

setParent_unsafe

public void setParent_unsafe(Integer cooked)
Sets the Parent value directly, without checking, for this Node Persistent.

Parameters:
cooked - the pre-validated value to set
See Also:
prepro.FieldDef

getParentTroid

public Integer getParentTroid()
                       throws AccessPoemException
Retrieves the Table Row Object ID.

Returns:
the TROID as an Integer
Throws:
AccessPoemException - if the current AccessToken does not confer read access rights
Generator
org.melati.poem.prepro.ReferenceFieldDef#generateBaseMethods

setParentTroid

public void setParentTroid(Integer raw)
                    throws AccessPoemException
Sets the Table Row Object ID.

Parameters:
raw - a Table Row Object Id
Throws:
AccessPoemException - if the current AccessToken does not confer write access rights
Generator
org.melati.poem.prepro.ReferenceFieldDef#generateBaseMethods

getParent

public Node getParent()
               throws AccessPoemException,
                      NoSuchRowPoemException
Retrieves the Parent object referred to.

Returns:
the Parent as a Node
Throws:
AccessPoemException - if the current AccessToken does not confer read access rights
NoSuchRowPoemException - if the Persistent has yet to be allocated a TROID
Generator
org.melati.poem.prepro.ReferenceFieldDef#generateBaseMethods

setParent

public void setParent(Node cooked)
               throws AccessPoemException
Set the Parent.

Parameters:
cooked - a validated Node
Throws:
AccessPoemException - if the current AccessToken does not confer write access rights
Generator
org.melati.poem.prepro.ReferenceFieldDef#generateBaseMethods

getParentField

public Field getParentField()
                     throws AccessPoemException
Retrieves the Parent value as a Field from this Node Persistent.

Returns:
the Integer parent
Throws:
AccessPoemException - if the current AccessToken does not confer write access rights
See Also:
prepro.FieldDef


Copyright © 2000-2010 PanEris. All Rights Reserved.