public interface AdminMiscItemMgrIf
Modifier and Type | Method and Description |
---|---|
void |
deleteMiscItem(int miTypeId)
Delete an AdminMiscItem.
|
void |
deleteMiscItemType(int miTypeId,
boolean deleteChildren)
Delete an AdminMiscItemType.
|
AdminMiscItemSearchResult |
getMiscItems(AdminSearch search,
int offset,
int size)
Return the AdminMiscItem objects defined by the search criteria.
|
AdminMiscItemSearchResult |
getMiscItems(AdminSearch search,
int offset,
int size,
java.sql.Connection con)
Return the AdminMiscItem objects defined by the search criteria.
|
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.
|
int |
insertMiscItems(AdminMiscItem[] mItems)
Insert an array of AdminMiscItem objects
|
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.
|
AdminMiscItemType[] getMiscItemTypes(AdminSearch search, int offset, int size) throws KKAdminException, java.lang.Exception
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 returnedKKAdminException
- an unexpected exception in the KonaKart Admin enginejava.lang.Exception
- an unexpected exceptionint insertMiscItemType(AdminMiscItemType[] miTypes) throws KKAdminException, java.lang.Exception
miTypes
- An array of AdminMiscItemType objects to insert. Typically you would insert one
AdminMiscItemType record for each language to maintain data integrity.KKAdminException
- an unexpected exception in the KonaKart Admin enginejava.lang.Exception
- an unexpected exceptionvoid updateMiscItemType(AdminMiscItemType[] miTypes) throws KKAdminException, org.apache.torque.TorqueException
miTypes
- An array of AdminMiscItemType objects to update.KKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)void deleteMiscItemType(int miTypeId, boolean deleteChildren) throws KKAdminException, org.apache.torque.TorqueException, java.lang.Exception
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
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)java.lang.Exception
- an unexpected exceptionint insertMiscItems(AdminMiscItem[] mItems) throws KKAdminException, java.lang.Exception
mItems
- An array of AdminMiscItem objects to insert.KKAdminException
- an unexpected exception in the KonaKart Admin enginejava.lang.Exception
- an unexpected exceptionvoid updateMiscItems(AdminMiscItem[] mItems) throws KKAdminException, org.apache.torque.TorqueException
mItems
- An array of AdminMiscItem objects to update.KKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)void deleteMiscItem(int miTypeId) throws KKAdminException, org.apache.torque.TorqueException
miTypeId
- the id of the miscellaneous item object to deleteKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)AdminMiscItemSearchResult getMiscItems(AdminSearch search, int offset, int size) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
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 returnedKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)AdminMiscItemSearchResult getMiscItems(AdminSearch search, int offset, int size, java.sql.Connection con) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
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 returnedcon
- Connection for TransactionKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)void refreshConfigs() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionAdminMiscItem[] getMiscItemsPerProduct(int productId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
productId
- the productIdKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)Copyright © 2018 DS Data Systems UK Ltd.