com.konakartadmin.app
Class AdminBookableProduct

java.lang.Object
  extended by com.konakartadmin.app.AdminBookableProduct

public class AdminBookableProduct
extends java.lang.Object

A bookable product is an extension for a product containing attributes relevant to a bookable product such as start and end dates and time slots for days of the week


Field Summary
private  int bookingsMade
          The number of bookings made bookingsMade
private  java.lang.String custom1
          custom field
private  java.lang.String custom2
          custom field
private  java.lang.String custom3
          custom field
private  java.lang.String custom4
          custom field
private  java.lang.String custom5
          custom field
private  java.util.Date endDate
          End Date
private  java.lang.String friday
          day of week
private  int maxNumBookings
          The maximum number of bookings that can be made maxNumBookings
private  java.lang.String monday
          day of week
private  int productId
          product id
private  java.lang.String saturday
          day of week
private  java.util.Date startDate
          Start Date
private  java.lang.String sunday
          day of week
private  java.lang.String thursday
          day of week
private  java.lang.String tuesday
          day of week
private  java.lang.String wednesday
          day of week
 
Constructor Summary
AdminBookableProduct()
          Constructor
AdminBookableProduct(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the Bookable Product object from a Record object
 
Method Summary
 int getBookingsMade()
           
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 java.lang.String getCustom4()
           
 java.lang.String getCustom5()
           
 java.util.Date getEndDate()
           
 java.lang.String getFriday()
           
 int getMaxNumBookings()
           
 java.lang.String getMonday()
           
 int getProductId()
           
 java.lang.String getSaturday()
           
 java.util.Date getStartDate()
           
 java.lang.String getSunday()
           
 java.lang.String getThursday()
           
 java.lang.String getTuesday()
           
 java.lang.String getWednesday()
           
 void setBookingsMade(int bookingsMade)
           
 void setCustom1(java.lang.String custom1)
           
 void setCustom2(java.lang.String custom2)
           
 void setCustom3(java.lang.String custom3)
           
 void setCustom4(java.lang.String custom4)
           
 void setCustom5(java.lang.String custom5)
           
 void setEndDate(java.util.Date endDate)
           
 void setFriday(java.lang.String friday)
           
 void setMaxNumBookings(int maxNumBookings)
           
 void setMonday(java.lang.String monday)
           
 void setProductId(int productId)
           
 void setSaturday(java.lang.String saturday)
           
 void setStartDate(java.util.Date startDate)
           
 void setSunday(java.lang.String sunday)
           
 void setThursday(java.lang.String thursday)
           
 void setTuesday(java.lang.String tuesday)
           
 void setWednesday(java.lang.String wednesday)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

productId

private int productId
product id


maxNumBookings

private int maxNumBookings
The maximum number of bookings that can be made maxNumBookings


bookingsMade

private int bookingsMade
The number of bookings made bookingsMade


startDate

private java.util.Date startDate
Start Date


endDate

private java.util.Date endDate
End Date


monday

private java.lang.String monday
day of week


tuesday

private java.lang.String tuesday
day of week


wednesday

private java.lang.String wednesday
day of week


thursday

private java.lang.String thursday
day of week


friday

private java.lang.String friday
day of week


saturday

private java.lang.String saturday
day of week


sunday

private java.lang.String sunday
day of week


custom1

private java.lang.String custom1
custom field


custom2

private java.lang.String custom2
custom field


custom3

private java.lang.String custom3
custom field


custom4

private java.lang.String custom4
custom field


custom5

private java.lang.String custom5
custom field

Constructor Detail

AdminBookableProduct

public AdminBookableProduct()
Constructor


AdminBookableProduct

public AdminBookableProduct(com.workingdogs.village.Record vr,
                            org.apache.torque.util.Criteria c)
                     throws com.workingdogs.village.DataSetException
Instantiates the attributes of the Bookable Product 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 Bookable Product object.

getProductId

public int getProductId()
Returns:
the productId

setProductId

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

getMaxNumBookings

public int getMaxNumBookings()
Returns:
the maxNumBookings

setMaxNumBookings

public void setMaxNumBookings(int maxNumBookings)
Parameters:
maxNumBookings - the maxNumBookings to set

getBookingsMade

public int getBookingsMade()
Returns:
the bookingsMade

setBookingsMade

public void setBookingsMade(int bookingsMade)
Parameters:
bookingsMade - the bookingsMade to set

getMonday

public java.lang.String getMonday()
Returns:
the monday

setMonday

public void setMonday(java.lang.String monday)
Parameters:
monday - the monday to set

getTuesday

public java.lang.String getTuesday()
Returns:
the tuesday

setTuesday

public void setTuesday(java.lang.String tuesday)
Parameters:
tuesday - the tuesday to set

getWednesday

public java.lang.String getWednesday()
Returns:
the wednesday

setWednesday

public void setWednesday(java.lang.String wednesday)
Parameters:
wednesday - the wednesday to set

getThursday

public java.lang.String getThursday()
Returns:
the thursday

setThursday

public void setThursday(java.lang.String thursday)
Parameters:
thursday - the thursday to set

getFriday

public java.lang.String getFriday()
Returns:
the friday

setFriday

public void setFriday(java.lang.String friday)
Parameters:
friday - the friday to set

getSaturday

public java.lang.String getSaturday()
Returns:
the saturday

setSaturday

public void setSaturday(java.lang.String saturday)
Parameters:
saturday - the saturday to set

getSunday

public java.lang.String getSunday()
Returns:
the sunday

setSunday

public void setSunday(java.lang.String sunday)
Parameters:
sunday - the sunday 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

getCustom4

public java.lang.String getCustom4()
Returns:
the custom4

setCustom4

public void setCustom4(java.lang.String custom4)
Parameters:
custom4 - the custom4 to set

getCustom5

public java.lang.String getCustom5()
Returns:
the custom5

setCustom5

public void setCustom5(java.lang.String custom5)
Parameters:
custom5 - the custom5 to set

getStartDate

public java.util.Date getStartDate()
Returns:
the startDate

setStartDate

public void setStartDate(java.util.Date startDate)
Parameters:
startDate - the startDate to set

getEndDate

public java.util.Date getEndDate()
Returns:
the endDate

setEndDate

public void setEndDate(java.util.Date endDate)
Parameters:
endDate - the endDate to set


Copyright © 2011 DS Data Systems UK Ltd.