org.paneris.bibliomania.generated
Class ProductAssociationBase

java.lang.Object
  extended by org.melati.poem.transaction.Transactioned
      extended by org.melati.poem.JdbcPersistent
          extended by org.paneris.bibliomania.generated.ProductAssociationBase
All Implemented Interfaces:
java.lang.Cloneable, org.melati.poem.Persistable, org.melati.poem.Persistent, org.melati.poem.Treeable
Direct Known Subclasses:
ProductAssociation

public abstract class ProductAssociationBase
extends org.melati.poem.JdbcPersistent

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

See Also:
org.melati.poem.prepro.TableDef#generatePersistentBaseJava

Field Summary
protected  java.lang.Integer author
          author - The author this product is related to
protected  java.lang.Integer book
          book - The book this product is related to
protected  java.lang.Integer id
          id
protected  java.lang.Integer product
          product - The related shop item
 
Fields inherited from class org.melati.poem.transaction.Transactioned
valid
 
Constructor Summary
ProductAssociationBase()
           
 
Method Summary
 java.lang.Integer getAuthor_unsafe()
          Retrieves the Author value, without locking, for this ProductAssociation Persistent.
 Author getAuthor()
          Retrieves the Author object referred to.
 org.melati.poem.Field getAuthorField()
          Retrieves the Author value as a Field from this ProductAssociation Persistent.
 java.lang.Integer getAuthorTroid()
          Retrieves the Table Row Object ID.
 BibliomaniaDatabaseTables getBibliomaniaDatabaseTables()
          Retrieves the Database object.
 java.lang.Integer getBook_unsafe()
          Retrieves the Book value, without locking, for this ProductAssociation Persistent.
 Book getBook()
          Retrieves the Book object referred to.
 org.melati.poem.Field getBookField()
          Retrieves the Book value as a Field from this ProductAssociation Persistent.
 java.lang.Integer getBookTroid()
          Retrieves the Table Row Object ID.
 java.lang.Integer getId_unsafe()
          Retrieves the Id value, without locking, for this ProductAssociation Persistent.
 java.lang.Integer getId()
          Retrieves the Id value, with locking, for this ProductAssociation Persistent.
 org.melati.poem.Field getIdField()
          Retrieves the Id value as a Field from this ProductAssociation Persistent.
 java.lang.Integer getProduct_unsafe()
          Retrieves the Product value, without locking, for this ProductAssociation Persistent.
 Product getProduct()
          Retrieves the Product object referred to.
 ProductAssociationTable getProductAssociationTable()
          Retrieves the ProductAssociationTable table which this Persistent is from.
 org.melati.poem.Field getProductField()
          Retrieves the Product value as a Field from this ProductAssociation Persistent.
 java.lang.Integer getProductTroid()
          Retrieves the Table Row Object ID.
 void setAuthor_unsafe(java.lang.Integer cooked)
          Sets the Author value directly, without checking, for this ProductAssociation Persistent.
 void setAuthor(Author cooked)
          Set the Author.
 void setAuthorTroid(java.lang.Integer raw)
          Sets the Table Row Object ID.
 void setBook_unsafe(java.lang.Integer cooked)
          Sets the Book value directly, without checking, for this ProductAssociation Persistent.
 void setBook(Book cooked)
          Set the Book.
 void setBookTroid(java.lang.Integer raw)
          Sets the Table Row Object ID.
 void setId_unsafe(java.lang.Integer cooked)
          Sets the Id value directly, without checking, for this ProductAssociation Persistent.
 void setId(int cooked)
          Sets the Id value, with checking, for this ProductAssociation Persistent.
 void setId(java.lang.Integer cooked)
          Sets the Id value, with checking, for this ProductAssociation Persistent.
 void setProduct_unsafe(java.lang.Integer cooked)
          Sets the Product value directly, without checking, for this ProductAssociation Persistent.
 void setProduct(Product cooked)
          Set the Product.
 void setProductTroid(java.lang.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, 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 java.lang.Integer id
id


product

protected java.lang.Integer product
product - The related shop item


book

protected java.lang.Integer book
book - The book this product is related to


author

protected java.lang.Integer author
author - The author this product is related to

Constructor Detail

ProductAssociationBase

public ProductAssociationBase()
Method Detail

getBibliomaniaDatabaseTables

public BibliomaniaDatabaseTables getBibliomaniaDatabaseTables()
Retrieves the Database object.

Returns:
the database
See Also:
org.melati.poem.prepro.TableDef#generatePersistentBaseJava

getProductAssociationTable

public ProductAssociationTable getProductAssociationTable()
Retrieves the ProductAssociationTable table which this Persistent is from.

Returns:
the ProductAssociationTable
See Also:
org.melati.poem.prepro.TableDef#generatePersistentBaseJava

getId_unsafe

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

Returns:
the Integer id
See Also:
org.melati.poem.prepro.FieldDef#generateBaseMethods

setId_unsafe

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

Parameters:
cooked - the pre-validated value to set
See Also:
org.melati.poem.prepro.FieldDef#generateBaseMethods

getId

public java.lang.Integer getId()
                        throws org.melati.poem.AccessPoemException
Retrieves the Id value, with locking, for this ProductAssociation Persistent.

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

setId

public void setId(java.lang.Integer cooked)
           throws org.melati.poem.AccessPoemException,
                  org.melati.poem.ValidationPoemException
Sets the Id value, with checking, for this ProductAssociation Persistent.

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

setId

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

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

getIdField

public org.melati.poem.Field getIdField()
                                 throws org.melati.poem.AccessPoemException
Retrieves the Id value as a Field from this ProductAssociation Persistent.

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

getProduct_unsafe

public java.lang.Integer getProduct_unsafe()
Retrieves the Product value, without locking, for this ProductAssociation Persistent.

Returns:
the Integer product
See Also:
org.melati.poem.prepro.FieldDef#generateBaseMethods

setProduct_unsafe

public void setProduct_unsafe(java.lang.Integer cooked)
Sets the Product value directly, without checking, for this ProductAssociation Persistent.

Parameters:
cooked - the pre-validated value to set
See Also:
org.melati.poem.prepro.FieldDef#generateBaseMethods

getProductTroid

public java.lang.Integer getProductTroid()
                                  throws org.melati.poem.AccessPoemException
Retrieves the Table Row Object ID.

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

setProductTroid

public void setProductTroid(java.lang.Integer raw)
                     throws org.melati.poem.AccessPoemException
Sets the Table Row Object ID.

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

getProduct

public Product getProduct()
                   throws org.melati.poem.AccessPoemException,
                          org.melati.poem.NoSuchRowPoemException
Retrieves the Product object referred to.

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

setProduct

public void setProduct(Product cooked)
                throws org.melati.poem.AccessPoemException
Set the Product.

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

getProductField

public org.melati.poem.Field getProductField()
                                      throws org.melati.poem.AccessPoemException
Retrieves the Product value as a Field from this ProductAssociation Persistent.

Returns:
the Integer product
Throws:
org.melati.poem.AccessPoemException - if the current AccessToken does not confer write access rights
See Also:
org.melati.poem.prepro.FieldDef#generateFieldCreator

getBook_unsafe

public java.lang.Integer getBook_unsafe()
Retrieves the Book value, without locking, for this ProductAssociation Persistent.

Returns:
the Integer book
See Also:
org.melati.poem.prepro.FieldDef#generateBaseMethods

setBook_unsafe

public void setBook_unsafe(java.lang.Integer cooked)
Sets the Book value directly, without checking, for this ProductAssociation Persistent.

Parameters:
cooked - the pre-validated value to set
See Also:
org.melati.poem.prepro.FieldDef#generateBaseMethods

getBookTroid

public java.lang.Integer getBookTroid()
                               throws org.melati.poem.AccessPoemException
Retrieves the Table Row Object ID.

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

setBookTroid

public void setBookTroid(java.lang.Integer raw)
                  throws org.melati.poem.AccessPoemException
Sets the Table Row Object ID.

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

getBook

public Book getBook()
             throws org.melati.poem.AccessPoemException,
                    org.melati.poem.NoSuchRowPoemException
Retrieves the Book object referred to.

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

setBook

public void setBook(Book cooked)
             throws org.melati.poem.AccessPoemException
Set the Book.

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

getBookField

public org.melati.poem.Field getBookField()
                                   throws org.melati.poem.AccessPoemException
Retrieves the Book value as a Field from this ProductAssociation Persistent.

Returns:
the Integer book
Throws:
org.melati.poem.AccessPoemException - if the current AccessToken does not confer write access rights
See Also:
org.melati.poem.prepro.FieldDef#generateFieldCreator

getAuthor_unsafe

public java.lang.Integer getAuthor_unsafe()
Retrieves the Author value, without locking, for this ProductAssociation Persistent.

Returns:
the Integer author
See Also:
org.melati.poem.prepro.FieldDef#generateBaseMethods

setAuthor_unsafe

public void setAuthor_unsafe(java.lang.Integer cooked)
Sets the Author value directly, without checking, for this ProductAssociation Persistent.

Parameters:
cooked - the pre-validated value to set
See Also:
org.melati.poem.prepro.FieldDef#generateBaseMethods

getAuthorTroid

public java.lang.Integer getAuthorTroid()
                                 throws org.melati.poem.AccessPoemException
Retrieves the Table Row Object ID.

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

setAuthorTroid

public void setAuthorTroid(java.lang.Integer raw)
                    throws org.melati.poem.AccessPoemException
Sets the Table Row Object ID.

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

getAuthor

public Author getAuthor()
                 throws org.melati.poem.AccessPoemException,
                        org.melati.poem.NoSuchRowPoemException
Retrieves the Author object referred to.

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

setAuthor

public void setAuthor(Author cooked)
               throws org.melati.poem.AccessPoemException
Set the Author.

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

getAuthorField

public org.melati.poem.Field getAuthorField()
                                     throws org.melati.poem.AccessPoemException
Retrieves the Author value as a Field from this ProductAssociation Persistent.

Returns:
the Integer author
Throws:
org.melati.poem.AccessPoemException - if the current AccessToken does not confer write access rights
See Also:
org.melati.poem.prepro.FieldDef#generateFieldCreator


Copyright © 2000-2009 PanEris. All Rights Reserved.