|
|||||||||
| 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.AdminManufacturerMgr
public class AdminManufacturerMgr
The AdminManufacturerMgr - for Managing Manufacturer Objects for the Admin Application
| 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 | |
|---|---|
AdminManufacturerMgr(KKAdminIf eng)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
addManufacturerOrderBy(com.konakart.bl.KKCriteria c,
AdminManufacturerSearch search)
Add order by constraints for manufacturers |
protected int |
addManufacturerSearchCriteria(com.konakart.bl.KKCriteria c,
AdminManufacturerSearch search)
Add search criteria for manufacturers |
void |
deleteManufacturer(int manufacturerId,
boolean deleteProducts)
Delete the manufacturer referenced to by manufacturerId. |
boolean |
doesManufacturerExist(int manufacturerId)
Return true if the manufacturer referenced by manufacturerId exists |
void |
editManufacturer(AdminManufacturer manu)
Edit a manufacturer and its manufacturer info objects |
AdminManufacturer[] |
getAllManufacturers()
Return an array containing all manufacturers. |
AdminManufacturer |
getManufacturer(int manufacturerId)
Gets a manufacturer object with full details |
protected int |
getManufacturerCount(AdminManufacturerSearch search)
Returns a count of the number of Manufacturers |
AdminManufacturerSearchResult |
getManufacturers(AdminManufacturerSearch search,
int offset,
int size)
This returns an AdminManufacturerSearchResult object. |
AdminManufacturer[] |
getManufacturersPerPromotion(int promotionId)
Return an array of all manufacturers active for a promotion. |
int |
insertManufacturer(AdminManufacturer manu)
Insert a manufacturer |
protected void |
setManuCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c)
Common code to avoid duplication |
protected void |
validateManufacturer(AdminManufacturer manu)
Used to validate a manufacturer before editing or inserting |
| 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 AdminManufacturerMgr(KKAdminIf eng)
throws java.lang.Exception
eng -
java.lang.Exception| Method Detail |
|---|
public boolean doesManufacturerExist(int manufacturerId)
throws org.apache.torque.TorqueException,
KKAdminException
doesManufacturerExist in interface AdminManufacturerMgrIfmanufacturerId -
org.apache.torque.TorqueException
KKAdminException
public AdminManufacturer getManufacturer(int manufacturerId)
throws java.lang.Exception
getManufacturer in interface AdminManufacturerMgrIfmanufacturerId -
java.lang.Exception
public void deleteManufacturer(int manufacturerId,
boolean deleteProducts)
throws java.lang.Exception
deleteManufacturer in interface AdminManufacturerMgrIfmanufacturerId - deleteProducts -
java.lang.Exception
public void editManufacturer(AdminManufacturer manu)
throws java.lang.Exception
editManufacturer in interface AdminManufacturerMgrIfmanu -
java.lang.Exception
public int insertManufacturer(AdminManufacturer manu)
throws java.lang.Exception
insertManufacturer in interface AdminManufacturerMgrIfmanu -
java.lang.Exception
public AdminManufacturer[] getAllManufacturers()
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException,
KKAdminException
AdminManufacturerMgrIf
getAllManufacturers in interface AdminManufacturerMgrIfcom.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
public AdminManufacturer[] getManufacturersPerPromotion(int promotionId)
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException,
KKAdminException
AdminManufacturerMgrIf
getManufacturersPerPromotion in interface AdminManufacturerMgrIfpromotionId -
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
protected void validateManufacturer(AdminManufacturer manu)
throws KKAdminException
manu -
KKAdminException
public AdminManufacturerSearchResult getManufacturers(AdminManufacturerSearch search,
int offset,
int size)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKAdminException
getManufacturers in interface AdminManufacturerMgrIfsearch - offset - the offset in the dbsize - the number of records from the specified offset
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
protected void addManufacturerOrderBy(com.konakart.bl.KKCriteria c,
AdminManufacturerSearch search)
c - search -
protected int getManufacturerCount(AdminManufacturerSearch search)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKAdminException
search - Search criteria
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
protected int addManufacturerSearchCriteria(com.konakart.bl.KKCriteria c,
AdminManufacturerSearch search)
c - search -
protected void setManuCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c)
c -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||