public class AdminEnhancedVariantHelper
extends java.lang.Object
Constructor and Description |
---|
AdminEnhancedVariantHelper() |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
getProductOptionsCodePerId(int productOptionId,
com.konakart.db.KKCriteria crit,
java.sql.Connection con)
Used to get the code of a product option with a given id
|
protected static AdminProductOption[] |
getProductOptionsPerId(int productOptionId,
com.konakart.db.KKCriteria crit)
Returns an array of productOptions.
|
protected static AdminProductOption[] |
getProductOptionsPerId(int productOptionId,
com.konakart.db.KKCriteria crit,
java.sql.Connection con)
Returns an array of productOptions.
|
protected static java.lang.String |
getProductOptionValueCodePerProductOptionId(int productOptionValueId,
com.konakart.db.KKCriteria crit,
java.sql.Connection con)
Used to get the code of a product option value with a given id
|
protected static AdminProductOptionValue[] |
getProductOptionValuesPerId(int productOptionValueId,
com.konakart.db.KKCriteria crit,
java.sql.Connection con)
Returns an array of productOptionValues.
|
static java.util.List<AdminProductQuantity> |
getValidAdminProductQuantity(AdminProductQuantity[] productQuantities,
java.util.HashMap<java.lang.String,java.lang.String> prodAttrMaps) |
static java.util.List<AdminVariantPrice> |
getValidAdminVariantPrice(AdminVariantPrice[] variantPrices,
java.util.HashMap<java.lang.String,java.lang.String> prodAttrMaps) |
static boolean |
isEachOptionValuePairAlreadyAttached(java.lang.String encodedOptionValues,
java.util.HashMap<java.lang.String,java.lang.String> prodAttrMaps)
This is used to test that an option value pair is actually still attached to the
product.
|
static java.lang.String |
makeVariantCodeFromOption(AdminOption opt,
com.konakart.db.KKCriteria crit,
java.sql.Connection con) |
protected static void |
setProductOptionCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
Add product option attributes to Criteria
|
protected static void |
setProductOptionValueCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
Add product option value attributes to Criteria
|
public static java.lang.String makeVariantCodeFromOption(AdminOption opt, com.konakart.db.KKCriteria crit, java.sql.Connection con) throws java.lang.Exception
java.lang.Exception
protected static java.lang.String getProductOptionsCodePerId(int productOptionId, com.konakart.db.KKCriteria crit, java.sql.Connection con) throws java.lang.Exception
productOptionId
- the productOptionIdcrit
- the critcon
- Connection for transactionjava.lang.Exception
- unexpected exceptionprotected static AdminProductOption[] getProductOptionsPerId(int productOptionId, com.konakart.db.KKCriteria crit) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
productOptionId
- the productOptionIdcrit
- the critcom.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
- unexpected exception in the KonaKart Admin Engineprotected static AdminProductOption[] getProductOptionsPerId(int productOptionId, com.konakart.db.KKCriteria crit, java.sql.Connection con) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
productOptionId
- the productOptionIdcrit
- the critcon
- Connection object for transactioncom.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
- unexpected exception in the KonaKart Admin Engineprotected static AdminProductOptionValue[] getProductOptionValuesPerId(int productOptionValueId, com.konakart.db.KKCriteria crit, java.sql.Connection con) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
productOptionValueId
- the productOptionValueIdcrit
- the critcon
- Connection object for transactionorg.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)KKAdminException
- unexpected exception in the KonaKart Admin Engineprotected static java.lang.String getProductOptionValueCodePerProductOptionId(int productOptionValueId, com.konakart.db.KKCriteria crit, java.sql.Connection con) throws java.lang.Exception
productOptionValueId
- the productOptionValueIdcrit
- the critcon
- Connection for transactionjava.lang.Exception
- unexpected exceptionprotected static void setProductOptionCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
c
- the cprotected static void setProductOptionValueCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
c
- the cpublic static boolean isEachOptionValuePairAlreadyAttached(java.lang.String encodedOptionValues, java.util.HashMap<java.lang.String,java.lang.String> prodAttrMaps)
encodedOptionValues
- the encodedOptionValuesprodAttrMaps
- the prodAttrMapspublic static java.util.List<AdminProductQuantity> getValidAdminProductQuantity(AdminProductQuantity[] productQuantities, java.util.HashMap<java.lang.String,java.lang.String> prodAttrMaps)
public static java.util.List<AdminVariantPrice> getValidAdminVariantPrice(AdminVariantPrice[] variantPrices, java.util.HashMap<java.lang.String,java.lang.String> prodAttrMaps)
Copyright © 2018 DS Data Systems UK Ltd.