|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BookableProductMgrIf
BookableMgrIf Interface which an implementation of this manager must adhere to.
| Method Summary | |
|---|---|
BookableProductIf |
getBookableProduct(int productId,
BookableProductOptionsIf options)
Gets a Bookable Product object for a product id |
Product[] |
getBookableProductConflict(java.lang.String sessionId,
ProductIf bookableProd,
BookableProductOptionsIf options)
This method checks to see whether the bookable product passed in as a parameter conflicts with any bookable products that the customer identified by the sessionId has already signed up for. If no conflicts are found, null is returned. |
Bookings |
getBookingsPerCustomer(java.lang.String sessionId,
DataDescriptorIf dataDesc,
BookableProductOptionsIf options)
Get an array of bookings for a logged in customer. |
Bookings |
getBookingsPerProduct(DataDescriptorIf dataDesc,
int productId,
BookableProductOptionsIf options)
Get an array of bookings for a product. |
int |
insertBooking(BookingIf booking,
BookableProductOptionsIf options)
Inserts a Booking object into the database. |
int |
insertBooking(java.lang.String sessionId,
BookingIf booking,
BookableProductOptionsIf options)
Inserts a Booking object into the database. |
| Method Detail |
|---|
Bookings getBookingsPerProduct(DataDescriptorIf dataDesc,
int productId,
BookableProductOptionsIf options)
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException,
KKException
dataDesc - productId - options - Not used at the moment. May be left null.
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKException
Bookings getBookingsPerCustomer(java.lang.String sessionId,
DataDescriptorIf dataDesc,
BookableProductOptionsIf options)
throws java.lang.Exception
dataDesc - sessionId - options - Not used at the moment. May be left null.
java.lang.Exception
BookableProductIf getBookableProduct(int productId,
BookableProductOptionsIf options)
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException,
KKException
productId - options - Not used at the moment. May be left null.
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKException
int insertBooking(BookingIf booking,
BookableProductOptionsIf options)
throws java.lang.Exception
booking - A booking objectoptions - Options allowing an exception to be thrown for exceeding the maximum number of
bookings
java.lang.Exception
int insertBooking(java.lang.String sessionId,
BookingIf booking,
BookableProductOptionsIf options)
throws java.lang.Exception
sessionId - booking - A booking objectoptions - Options allowing an exception to be thrown for exceeding the maximum number of
bookings
java.lang.Exception
Product[] getBookableProductConflict(java.lang.String sessionId,
ProductIf bookableProd,
BookableProductOptionsIf options)
throws java.lang.Exception
sessionId - bookableProd - options - Not used at the moment. May be left null.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||