|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.bl.AdminBaseMgr
com.konakartadmin.bl.AdminBookableProductMgr
public class AdminBookableProductMgr
The AdminBookableProductMgr - for Managing bookable products
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
AdminBaseMgr.StaticData |
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
the log |
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir |
Constructor Summary | |
---|---|
AdminBookableProductMgr(KKAdminIf eng)
Constructor |
Method Summary | |
---|---|
protected void |
addBookingOrderBy(com.konakart.bl.KKCriteria c,
AdminBookingSearch search)
Add the order by constraints |
protected int |
addBookingSearchCriteria(com.konakart.bl.KKCriteria c,
AdminBookingSearch search,
AdminBookableProductOptions options)
Add the search criteria |
void |
deleteBookableProduct(int productId)
Delete the bookable Product |
void |
deleteBooking(int bookingId,
AdminBookableProductOptions options)
Delete the booking |
AdminBookableProduct |
getBookableProduct(int productId)
Gets a Bookable Product object for a product id |
AdminBooking |
getBooking(int bookingId,
AdminBookableProductOptions options)
Return a booking by Id |
protected int |
getBookingCount(AdminBookingSearch search,
AdminBookableProductOptions options)
Get the number of bookings |
int |
getBookingQty(int bookingId,
AdminBookableProductOptions options)
Return a booking by Id |
AdminBookingSearchResult |
getBookings(AdminBookingSearch search,
int offset,
int size,
AdminBookableProductOptions options)
Method used to search for bookings. |
void |
insertBookableProduct(AdminBookableProduct bProd)
Inserts a BookableProduct object into the database. |
void |
insertBookableProduct(AdminBookableProduct bProd,
java.sql.Connection con,
com.konakart.bl.KKCriteria insertC)
Inserts a BookableProduct object into the database. |
int |
insertBooking(AdminBooking booking,
AdminBookableProductOptions options)
Inserts a Booking object into the database. |
protected void |
setBookableProductCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c)
Set the standard attributes |
protected void |
setBookingCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c)
Set the standard attributes |
protected void |
setBookingInsertCriteriaWithStandardAttributes(AdminBookableProduct bProd,
com.konakart.bl.KKCriteria insertC)
Method that avoids duplication of code |
protected void |
setBookingUpdateCriteriaWithStandardAttributes(AdminBookableProduct bProd,
com.konakart.bl.KKCriteria selectC,
com.konakart.bl.KKCriteria updateC)
Method that avoids duplication of code |
void |
updateBookableProduct(AdminBookableProduct bProd)
This method is use to edit an existing bookable product. |
void |
updateBookableProduct(AdminBookableProduct bProd,
java.sql.Connection con,
com.konakart.bl.KKCriteria selectC,
com.konakart.bl.KKCriteria updateC)
This method is use to edit an existing bookable product. |
void |
updateBooking(AdminBooking booking,
AdminBookableProductOptions options)
This method is used to edit an existing booking. |
protected void |
updateBookingCount(int productId,
AdminBookableProductOptions options)
Update the number of bookings present |
protected void |
validateBookableProduct(AdminBookableProduct bProd,
boolean checkProd)
Validate the bookable product |
protected void |
validateBooking(AdminBooking booking,
int bookingQtyChange,
AdminBookableProductOptions options)
Validate the booking |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
Constructor Detail |
---|
public AdminBookableProductMgr(KKAdminIf eng) throws java.lang.Exception
eng
-
java.lang.Exception
Method Detail |
---|
public void insertBookableProduct(AdminBookableProduct bProd) throws java.lang.Exception
insertBookableProduct
in interface AdminBookableProductMgrIf
bProd
- A bookable product object
java.lang.Exception
public void insertBookableProduct(AdminBookableProduct bProd, java.sql.Connection con, com.konakart.bl.KKCriteria insertC) throws java.lang.Exception
insertBookableProduct
in interface AdminBookableProductMgrIf
bProd
- A bookable product objectcon
- Database connectioninsertC
- Criteria object
java.lang.Exception
protected void setBookingInsertCriteriaWithStandardAttributes(AdminBookableProduct bProd, com.konakart.bl.KKCriteria insertC)
bProd
- insertC
- public void updateBookableProduct(AdminBookableProduct bProd) throws java.lang.Exception
updateBookableProduct
in interface AdminBookableProductMgrIf
bProd
- A bookable product object
java.lang.Exception
public void updateBookableProduct(AdminBookableProduct bProd, java.sql.Connection con, com.konakart.bl.KKCriteria selectC, com.konakart.bl.KKCriteria updateC) throws java.lang.Exception
updateBookableProduct
in interface AdminBookableProductMgrIf
bProd
- A bookable product objectcon
- Database connectionselectC
- Criteria objectupdateC
- Criteria object
java.lang.Exception
protected void setBookingUpdateCriteriaWithStandardAttributes(AdminBookableProduct bProd, com.konakart.bl.KKCriteria selectC, com.konakart.bl.KKCriteria updateC)
bProd
- selectC
- updateC
- public AdminBookableProduct getBookableProduct(int productId) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
getBookableProduct
in interface AdminBookableProductMgrIf
productId
-
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
protected void setBookableProductCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c)
c
- protected void validateBookableProduct(AdminBookableProduct bProd, boolean checkProd) throws java.lang.Exception
bProd
- checkProd
- Check to see whether product exists
java.lang.Exception
public int insertBooking(AdminBooking booking, AdminBookableProductOptions options) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
insertBooking
in interface AdminBookableProductMgrIf
booking
- A booking objectoptions
- AdminBookableProduct options
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected void updateBookingCount(int productId, AdminBookableProductOptions options) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
productId
- options
-
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public void updateBooking(AdminBooking booking, AdminBookableProductOptions options) throws java.lang.Exception
updateBooking
in interface AdminBookableProductMgrIf
booking
- A booking objectoptions
- AdminBookableProduct options
java.lang.Exception
protected void validateBooking(AdminBooking booking, int bookingQtyChange, AdminBookableProductOptions options) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
booking
- bookingQtyChange
- an integer that holds the change to the booking qty on the bookable product prior
to the insert, update or delete of the specified booking. For inserts this number
will be greater than or equal to 0, for updates it could be any value, and deletes
it will be less than or equal to zerooptions
- AdminBookableProduct options
KKAdminException
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
public void deleteBooking(int bookingId, AdminBookableProductOptions options) throws java.lang.Exception
deleteBooking
in interface AdminBookableProductMgrIf
bookingId
- options
- AdminBookableProduct options
java.lang.Exception
public void deleteBookableProduct(int productId) throws org.apache.torque.TorqueException, KKAdminException
deleteBookableProduct
in interface AdminBookableProductMgrIf
productId
-
org.apache.torque.TorqueException
KKAdminException
public AdminBooking getBooking(int bookingId, AdminBookableProductOptions options) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getBooking
in interface AdminBookableProductMgrIf
bookingId
- options
- AdminBookableProduct options
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
public int getBookingQty(int bookingId, AdminBookableProductOptions options) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
bookingId
- the booking Idoptions
- AdminBookableProductOptions
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
public AdminBookingSearchResult getBookings(AdminBookingSearch search, int offset, int size, AdminBookableProductOptions options) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getBookings
in interface AdminBookableProductMgrIf
search
- offset
- size
- options
- AdminBookableProduct options
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
protected int getBookingCount(AdminBookingSearch search, AdminBookableProductOptions options) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- options
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
protected void setBookingCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c)
c
- protected int addBookingSearchCriteria(com.konakart.bl.KKCriteria c, AdminBookingSearch search, AdminBookableProductOptions options)
c
- search
- options
-
protected void addBookingOrderBy(com.konakart.bl.KKCriteria c, AdminBookingSearch search)
c
- search
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |