com.konakartadmin.app
Class AdminBooking

java.lang.Object
  extended by com.konakartadmin.app.AdminBooking
All Implemented Interfaces:
AdminObjectIf

public class AdminBooking
extends java.lang.Object
implements AdminObjectIf

Booking object for the Admin App. A bookable product may be associated with one or more booking objects defining for example the people enrolled on a course.


Field Summary
private  AdminBookableProduct bookableProduct
          Bookable Product - never persisted
private  java.lang.String custom1
          custom field
private  java.lang.String custom2
          custom field
private  java.lang.String custom3
          custom field
private  int customerId
          customerId
private  java.util.Date dateAdded
          Date Added
private  java.lang.String firstName
          first name
private  int id
          id
private  java.lang.String lastName
          last name
private  int orderId
          orderId
private  AdminOrderProduct orderProduct
          Order Product - never persisted
private  int orderProductId
          orderProductId
private  int productId
          product id
private  int quantity
          quantity
 
Constructor Summary
AdminBooking()
          Constructor
AdminBooking(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the Booking object from a Record object
 
Method Summary
 AdminBookableProduct getBookableProduct()
           
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 int getCustomerId()
           
 java.util.Date getDateAdded()
           
 java.lang.String getFirstName()
           
 int getId()
           
 java.lang.String getLastName()
           
 int getOrderId()
           
 AdminOrderProduct getOrderProduct()
           
 int getOrderProductId()
           
 int getProductId()
           
 int getQuantity()
           
 void setBookableProduct(AdminBookableProduct bookableProduct)
           
 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.Date dateAdded)
           
 void setFirstName(java.lang.String firstName)
           
 void setId(int id)
           
 void setLastName(java.lang.String lastName)
           
 void setOrderId(int orderId)
           
 void setOrderProduct(AdminOrderProduct orderProduct)
           
 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
 

Field Detail

id

private int id
id


productId

private int productId
product id


quantity

private int quantity
quantity


customerId

private int customerId
customerId


orderId

private int orderId
orderId


orderProductId

private int orderProductId
orderProductId


firstName

private java.lang.String firstName
first name


lastName

private java.lang.String lastName
last name


dateAdded

private java.util.Date dateAdded
Date Added


bookableProduct

private AdminBookableProduct bookableProduct
Bookable Product - never persisted


orderProduct

private AdminOrderProduct orderProduct
Order Product - never persisted


custom1

private java.lang.String custom1
custom field


custom2

private java.lang.String custom2
custom field


custom3

private java.lang.String custom3
custom field

Constructor Detail

AdminBooking

public AdminBooking()
Constructor


AdminBooking

public AdminBooking(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()
Specified by:
toString in interface AdminObjectIf
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 AdminObjectIf
Returns:
the id

setId

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

getQuantity

public int getQuantity()
Returns:
the quantity

setQuantity

public void setQuantity(int quantity)
Parameters:
quantity - the quantity to set

getCustomerId

public int getCustomerId()
Returns:
the customerId

setCustomerId

public void setCustomerId(int customerId)
Parameters:
customerId - the customerId to set

getOrderId

public int getOrderId()
Returns:
the orderId

setOrderId

public void setOrderId(int orderId)
Parameters:
orderId - the orderId to set

getOrderProductId

public int getOrderProductId()
Returns:
the orderProductId

setOrderProductId

public void setOrderProductId(int orderProductId)
Parameters:
orderProductId - the orderProductId to set

getFirstName

public java.lang.String getFirstName()
Returns:
the firstName

setFirstName

public void setFirstName(java.lang.String firstName)
Parameters:
firstName - the firstName to set

getLastName

public java.lang.String getLastName()
Returns:
the lastName

setLastName

public void setLastName(java.lang.String lastName)
Parameters:
lastName - the lastName to set

getDateAdded

public java.util.Date getDateAdded()
Returns:
the dateAdded

setDateAdded

public void setDateAdded(java.util.Date dateAdded)
Parameters:
dateAdded - the dateAdded to set

getCustom1

public java.lang.String getCustom1()
Returns:
the custom1

setCustom1

public void setCustom1(java.lang.String custom1)
Parameters:
custom1 - the custom1 to set

getCustom2

public java.lang.String getCustom2()
Returns:
the custom2

setCustom2

public void setCustom2(java.lang.String custom2)
Parameters:
custom2 - the custom2 to set

getCustom3

public java.lang.String getCustom3()
Returns:
the custom3

setCustom3

public void setCustom3(java.lang.String custom3)
Parameters:
custom3 - the custom3 to set

getProductId

public int getProductId()
Returns:
the productId

setProductId

public void setProductId(int productId)
Parameters:
productId - the productId to set

getBookableProduct

public AdminBookableProduct getBookableProduct()
Returns:
the bookableProduct

setBookableProduct

public void setBookableProduct(AdminBookableProduct bookableProduct)
Parameters:
bookableProduct - the bookableProduct to set

getOrderProduct

public AdminOrderProduct getOrderProduct()
Returns:
the orderProduct

setOrderProduct

public void setOrderProduct(AdminOrderProduct orderProduct)
Parameters:
orderProduct - the orderProduct to set


Copyright © 2011 DS Data Systems UK Ltd.