public interface AdminProdAttrMgrIf
Modifier and Type | Method and Description |
---|---|
void |
addProdAttrDescsToTemplate(AdminProdAttrDesc[] attrDescs,
int templateId)
Add the array of ProdAttrDesc objects to the template.
|
int |
deleteProdAttrDesc(int id)
Delete an AdminProdAttrDesc
|
int |
deleteProdAttrDescWithOptions(int id,
AdminProdAttrDescOptions options)
Delete an AdminProdAttrDesc
|
int |
deleteProdAttrTemplate(int id)
Delete an AdminProdAttrTemplate
|
AdminProdAttrDesc[] |
getCustomAttrsFromXML(java.lang.String xml)
Create an array of custom attributes from the XML
|
AdminProdAttrDesc |
getProdAttrDesc(int id)
Returns the AdminProdAttrDesc object for the
id parameter, or Null if the
AdminProdAttrDesc doesn't exist in the DB. |
AdminProdAttrDescSearchResult |
getProdAttrDescs(AdminProdAttrDescSearch search,
int offset,
int size)
This returns an AdminProdAttrDescSearchResult object.
|
AdminProdAttrDesc[] |
getProdAttrDescsForTemplate(int templateId)
This method fetches all of the AdminProdAttrDesc objects for the template referenced by the
templateId parameter. |
AdminProdAttrDesc[] |
getProdAttrDescsForTemplates(AdminProdAttrTemplate[] templates)
This method fetches all of the AdminProdAttrDesc objects for the array of templates
referenced by the
templates parameter. |
AdminProdAttrTemplate |
getProdAttrTemplate(int id)
Returns the AdminProdAttrTemplate object for the
id parameter, or Null if the
AdminProdAttrTemplate doesn't exist in the DB. |
AdminProdAttrTemplateSearchResult |
getProdAttrTemplates(AdminProdAttrTemplateSearch search,
int offset,
int size)
This returns an AdminProdAttrTemplateSearchResult object.
|
AdminProdAttrTemplate[] |
getProdAttrTemplatesPerProduct(int productId)
Returns an array of custom attribute templates associated with the product
|
AdminProdAttrTemplate[] |
getProdAttrTemplatesPerProduct(int productId,
java.sql.Connection con)
Returns an array of custom attribute templates associated with the product
|
int |
getProductCountPerProdAttrDesc(int attrDescId)
Returns the number of products using the product attribute descriptor
|
int |
getProductCountPerTemplate(int templateId)
Returns the number of products using the custom product attribute template
|
int |
getTemplateCountPerProdAttrDesc(int attrDescId)
Returns the number of templates using the product attribute descriptor
|
java.lang.String |
getXMLFromCustomAttrs(AdminProdAttrDesc[] attrDescArray)
Create an XML structure for the custom attributes
|
int |
insertProdAttrDesc(AdminProdAttrDesc attrDesc)
An AdminProdAttrDesc object is inserted into the database.
|
int |
insertProdAttrTemplate(AdminProdAttrTemplate template)
An AdminProdAttrTemplate object is inserted into the database.
|
void |
removeProdAttrDescsFromTemplate(AdminProdAttrDesc[] attrDescs,
int templateId)
Remove an array of ProdAttrDesc objects from the template
|
int |
updateProdAttrDesc(AdminProdAttrDesc attrDesc)
Update an AdminProdAttrDesc object.
|
int |
updateProdAttrTemplate(AdminProdAttrTemplate template)
Update an AdminProdAttrTemplate object.
|
int |
updateProductsUsingProdAttrDesc(int attrDescId)
Loop through all templates containing the custom attribute.
|
int |
updateProductsUsingTemplates(int[] templateIds)
For each template, loop through the products and update the custom fields.
|
int insertProdAttrDesc(AdminProdAttrDesc attrDesc) throws KKAdminException, org.apache.torque.TorqueException
attrDesc
- the attrDescKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)int updateProdAttrDesc(AdminProdAttrDesc attrDesc) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
attrDesc
- An AdminProdAttrDesc objectKKAdminException
- 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)int deleteProdAttrDesc(int id) throws KKAdminException, org.apache.torque.TorqueException
id
- The id of the deleted AdminProdAttrDesc objectKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)int deleteProdAttrDescWithOptions(int id, AdminProdAttrDescOptions options) throws KKAdminException, org.apache.torque.TorqueException
id
- The id of the deleted AdminProdAttrDesc objectoptions
- Can be used to configure the operation to update all products to remove the
deleted attribute from the products using it.KKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)AdminProdAttrDesc getProdAttrDesc(int id) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
parameter, or Null if the
AdminProdAttrDesc doesn't exist in the DB.id
- the idKKAdminException
- 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)AdminProdAttrDesc[] getProdAttrDescsForTemplate(int templateId) throws org.apache.torque.TorqueException, KKAdminException, com.workingdogs.village.DataSetException
templateId
parameter.
An empty array is returned if no AdminProdAttrDesc objects exist.
templateId
- the templateIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginecom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)AdminProdAttrDesc[] getProdAttrDescsForTemplates(AdminProdAttrTemplate[] templates) throws org.apache.torque.TorqueException, KKAdminException, com.workingdogs.village.DataSetException
templates
parameter.
An empty array is returned if no AdminProdAttrDesc objects exist.
templates
- the templatesorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginecom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)AdminProdAttrDescSearchResult getProdAttrDescs(AdminProdAttrDescSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- the searchoffset
- the offset in the dbsize
- the number of records from the specified offsetcom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin engineint insertProdAttrTemplate(AdminProdAttrTemplate template) throws KKAdminException, org.apache.torque.TorqueException
template
- the templateKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)int updateProdAttrTemplate(AdminProdAttrTemplate template) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
template
- An AdminProdAttrTemplate objectKKAdminException
- 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)int deleteProdAttrTemplate(int id) throws KKAdminException, org.apache.torque.TorqueException
id
- The id of the deleted AdminProdAttrTemplate objectKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)AdminProdAttrTemplate getProdAttrTemplate(int id) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
parameter, or Null if the
AdminProdAttrTemplate doesn't exist in the DB. If the Template contains an array of
ProdAttrDesc objects, these are also fetched from the DB.id
- the idKKAdminException
- 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)AdminProdAttrTemplateSearchResult getProdAttrTemplates(AdminProdAttrTemplateSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- the searchoffset
- the offset in the dbsize
- the number of records from the specified offsetcom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin engineAdminProdAttrTemplate[] getProdAttrTemplatesPerProduct(int productId) throws KKAdminException, com.workingdogs.village.DataSetException, org.apache.torque.TorqueException
productId
- the productIdKKAdminException
- an unexpected exception in the KonaKart Admin enginecom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)AdminProdAttrTemplate[] getProdAttrTemplatesPerProduct(int productId, java.sql.Connection con) throws KKAdminException, com.workingdogs.village.DataSetException, org.apache.torque.TorqueException
productId
- the productIdcon
- Connection for TransactionKKAdminException
- an unexpected exception in the KonaKart Admin enginecom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)void addProdAttrDescsToTemplate(AdminProdAttrDesc[] attrDescs, int templateId) throws org.apache.torque.TorqueException, KKAdminException
attrDescs
- the attrDescstemplateId
- the templateIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginevoid removeProdAttrDescsFromTemplate(AdminProdAttrDesc[] attrDescs, int templateId) throws org.apache.torque.TorqueException, KKAdminException
attrDescs
- the attrDescstemplateId
- the templateIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin engineint getTemplateCountPerProdAttrDesc(int attrDescId) throws com.workingdogs.village.DataSetException, KKAdminException, org.apache.torque.TorqueException
attrDescId
- the attrDescIdcom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)int getProductCountPerProdAttrDesc(int attrDescId) throws com.workingdogs.village.DataSetException, KKAdminException, org.apache.torque.TorqueException
attrDescId
- the attrDescIdcom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)int getProductCountPerTemplate(int templateId) throws com.workingdogs.village.DataSetException, KKAdminException, org.apache.torque.TorqueException
templateId
- the templateIdcom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)java.lang.String getXMLFromCustomAttrs(AdminProdAttrDesc[] attrDescArray)
attrDescArray
- Array of custom attributesAdminProdAttrDesc[] getCustomAttrsFromXML(java.lang.String xml)
xml
- The custom attribute data in xml formatint updateProductsUsingProdAttrDesc(int attrDescId) throws java.lang.Exception
attrDescId
- the attrDescIdjava.lang.Exception
- an unexpected exceptionint updateProductsUsingTemplates(int[] templateIds) throws java.lang.Exception
templateIds
- the templateIdsjava.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.