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.Object
public boolean isExpired()
public int getId()
StockReservationIf
getId
in interface StockReservationIf
public void setId(int id)
StockReservationIf
setId
in interface StockReservationIf
id
- the id to setpublic int getCustomerId()
getCustomerId
in interface StockReservationIf
public void setCustomerId(int customerId)
setCustomerId
in interface StockReservationIf
customerId
- the customerId to setpublic int getProductId()
getProductId
in interface StockReservationIf
public void setProductId(int productId)
setProductId
in interface StockReservationIf
productId
- the productId to setpublic java.lang.String getEncodedOptionValues()
StockReservationIf
The 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 StockReservationIf
public void setEncodedOptionValues(java.lang.String encodedOptionValues)
StockReservationIf
The 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 StockReservationIf
encodedOptionValues
- the encodedOptionValues to setpublic int getQtyResrvdForResId()
StockReservationIf
getQtyResrvdForResId
in interface StockReservationIf
public void setQtyResrvdForResId(int qtyResrvdForResId)
StockReservationIf
setQtyResrvdForResId
in interface StockReservationIf
qtyResrvdForResId
- the qtyResrvdForResId to setpublic java.util.Calendar getReservationStartTime()
StockReservationIf
getReservationStartTime
in interface StockReservationIf
public void setReservationStartTime(java.util.Calendar reservationStartTime)
StockReservationIf
setReservationStartTime
in interface StockReservationIf
reservationStartTime
- the reservationStartTime to setpublic java.util.Calendar getReservationEndTime()
StockReservationIf
getReservationEndTime
in interface StockReservationIf
public void setReservationEndTime(java.util.Calendar reservationEndTime)
StockReservationIf
setReservationEndTime
in interface StockReservationIf
reservationEndTime
- the reservationEndTime to setCopyright © 2018 DS Data Systems UK Ltd.