public class CatalogProductController extends JDBCObjectController<CatalogProduct>
CatalogProduct class. Provides methods for
retrieving and persisting category product x-ref table records in the database.| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
ivDBObjCls, ivFieldCount, ivFieldKeyAlt, ivFieldKeyPri, ivFieldResPfx, ivSyncLast, ivSyncType, ivTableNameivHashCode, ivHashFlds, ivObjAttrs| Constructor and Description |
|---|
CatalogProductController()
The constructor for the controller.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteCategory(Category category)
Deletes all records from the category product x-ref table for the given
category.
|
boolean |
deleteCategory(java.lang.String category)
Deletes all records from the category product x-ref table for the given
category code.
|
boolean |
deleteProduct(Product product)
Deletes all records from the category product x-ref table for the given
product.
|
boolean |
deleteProduct(java.lang.String product,
java.lang.String uom)
Deletes all records from the category product x-ref table for the given
product and unit of measure codes.
|
CatalogProduct |
get(java.lang.String category,
java.lang.String product,
java.lang.String uom)
Returns the category product x-ref record for the given category, product
and unit of measure codes.
|
java.util.ArrayList<CatalogProduct> |
getCategory(Category category)
Returns a collection of category product x-ref records for the given
category.
|
java.util.ArrayList<CatalogProduct> |
getCategory(java.lang.String category)
Returns a collection of category product x-ref records for the given
category code.
|
java.util.ArrayList<CatalogProduct> |
getProduct(Product product)
Returns a collection of category product x-ref records for the given
product.
|
add, add, add, arrayToMap, arrayToMap, countAll, delete, delete, deleteAll, dispose, equals, getAll, getConnection, getConnectionInfo, getController, getFieldNames, getFieldNamesForKey, getFieldNamesForUpdate, getFieldNulls, getFieldNullsForKey, getFieldNullsForUpdate, getFieldsForOrderBy, getFieldsForWhere, getFieldSize, getFieldTypes, getFieldTypesForKey, getFieldTypesForUpdate, getStatementForDelete, getStatementForGet, getStatementForGetAll, getStatementForInsert, getStatementForUpdate, getStatementKey, getStatementString, getTableName, hasFieldNamesForKey, hasFieldNamesForUpdate, isDuplicate, resultSetToArray, resultSetToMap, resultSetToMap, resultSetToObject, setConnectionInfo, setPSDeleteValues, setPSExistsValues, setPSInsertValues, setPSUpdateValues, setPSValue, update, update, valuesToObjectcloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArrayprivate static final long serialVersionUID
public CatalogProductController()
public boolean deleteCategory(Category category)
category - (Category) The category for the records to delete.true if the records deleted successfully,
otherwise false.public boolean deleteCategory(java.lang.String category)
category - (String) The category code for the records to delete.true if the records deleted successfully,
otherwise false.public boolean deleteProduct(Product product)
product - (Product) The product for the records to delete.true if the records deleted successfully,
otherwise false.public boolean deleteProduct(java.lang.String product,
java.lang.String uom)
product - (String) The product code for the records to delete.uom - (String) The unit of measure code for the records to delete.true if the records deleted successfully,
otherwise false.public CatalogProduct get(java.lang.String category, java.lang.String product, java.lang.String uom)
category - (String) The category code for the desired record.product - (String) The product code for the desired record.uom - (String) The unit of measure code for the desired record.public java.util.ArrayList<CatalogProduct> getCategory(Category category)
category - (Category) The category for the desired records.public java.util.ArrayList<CatalogProduct> getCategory(java.lang.String category)
category - (String) The category code for the desired records.public java.util.ArrayList<CatalogProduct> getProduct(Product product)
product - (Product) The product for the desired records.