|
|||||||||
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.AdminMiscItemMgr
public class AdminMiscItemMgr
The AdminMiscItemMgr - for Managing Miscellaneous Item 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 | |
---|---|
AdminMiscItemMgr(KKAdminIf eng)
Constructor |
Method Summary | |
---|---|
protected void |
addMiscItemOrderBy(com.konakart.bl.KKCriteria c,
AdminSearch search)
|
protected int |
addMiscItemSearchCriteria(com.konakart.bl.KKCriteria c,
AdminSearch search)
|
protected void |
addMiscItemTypeOrderBy(com.konakart.bl.KKCriteria c,
AdminSearch search)
|
protected int |
addMiscItemTypeSearchCriteria(com.konakart.bl.KKCriteria c,
AdminSearch search,
java.lang.String aliasPrefix)
|
void |
deleteMiscItem(int miTypeId)
Delete an AdminMiscItem. |
void |
deleteMiscItemType(int miTypeId,
boolean deleteChildren)
Delete an AdminMiscItemType. |
protected boolean |
doesMiscItemTypeExist(int id)
Return true if the Miscellaneous Item Type exists. |
protected boolean |
doesMiscItemTypeExist(int id,
int langId)
Return true if the Miscellaneous Item Type exists. |
AdminMiscItemSearchResult |
getMiscItems(AdminSearch search,
int offset,
int size)
Return the AdminMiscItem objects defined by the search criteria. |
protected int |
getMiscItemsCount(AdminSearch search)
|
AdminMiscItem[] |
getMiscItemsPerProduct(int productId)
A method for returning the misc items of a product. |
AdminMiscItemType[] |
getMiscItemTypes(AdminSearch search,
int offset,
int size)
Return the AdminMiscItemType objects defined by the search criteria. |
protected int |
insertMiscItem(AdminMiscItem miItem)
Insert a new MiscItem object. |
int |
insertMiscItems(AdminMiscItem[] mItems)
Insert an array of AdminMiscItem objects |
protected int |
insertMiscItemType(AdminMiscItemType miItemType)
Insert a new MiscItemType object. |
int |
insertMiscItemType(AdminMiscItemType[] miTypes)
Insert an array of AdminMiscItemType objects |
void |
refreshConfigs()
Refresh the configuration of the Manager |
void |
updateMiscItems(AdminMiscItem[] mItems)
Update an array of AdminMiscItem objects. |
void |
updateMiscItemType(AdminMiscItemType[] miTypes)
Update an array of AdminMiscItemType objects. |
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 AdminMiscItemMgr(KKAdminIf eng) throws java.lang.Exception
eng
-
java.lang.Exception
Method Detail |
---|
public int insertMiscItemType(AdminMiscItemType[] miTypes) throws KKAdminException, java.lang.Exception
AdminMiscItemMgrIf
insertMiscItemType
in interface AdminMiscItemMgrIf
miTypes
- An array of AdminMiscItemType objects to insert. Typically you would insert one
AdminMiscItemType record for each language to maintain data integrity.
KKAdminException
java.lang.Exception
public void updateMiscItemType(AdminMiscItemType[] miTypes) throws KKAdminException, org.apache.torque.TorqueException
AdminMiscItemMgrIf
updateMiscItemType
in interface AdminMiscItemMgrIf
miTypes
- An array of AdminMiscItemType objects to update.
KKAdminException
org.apache.torque.TorqueException
public void deleteMiscItemType(int miTypeId, boolean deleteChildren) throws KKAdminException, org.apache.torque.TorqueException, java.lang.Exception
AdminMiscItemMgrIf
deleteMiscItemType
in interface AdminMiscItemMgrIf
miTypeId
- the id of the miscellaneous item type object to deletedeleteChildren
- if true all children (miscellaneous items with this miscellaneous item type) will
also be deleted.
KKAdminException
org.apache.torque.TorqueException
java.lang.Exception
public AdminMiscItemType[] getMiscItemTypes(AdminSearch search, int offset, int size) throws KKAdminException, java.lang.Exception
AdminMiscItemMgrIf
getMiscItemTypes
in interface AdminMiscItemMgrIf
search
- the generic Admin search object that defines the objects to search for. If null we
use the default AdminSearch object. If you specify the LanguageId in the search
object, only the MiscItemType for that specified language will be returned. If you
specify AdminLanguage.ALL_LANGUAGES for the languageId the search will be made on
the default language, and if MiscItemTypes are found, MiscItemTypes with these
MiscItemTypeIds for all of the languages are returned.offset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returned
KKAdminException
java.lang.Exception
protected int insertMiscItemType(AdminMiscItemType miItemType) throws KKAdminException, java.lang.Exception
miItemType
- the new AdminMiscItemType object to insert - do not fill out the Id as this will
be created.
KKAdminException
java.lang.Exception
protected int addMiscItemTypeSearchCriteria(com.konakart.bl.KKCriteria c, AdminSearch search, java.lang.String aliasPrefix)
protected void addMiscItemTypeOrderBy(com.konakart.bl.KKCriteria c, AdminSearch search)
protected boolean doesMiscItemTypeExist(int id) throws org.apache.torque.TorqueException, KKAdminException
id
- Miscellaneous Item Type id
org.apache.torque.TorqueException
KKAdminException
protected boolean doesMiscItemTypeExist(int id, int langId) throws org.apache.torque.TorqueException, KKAdminException
id
- Miscellaneous Item Type idlangId
- language id
org.apache.torque.TorqueException
KKAdminException
public int insertMiscItems(AdminMiscItem[] mItems) throws KKAdminException, java.lang.Exception
AdminMiscItemMgrIf
insertMiscItems
in interface AdminMiscItemMgrIf
mItems
- An array of AdminMiscItem objects to insert.
KKAdminException
java.lang.Exception
public void updateMiscItems(AdminMiscItem[] mItems) throws KKAdminException, org.apache.torque.TorqueException
AdminMiscItemMgrIf
updateMiscItems
in interface AdminMiscItemMgrIf
mItems
- An array of AdminMiscItem objects to update.
KKAdminException
org.apache.torque.TorqueException
public void deleteMiscItem(int miTypeId) throws KKAdminException, org.apache.torque.TorqueException
AdminMiscItemMgrIf
deleteMiscItem
in interface AdminMiscItemMgrIf
miTypeId
- the id of the miscellaneous item object to delete
KKAdminException
org.apache.torque.TorqueException
public AdminMiscItemSearchResult getMiscItems(AdminSearch search, int offset, int size) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
AdminMiscItemMgrIf
getMiscItems
in interface AdminMiscItemMgrIf
search
- the generic Admin search object that defines the objects to search for. If null we
use the default AdminSearch object.
AdminSearch criteria usage:
AdminSearch order by options:
offset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returned
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected int getMiscItemsCount(AdminSearch search) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected int insertMiscItem(AdminMiscItem miItem) throws KKAdminException, java.lang.Exception
miItem
- the new AdminMiscItem object to insert - do not fill out the Id as this will be
created.
KKAdminException
java.lang.Exception
protected int addMiscItemSearchCriteria(com.konakart.bl.KKCriteria c, AdminSearch search) throws KKAdminException
KKAdminException
protected void addMiscItemOrderBy(com.konakart.bl.KKCriteria c, AdminSearch search)
public void refreshConfigs() throws java.lang.Exception
refreshConfigs
in interface AdminMiscItemMgrIf
refreshConfigs
in class AdminBaseMgr
java.lang.Exception
public AdminMiscItem[] getMiscItemsPerProduct(int productId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getMiscItemsPerProduct
in interface AdminMiscItemMgrIf
productId
-
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |