|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.transaction.Transactioned org.melati.poem.JdbcPersistent org.paneris.jammyjoes.model.generated.ProductBase org.paneris.jammyjoes.model.Product
public class Product
Nested Class Summary | |
---|---|
class |
Product.StockValues
|
Field Summary |
---|
Fields inherited from class org.paneris.jammyjoes.model.generated.ProductBase |
---|
award, catalogue, costprice, deleted, deliverycost, depth, description, height, id, leadtime, manufacturer, margin, marginpercent, markuppercent, maxage, minage, minimumorder, name, onorderquantity, picture, picture2, pieces, reorderlevel, reorderquantity, retailprice, retailpriceincvat, saleprice, sex, status, stocklevel, supplier, suppliercode, type, type2, vatexempt, weight, width |
Fields inherited from class org.melati.poem.transaction.Transactioned |
---|
valid |
Constructor Summary | |
---|---|
Product()
|
Method Summary | |
---|---|
void |
calculateMargin(java.lang.Double retailprice,
java.lang.Double costprice)
|
void |
clearQuantities()
|
org.melati.poem.Persistent |
duplicated()
when duplicating, the new Persistent needs a zero stock level |
java.lang.Double |
getCostpriceIncVat()
|
boolean |
getDiscontinued()
|
boolean |
getDoWeSellIt()
|
boolean |
getHasStock()
|
java.lang.Boolean |
getNew()
|
java.lang.Double |
getPreSaleprice()
|
int |
getQuantityAjustmentRequired()
|
double |
getQuantityCorrectLevel()
|
double |
getQuantityInternetSale()
|
double |
getQuantityPurchased()
|
double |
getQuantityShopSale()
|
double |
getQuantitySold()
|
java.lang.Double |
getQuantitySoldFromDate(java.sql.Date date)
|
java.lang.Double |
getQuantitySoldToDate(java.sql.Date date)
|
double |
getQuantityStockCheckDecrease()
|
double |
getQuantityStockCheckIncrease()
|
double |
getQuantityTelephoneSale()
|
double |
getRequiredOrderValue()
|
java.lang.Double |
getStockLevel(java.sql.Date date)
|
Product.StockValues |
getStockLevels(java.sql.Date date)
|
boolean |
hasStatus(ProductStatus status)
|
StockTransaction |
newStockTransaction(java.sql.Date date,
StockTransactionType type,
java.lang.Integer quantity)
|
void |
setCostprice(java.lang.Double cooked)
Sets the Costprice value, with checking, for this
Product Persistent . |
void |
setRetailprice(java.lang.Double cooked)
Sets the Retailprice value, with checking, for this
Product Persistent . |
void |
setRetailpriceincvat(java.lang.Double cooked)
Sets the Retailpriceincvat value, with checking, for this
Product Persistent . |
void |
setVatexempt(java.lang.Boolean cooked)
Sets the Vatexempt 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, 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 |
Constructor Detail |
---|
public Product()
Method Detail |
---|
public void setVatexempt(java.lang.Boolean cooked) throws org.melati.poem.AccessPoemException, org.melati.poem.ValidationPoemException
ProductBase
Vatexempt
value, with checking, for this
Product
Persistent
.
setVatexempt
in class ProductBase
cooked
- a validated int
org.melati.poem.AccessPoemException
- if the current AccessToken
does not confer write access rights
org.melati.poem.ValidationPoemException
- if the value is not validpublic boolean hasStatus(ProductStatus status)
public boolean getHasStock()
public boolean getDoWeSellIt()
public boolean getDiscontinued()
public java.lang.Double getPreSaleprice()
public java.lang.Double getCostpriceIncVat()
public void setRetailpriceincvat(java.lang.Double cooked) throws org.melati.poem.AccessPoemException, org.melati.poem.ValidationPoemException
ProductBase
Retailpriceincvat
value, with checking, for this
Product
Persistent
.
setRetailpriceincvat
in class ProductBase
cooked
- a validated int
org.melati.poem.AccessPoemException
- if the current AccessToken
does not confer write access rights
org.melati.poem.ValidationPoemException
- if the value is not validpublic void setRetailprice(java.lang.Double cooked) throws org.melati.poem.AccessPoemException, org.melati.poem.ValidationPoemException
ProductBase
Retailprice
value, with checking, for this
Product
Persistent
.
setRetailprice
in class ProductBase
cooked
- a validated int
org.melati.poem.AccessPoemException
- if the current AccessToken
does not confer write access rights
org.melati.poem.ValidationPoemException
- if the value is not validpublic void setCostprice(java.lang.Double cooked) throws org.melati.poem.AccessPoemException, org.melati.poem.ValidationPoemException
ProductBase
Costprice
value, with checking, for this
Product
Persistent
.
setCostprice
in class ProductBase
cooked
- a validated int
org.melati.poem.AccessPoemException
- if the current AccessToken
does not confer write access rights
org.melati.poem.ValidationPoemException
- if the value is not validpublic void calculateMargin(java.lang.Double retailprice, java.lang.Double costprice)
public void clearQuantities()
public double getQuantityPurchased()
public double getQuantityShopSale()
public double getQuantityInternetSale()
public double getQuantityTelephoneSale()
public double getQuantityStockCheckIncrease()
public double getQuantityStockCheckDecrease()
public double getQuantitySold()
public double getQuantityCorrectLevel()
public int getQuantityAjustmentRequired()
public double getRequiredOrderValue()
public org.melati.poem.Persistent duplicated() throws org.melati.poem.AccessPoemException
duplicated
in interface org.melati.poem.Persistent
duplicated
in class org.melati.poem.JdbcPersistent
org.melati.poem.AccessPoemException
public java.lang.Double getStockLevel(java.sql.Date date)
public java.lang.Double getQuantitySoldToDate(java.sql.Date date)
public java.lang.Double getQuantitySoldFromDate(java.sql.Date date)
public Product.StockValues getStockLevels(java.sql.Date date)
public java.lang.Boolean getNew()
public StockTransaction newStockTransaction(java.sql.Date date, StockTransactionType type, java.lang.Integer quantity)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |