com.konakart.app
Class Booking

java.lang.Object
  extended by com.konakart.app.Booking
All Implemented Interfaces:
BookingIf

public class Booking
extends java.lang.Object
implements BookingIf

The Booking class contains information about bookings made for the bookable product. e.g.A bookable product could contain an array or bookings for people enrolled on a course.


Constructor Summary
Booking()
          Constructor
Booking(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the Booking object from a Record object
 
Method Summary
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 int getCustomerId()
           
 java.util.Calendar getDateAdded()
           
 java.lang.String getFirstName()
           
 int getId()
           
 java.lang.String getLastName()
           
 int getOrderId()
           
 int getOrderProductId()
           
 int getProductId()
           
 int getQuantity()
           
 void setCustom1(java.lang.String custom1)
           
 void setCustom2(java.lang.String custom2)
           
 void setCustom3(java.lang.String custom3)
           
 void setCustomerId(int customerId)
           
 void setDateAdded(java.util.Calendar dateAdded)
           
 void setFirstName(java.lang.String firstName)
           
 void setId(int id)
           
 void setLastName(java.lang.String lastName)
           
 void setOrderId(int orderId)
           
 void setOrderProductId(int orderProductId)
           
 void setProductId(int productId)
           
 void setQuantity(int quantity)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Booking

public Booking()
Constructor


Booking

public Booking(com.workingdogs.village.Record vr,
               org.apache.torque.util.Criteria c)
        throws com.workingdogs.village.DataSetException
Instantiates the attributes of the Booking object from a Record object

Parameters:
vr - Record containing data
c - Criteria containing column names
Throws:
com.workingdogs.village.DataSetException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Booking object.

getId

public int getId()
Specified by:
getId in interface BookingIf
Returns:
the id

setId

public void setId(int id)
Specified by:
setId in interface BookingIf
Parameters:
id - the id to set

getQuantity

public int getQuantity()
Specified by:
getQuantity in interface BookingIf
Returns:
the quantity

setQuantity

public void setQuantity(int quantity)
Specified by:
setQuantity in interface BookingIf
Parameters:
quantity - the quantity to set

getCustomerId

public int getCustomerId()
Specified by:
getCustomerId in interface BookingIf
Returns:
the customerId

setCustomerId

public void setCustomerId(int customerId)
Specified by:
setCustomerId in interface BookingIf
Parameters:
customerId - the customerId to set

getOrderId

public int getOrderId()
Specified by:
getOrderId in interface BookingIf
Returns:
the orderId

setOrderId

public void setOrderId(int orderId)
Specified by:
setOrderId in interface BookingIf
Parameters:
orderId - the orderId to set

getOrderProductId

public int getOrderProductId()
Specified by:
getOrderProductId in interface BookingIf
Returns:
the orderProductId

setOrderProductId

public void setOrderProductId(int orderProductId)
Specified by:
setOrderProductId in interface BookingIf
Parameters:
orderProductId - the orderProductId to set

getFirstName

public java.lang.String getFirstName()
Specified by:
getFirstName in interface BookingIf
Returns:
the firstName

setFirstName

public void setFirstName(java.lang.String firstName)
Specified by:
setFirstName in interface BookingIf
Parameters:
firstName - the firstName to set

getLastName

public java.lang.String getLastName()
Specified by:
getLastName in interface BookingIf
Returns:
the lastName

setLastName

public void setLastName(java.lang.String lastName)
Specified by:
setLastName in interface BookingIf
Parameters:
lastName - the lastName to set

getCustom1

public java.lang.String getCustom1()
Specified by:
getCustom1 in interface BookingIf
Returns:
the custom1

setCustom1

public void setCustom1(java.lang.String custom1)
Specified by:
setCustom1 in interface BookingIf
Parameters:
custom1 - the custom1 to set

getCustom2

public java.lang.String getCustom2()
Specified by:
getCustom2 in interface BookingIf
Returns:
the custom2

setCustom2

public void setCustom2(java.lang.String custom2)
Specified by:
setCustom2 in interface BookingIf
Parameters:
custom2 - the custom2 to set

getCustom3

public java.lang.String getCustom3()
Specified by:
getCustom3 in interface BookingIf
Returns:
the custom3

setCustom3

public void setCustom3(java.lang.String custom3)
Specified by:
setCustom3 in interface BookingIf
Parameters:
custom3 - the custom3 to set

getProductId

public int getProductId()
Specified by:
getProductId in interface BookingIf
Returns:
the productId

setProductId

public void setProductId(int productId)
Specified by:
setProductId in interface BookingIf
Parameters:
productId - the productId to set

getDateAdded

public java.util.Calendar getDateAdded()
Specified by:
getDateAdded in interface BookingIf
Returns:
the dateAdded

setDateAdded

public void setDateAdded(java.util.Calendar dateAdded)
Specified by:
setDateAdded in interface BookingIf
Parameters:
dateAdded - the dateAdded to set


Copyright © 2011 DS Data Systems UK Ltd.