org.paneris.rimauresq.model.generated
Class ProductBase

java.lang.Object
  extended by org.melati.poem.transaction.Transactioned
      extended by org.melati.poem.JdbcPersistent
          extended by org.paneris.rimauresq.model.generated.ProductBase
All Implemented Interfaces:
java.lang.Cloneable, org.melati.poem.Persistable, org.melati.poem.Persistent, org.melati.poem.Treeable
Direct Known Subclasses:
Product

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

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


Field Summary
protected  java.lang.String description
          Description - Tasting note
protected  java.lang.Integer id
          id
protected  java.lang.String name
          Item - Product name
protected  java.math.BigDecimal price
          Retail Price inc VAT
 
Fields inherited from class org.melati.poem.transaction.Transactioned
valid
 
Constructor Summary
ProductBase()
           
 
Method Summary
 java.lang.String getDescription_unsafe()
          Retrieves the Description value, without locking, for this Product Persistent.
 java.lang.String getDescription()
          Retrieves the Description value, with locking, for this Product Persistent.
 org.melati.poem.Field getDescriptionField()
          Retrieves the Description value as a Field from this Product Persistent.
 java.lang.Integer getId_unsafe()
          Retrieves the Id value, without locking, for this Product Persistent.
 java.lang.Integer getId()
          Retrieves the Id value, with locking, for this Product Persistent.
 org.melati.poem.Field getIdField()
          Retrieves the Id value as a Field from this Product Persistent.
 java.lang.String getName_unsafe()
          Retrieves the Name value, without locking, for this Product Persistent.
 java.lang.String getName()
          Retrieves the Name value, with locking, for this Product Persistent.
 org.melati.poem.Field getNameField()
          Retrieves the Name value as a Field from this Product Persistent.
 java.math.BigDecimal getPrice_unsafe()
          Retrieves the Price value, without locking, for this Product Persistent.
 java.math.BigDecimal getPrice()
          Retrieves the Price value, with locking, for this Product Persistent.
 org.melati.poem.Field getPriceField()
          Retrieves the Price value as a Field from this Product Persistent.
 ProductTable getProductTable()
          Retrieves the ProductTable table which this Persistent is from.
 RimauresqDatabaseTables getRimauresqDatabaseTables()
          Retrieves the Database object.
 void setDescription_unsafe(java.lang.String cooked)
          Sets the Description value directly, without checking, for this Product Persistent.
 void setDescription(java.lang.String cooked)
          Sets the Description value, with checking, for this Product Persistent.
 void setId_unsafe(java.lang.Integer cooked)
          Sets the Id value directly, without checking, for this Product Persistent.
 void setId(int cooked)
          Sets the Id value, with checking, for this Product Persistent.
 void setId(java.lang.Integer cooked)
          Sets the Id value, with checking, for this Product Persistent.
 void setName_unsafe(java.lang.String cooked)
          Sets the Name value directly, without checking, for this Product Persistent.
 void setName(java.lang.String cooked)
          Sets the Name value, with checking, for this Product Persistent.
 void setPrice_unsafe(java.math.BigDecimal cooked)
          Sets the Price value directly, without checking, for this Product Persistent.
 void setPrice(java.math.BigDecimal cooked)
          Sets the Price value, with checking, for this Product 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, 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


name

protected java.lang.String name
Item - Product name


description

protected java.lang.String description
Description - Tasting note


price

protected java.math.BigDecimal price
Retail Price inc VAT

Constructor Detail

ProductBase

public ProductBase()
Method Detail

getRimauresqDatabaseTables

public RimauresqDatabaseTables getRimauresqDatabaseTables()
Retrieves the Database object.

Returns:
the database

getProductTable

public ProductTable getProductTable()
Retrieves the ProductTable table which this Persistent is from.

Returns:
the ProductTable

getId_unsafe

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

Returns:
the Integer id

setId_unsafe

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

Parameters:
cooked - the pre-validated value to set

getId

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

Returns:
the value of the field Id for this Product Persistent
Throws:
org.melati.poem.AccessPoemException - if the current AccessToken does not confer write access rights

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 Product 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

setId

public final void setId(int cooked)
                 throws org.melati.poem.AccessPoemException,
                        org.melati.poem.ValidationPoemException
Sets the Id value, with checking, for this Product 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

getIdField

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

Returns:
the Integer id
Throws:
org.melati.poem.AccessPoemException - if the current AccessToken does not confer write access rights

getName_unsafe

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

Returns:
the String name

setName_unsafe

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

Parameters:
cooked - the pre-validated value to set

getName

public java.lang.String getName()
                         throws org.melati.poem.AccessPoemException
Retrieves the Name value, with locking, for this Product Persistent. Field description: Product name

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

setName

public void setName(java.lang.String cooked)
             throws org.melati.poem.AccessPoemException,
                    org.melati.poem.ValidationPoemException
Sets the Name value, with checking, for this Product Persistent. Field description: Product name

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

getNameField

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

Returns:
the String name
Throws:
org.melati.poem.AccessPoemException - if the current AccessToken does not confer write access rights

getDescription_unsafe

public java.lang.String getDescription_unsafe()
Retrieves the Description value, without locking, for this Product Persistent.

Returns:
the String description

setDescription_unsafe

public void setDescription_unsafe(java.lang.String cooked)
Sets the Description value directly, without checking, for this Product Persistent.

Parameters:
cooked - the pre-validated value to set

getDescription

public java.lang.String getDescription()
                                throws org.melati.poem.AccessPoemException
Retrieves the Description value, with locking, for this Product Persistent. Field description: Tasting note

Returns:
the value of the field Description for this Product Persistent
Throws:
org.melati.poem.AccessPoemException - if the current AccessToken does not confer write access rights

setDescription

public void setDescription(java.lang.String cooked)
                    throws org.melati.poem.AccessPoemException,
                           org.melati.poem.ValidationPoemException
Sets the Description value, with checking, for this Product Persistent. Field description: Tasting note

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

getDescriptionField

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

Returns:
the String description
Throws:
org.melati.poem.AccessPoemException - if the current AccessToken does not confer write access rights

getPrice_unsafe

public java.math.BigDecimal getPrice_unsafe()
Retrieves the Price value, without locking, for this Product Persistent.

Returns:
the BigDecimal price

setPrice_unsafe

public void setPrice_unsafe(java.math.BigDecimal cooked)
Sets the Price value directly, without checking, for this Product Persistent.

Parameters:
cooked - the pre-validated value to set

getPrice

public java.math.BigDecimal getPrice()
                              throws org.melati.poem.AccessPoemException
Retrieves the Price value, with locking, for this Product Persistent.

Returns:
the value of the field Price for this Product Persistent
Throws:
org.melati.poem.AccessPoemException - if the current AccessToken does not confer write access rights

setPrice

public void setPrice(java.math.BigDecimal cooked)
              throws org.melati.poem.AccessPoemException,
                     org.melati.poem.ValidationPoemException
Sets the Price value, with checking, for this Product 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

getPriceField

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

Returns:
the BigDecimal price
Throws:
org.melati.poem.AccessPoemException - if the current AccessToken does not confer write access rights


Copyright © 2000-2009 PanEris. All Rights Reserved.