com.konakart.app
Class BookableProduct

java.lang.Object
  extended by com.konakart.app.BookableProduct
All Implemented Interfaces:
BookableProductIf

public class BookableProduct
extends java.lang.Object
implements BookableProductIf

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


Constructor Summary
BookableProduct()
          Constructor
BookableProduct(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.Calendar getEndDate()
           
 java.lang.String getFriday()
           
 int getMaxNumBookings()
           
 java.lang.String getMonday()
           
 int getProductId()
           
 java.lang.String getSaturday()
           
 java.util.Calendar 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.Calendar 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.Calendar 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
 

Constructor Detail

BookableProduct

public BookableProduct()
Constructor


BookableProduct

public BookableProduct(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()
Specified by:
getProductId in interface BookableProductIf
Returns:
the productId

setProductId

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

getMaxNumBookings

public int getMaxNumBookings()
Specified by:
getMaxNumBookings in interface BookableProductIf
Returns:
the maxNumBookings

setMaxNumBookings

public void setMaxNumBookings(int maxNumBookings)
Specified by:
setMaxNumBookings in interface BookableProductIf
Parameters:
maxNumBookings - the maxNumBookings to set

getBookingsMade

public int getBookingsMade()
Specified by:
getBookingsMade in interface BookableProductIf
Returns:
the bookingsMade

setBookingsMade

public void setBookingsMade(int bookingsMade)
Specified by:
setBookingsMade in interface BookableProductIf
Parameters:
bookingsMade - the bookingsMade to set

getStartDate

public java.util.Calendar getStartDate()
Specified by:
getStartDate in interface BookableProductIf
Returns:
the startDate

setStartDate

public void setStartDate(java.util.Calendar startDate)
Specified by:
setStartDate in interface BookableProductIf
Parameters:
startDate - the startDate to set

getEndDate

public java.util.Calendar getEndDate()
Specified by:
getEndDate in interface BookableProductIf
Returns:
the endDate

setEndDate

public void setEndDate(java.util.Calendar endDate)
Specified by:
setEndDate in interface BookableProductIf
Parameters:
endDate - the endDate to set

getMonday

public java.lang.String getMonday()
Specified by:
getMonday in interface BookableProductIf
Returns:
the monday

setMonday

public void setMonday(java.lang.String monday)
Specified by:
setMonday in interface BookableProductIf
Parameters:
monday - the monday to set

getTuesday

public java.lang.String getTuesday()
Specified by:
getTuesday in interface BookableProductIf
Returns:
the tuesday

setTuesday

public void setTuesday(java.lang.String tuesday)
Specified by:
setTuesday in interface BookableProductIf
Parameters:
tuesday - the tuesday to set

getWednesday

public java.lang.String getWednesday()
Specified by:
getWednesday in interface BookableProductIf
Returns:
the wednesday

setWednesday

public void setWednesday(java.lang.String wednesday)
Specified by:
setWednesday in interface BookableProductIf
Parameters:
wednesday - the wednesday to set

getThursday

public java.lang.String getThursday()
Specified by:
getThursday in interface BookableProductIf
Returns:
the thursday

setThursday

public void setThursday(java.lang.String thursday)
Specified by:
setThursday in interface BookableProductIf
Parameters:
thursday - the thursday to set

getFriday

public java.lang.String getFriday()
Specified by:
getFriday in interface BookableProductIf
Returns:
the friday

setFriday

public void setFriday(java.lang.String friday)
Specified by:
setFriday in interface BookableProductIf
Parameters:
friday - the friday to set

getSaturday

public java.lang.String getSaturday()
Specified by:
getSaturday in interface BookableProductIf
Returns:
the saturday

setSaturday

public void setSaturday(java.lang.String saturday)
Specified by:
setSaturday in interface BookableProductIf
Parameters:
saturday - the saturday to set

getSunday

public java.lang.String getSunday()
Specified by:
getSunday in interface BookableProductIf
Returns:
the sunday

setSunday

public void setSunday(java.lang.String sunday)
Specified by:
setSunday in interface BookableProductIf
Parameters:
sunday - the sunday to set

getCustom1

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

setCustom1

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

getCustom2

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

setCustom2

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

getCustom3

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

setCustom3

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

getCustom4

public java.lang.String getCustom4()
Specified by:
getCustom4 in interface BookableProductIf
Returns:
the custom4

setCustom4

public void setCustom4(java.lang.String custom4)
Specified by:
setCustom4 in interface BookableProductIf
Parameters:
custom4 - the custom4 to set

getCustom5

public java.lang.String getCustom5()
Specified by:
getCustom5 in interface BookableProductIf
Returns:
the custom5

setCustom5

public void setCustom5(java.lang.String custom5)
Specified by:
setCustom5 in interface BookableProductIf
Parameters:
custom5 - the custom5 to set


Copyright © 2011 DS Data Systems UK Ltd.