org.paneris.jammyjoes.model
Class StockTransaction

java.lang.Object
  extended by org.melati.poem.transaction.Transactioned
      extended by org.melati.poem.JdbcPersistent
          extended by org.paneris.jammyjoes.model.generated.StockTransactionBase
              extended by org.paneris.jammyjoes.model.StockTransaction
All Implemented Interfaces:
java.lang.Cloneable, org.melati.poem.Persistable, org.melati.poem.Persistent, org.melati.poem.Treeable

public class StockTransaction
extends StockTransactionBase


Field Summary
 
Fields inherited from class org.paneris.jammyjoes.model.generated.StockTransactionBase
comment, costprice, date, id, product, quantity, retailpriceincvat, type, vatexempt
 
Fields inherited from class org.melati.poem.transaction.Transactioned
valid
 
Constructor Summary
StockTransaction()
           
 
Method Summary
 void delete(java.util.Map map)
           
 void setDate(java.sql.Date cooked)
          Sets the Date value, with checking, for this StockTransaction Persistent.
 void setProductTroid(java.lang.Integer raw)
          Sets the Table Row Object ID.
 void setQuantity(java.lang.Integer cooked)
          Sets the Quantity value, with checking, for this StockTransaction Persistent.
 void setThisProductQuantity(int q)
           
 void setTypeTroid(java.lang.Integer raw)
          Sets the Table Row Object ID.
 
Methods inherited from class org.paneris.jammyjoes.model.generated.StockTransactionBase
getComment_unsafe, getComment, getCommentField, getCostprice_unsafe, getCostprice, getCostpriceField, getDate_unsafe, getDate, getDateField, getId_unsafe, getId, getIdField, getJammyjoesDatabaseTables, getProduct_unsafe, getProduct, getProductField, getProductTroid, getQuantity_unsafe, getQuantity, getQuantityField, getRetailpriceincvat_unsafe, getRetailpriceincvat, getRetailpriceincvatField, getStockTransactionTable, getType_unsafe, getType, getTypeField, getTypeTroid, getVatexempt_unsafe, getVatexempt, getVatexemptField, setComment_unsafe, setComment, setCostprice_unsafe, setCostprice, setCostprice, setDate_unsafe, setId_unsafe, setId, setId, setProduct_unsafe, setProduct, setQuantity_unsafe, setQuantity, setRetailpriceincvat_unsafe, setRetailpriceincvat, setRetailpriceincvat, setType_unsafe, setType, setVatexempt_unsafe, setVatexempt, setVatexempt
 
Methods inherited from class org.melati.poem.JdbcPersistent
assertCanCreate, assertCanCreate, assertCanDelete, assertCanDelete, assertCanRead, assertCanRead, assertCanWrite, assertCanWrite, clone, commit, countMatchSQL, delete_unsafe, 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
 

Constructor Detail

StockTransaction

public StockTransaction()
Method Detail

setDate

public void setDate(java.sql.Date cooked)
             throws org.melati.poem.AccessPoemException,
                    org.melati.poem.ValidationPoemException
Description copied from class: StockTransactionBase
Sets the Date value, with checking, for this StockTransaction Persistent. Field description: Leave blank for today's date

Overrides:
setDate in class StockTransactionBase
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

delete

public final void delete(java.util.Map map)
                  throws org.melati.poem.AccessPoemException,
                         org.melati.poem.DeletionIntegrityPoemException
Specified by:
delete in interface org.melati.poem.Persistent
Overrides:
delete in class org.melati.poem.JdbcPersistent
Throws:
org.melati.poem.AccessPoemException
org.melati.poem.DeletionIntegrityPoemException

setThisProductQuantity

public void setThisProductQuantity(int q)

setQuantity

public void setQuantity(java.lang.Integer cooked)
                 throws org.melati.poem.AccessPoemException,
                        org.melati.poem.ValidationPoemException
Description copied from class: StockTransactionBase
Sets the Quantity value, with checking, for this StockTransaction Persistent.

Overrides:
setQuantity in class StockTransactionBase
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

setTypeTroid

public void setTypeTroid(java.lang.Integer raw)
                  throws org.melati.poem.AccessPoemException
Description copied from class: StockTransactionBase
Sets the Table Row Object ID.

Overrides:
setTypeTroid in class StockTransactionBase
Parameters:
raw - a Table Row Object Id
Throws:
org.melati.poem.AccessPoemException - if the current AccessToken does not confer write access rights

setProductTroid

public void setProductTroid(java.lang.Integer raw)
                     throws org.melati.poem.AccessPoemException
Description copied from class: StockTransactionBase
Sets the Table Row Object ID.

Overrides:
setProductTroid in class StockTransactionBase
Parameters:
raw - a Table Row Object Id
Throws:
org.melati.poem.AccessPoemException - if the current AccessToken does not confer write access rights


Copyright © 2001-2008 PanEris. All Rights Reserved.