public class StockReservation extends java.lang.Object implements StockReservationIf
| Constructor and Description |
|---|
StockReservation()
Constructor
|
StockReservation(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Tag object from a Record object
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCustomerId() |
java.lang.String |
getEncodedOptionValues()
encodedOptionValues
|
int |
getId()
The unique numeric reservation id
|
int |
getProductId() |
int |
getQtyResrvdForResId()
The number of products reserved for this reservation
|
java.util.Calendar |
getReservationEndTime()
The reservation end time
|
java.util.Calendar |
getReservationStartTime()
The reservation start time
|
boolean |
isExpired() |
void |
setCustomerId(int customerId) |
void |
setEncodedOptionValues(java.lang.String encodedOptionValues)
encodedOptionValues
|
void |
setId(int id)
The unique numeric reservation id
|
void |
setProductId(int productId) |
void |
setQtyResrvdForResId(int qtyResrvdForResId)
The number of products reserved for this reservation
|
void |
setReservationEndTime(java.util.Calendar reservationEndTime)
The reservation end time
|
void |
setReservationStartTime(java.util.Calendar reservationStartTime)
The reservation start time
|
java.lang.String |
toString() |
public StockReservation()
public StockReservation(com.workingdogs.village.Record vr,
KKCriteria c)
throws com.workingdogs.village.DataSetException
vr - Record containing datac - Criteria containing column namescom.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isExpired()
public int getId()
StockReservationIfgetId in interface StockReservationIfpublic void setId(int id)
StockReservationIfsetId in interface StockReservationIfid - the id to setpublic int getCustomerId()
getCustomerId in interface StockReservationIfpublic void setCustomerId(int customerId)
setCustomerId in interface StockReservationIfcustomerId - the customerId to setpublic int getProductId()
getProductId in interface StockReservationIfpublic void setProductId(int productId)
setProductId in interface StockReservationIfproductId - the productId to setpublic java.lang.String getEncodedOptionValues()
StockReservationIfThe format of the encoded key for the products_quantitytable is 3{4}4{6} which means product_options of id==3 and product_options_values of id==4 followed by product_options of id==4 and product_options_values of id==6. The order is very important since the product option ids must be in ascending order.
getEncodedOptionValues in interface StockReservationIfpublic void setEncodedOptionValues(java.lang.String encodedOptionValues)
StockReservationIfThe format of the encoded key for the products_quantitytable is 3{4}4{6} which means product_options of id==3 and product_options_values of id==4 followed by product_options of id==4 and product_options_values of id==6. The order is very important since the product option ids must be in ascending order.
setEncodedOptionValues in interface StockReservationIfencodedOptionValues - the encodedOptionValues to setpublic int getQtyResrvdForResId()
StockReservationIfgetQtyResrvdForResId in interface StockReservationIfpublic void setQtyResrvdForResId(int qtyResrvdForResId)
StockReservationIfsetQtyResrvdForResId in interface StockReservationIfqtyResrvdForResId - the qtyResrvdForResId to setpublic java.util.Calendar getReservationStartTime()
StockReservationIfgetReservationStartTime in interface StockReservationIfpublic void setReservationStartTime(java.util.Calendar reservationStartTime)
StockReservationIfsetReservationStartTime in interface StockReservationIfreservationStartTime - the reservationStartTime to setpublic java.util.Calendar getReservationEndTime()
StockReservationIfgetReservationEndTime in interface StockReservationIfpublic void setReservationEndTime(java.util.Calendar reservationEndTime)
StockReservationIfsetReservationEndTime in interface StockReservationIfreservationEndTime - the reservationEndTime to setCopyright © 2018 DS Data Systems UK Ltd.