org.melati.example.contacts.generated
Class ContactCategoryBase

Package class diagram package ContactCategoryBase
java.lang.Object
  extended by org.melati.poem.transaction.Transactioned
      extended by org.melati.poem.JdbcPersistent
          extended by org.melati.example.contacts.generated.ContactCategoryBase
All Implemented Interfaces:
Cloneable, Persistable, Persistent, Treeable
Direct Known Subclasses:
ContactCategory

public abstract class ContactCategoryBase
extends JdbcPersistent

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

See Also:
TableDef.generatePersistentBaseJava(java.io.Writer)

Field Summary
protected  Integer category
          category - Category
protected  Integer contact
          contact - Contact
protected  Integer id
          id
 
Fields inherited from class org.melati.poem.transaction.Transactioned
valid
 
Constructor Summary
ContactCategoryBase()
           
 
Method Summary
 Integer getCategory_unsafe()
          Retrieves the Category value, without locking, for this ContactCategory Persistent.
 Category getCategory()
          Retrieves the Category object referred to.
 Field getCategoryField()
          Retrieves the Category value as a Field from this ContactCategory Persistent.
 Integer getCategoryTroid()
          Retrieves the Table Row Object ID.
 Integer getContact_unsafe()
          Retrieves the Contact value, without locking, for this ContactCategory Persistent.
 Contact getContact()
          Retrieves the Contact object referred to.
 ContactCategoryTable getContactCategoryTable()
          Retrieves the ContactCategoryTable table which this Persistent is from.
 Field getContactField()
          Retrieves the Contact value as a Field from this ContactCategory Persistent.
 ContactsDatabaseTables getContactsDatabaseTables()
          Retrieves the Database object.
 Integer getContactTroid()
          Retrieves the Table Row Object ID.
 Integer getId_unsafe()
          Retrieves the Id value, without locking, for this ContactCategory Persistent.
 Integer getId()
          Retrieves the Id value, with locking, for this ContactCategory Persistent.
 Field getIdField()
          Retrieves the Id value as a Field from this ContactCategory Persistent.
 void setCategory_unsafe(Integer cooked)
          Sets the Category value directly, without checking, for this ContactCategory Persistent.
 void setCategory(Category cooked)
          Set the Category.
 void setCategoryTroid(Integer raw)
          Sets the Table Row Object ID.
 void setContact_unsafe(Integer cooked)
          Sets the Contact value directly, without checking, for this ContactCategory Persistent.
 void setContact(Contact cooked)
          Set the Contact.
 void setContactTroid(Integer raw)
          Sets the Table Row Object ID.
 void setId_unsafe(Integer cooked)
          Sets the Id value directly, without checking, for this ContactCategory Persistent.
 void setId(int cooked)
          Sets the Id value, with checking, for this ContactCategory Persistent.
 void setId(Integer cooked)
          Sets the Id value, with checking, for this ContactCategory Persistent.
 
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, getName, 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


category

protected Integer category
category - Category


contact

protected Integer contact
contact - Contact

Constructor Detail

ContactCategoryBase

public ContactCategoryBase()
Method Detail

getContactsDatabaseTables

public ContactsDatabaseTables getContactsDatabaseTables()
Retrieves the Database object.

Returns:
the database
See Also:
TableDef.generatePersistentBaseJava(java.io.Writer)

getContactCategoryTable

public ContactCategoryTable getContactCategoryTable()
Retrieves the ContactCategoryTable table which this Persistent is from.

Returns:
the ContactCategoryTable
See Also:
TableDef.generatePersistentBaseJava(java.io.Writer)

getId_unsafe

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

Returns:
the Integer id
See Also:
FieldDef.generateBaseMethods(java.io.Writer)

setId_unsafe

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

Parameters:
cooked - the pre-validated value to set
See Also:
FieldDef.generateBaseMethods(java.io.Writer)

getId

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

Returns:
the value of the field Id for this ContactCategory 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 ContactCategory 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 ContactCategory 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 ContactCategory Persistent.

Returns:
the Integer id
Throws:
AccessPoemException - if the current AccessToken does not confer write access rights
See Also:
FieldDef.generateFieldCreator(java.io.Writer)

getCategory_unsafe

public Integer getCategory_unsafe()
Retrieves the Category value, without locking, for this ContactCategory Persistent.

Returns:
the Integer category
See Also:
FieldDef.generateBaseMethods(java.io.Writer)

setCategory_unsafe

public void setCategory_unsafe(Integer cooked)
Sets the Category value directly, without checking, for this ContactCategory Persistent.

Parameters:
cooked - the pre-validated value to set
See Also:
FieldDef.generateBaseMethods(java.io.Writer)

getCategoryTroid

public Integer getCategoryTroid()
                         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

setCategoryTroid

public void setCategoryTroid(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

getCategory

public Category getCategory()
                     throws AccessPoemException,
                            NoSuchRowPoemException
Retrieves the Category object referred to.

Returns:
the Category as a Category
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

setCategory

public void setCategory(Category cooked)
                 throws AccessPoemException
Set the Category.

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

getCategoryField

public Field getCategoryField()
                       throws AccessPoemException
Retrieves the Category value as a Field from this ContactCategory Persistent.

Returns:
the Integer category
Throws:
AccessPoemException - if the current AccessToken does not confer write access rights
See Also:
FieldDef.generateFieldCreator(java.io.Writer)

getContact_unsafe

public Integer getContact_unsafe()
Retrieves the Contact value, without locking, for this ContactCategory Persistent.

Returns:
the Integer contact
See Also:
FieldDef.generateBaseMethods(java.io.Writer)

setContact_unsafe

public void setContact_unsafe(Integer cooked)
Sets the Contact value directly, without checking, for this ContactCategory Persistent.

Parameters:
cooked - the pre-validated value to set
See Also:
FieldDef.generateBaseMethods(java.io.Writer)

getContactTroid

public Integer getContactTroid()
                        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

setContactTroid

public void setContactTroid(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

getContact

public Contact getContact()
                   throws AccessPoemException,
                          NoSuchRowPoemException
Retrieves the Contact object referred to.

Returns:
the Contact as a Contact
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

setContact

public void setContact(Contact cooked)
                throws AccessPoemException
Set the Contact.

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

getContactField

public Field getContactField()
                      throws AccessPoemException
Retrieves the Contact value as a Field from this ContactCategory Persistent.

Returns:
the Integer contact
Throws:
AccessPoemException - if the current AccessToken does not confer write access rights
See Also:
FieldDef.generateFieldCreator(java.io.Writer)


Copyright © 2000-2010 PanEris. All Rights Reserved.