public class ProductAttributeDescriptorController extends JDBCObjectController<ProductAttributeDescriptor>
ProductAttributeDescriptor
class. Provides
methods for retrieving and persisting extended product attributes 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, ivTableName
ivHashCode, ivHashFlds, ivObjAttrs
Constructor and Description |
---|
ProductAttributeDescriptorController()
The constructor for the controller.
|
Modifier and Type | Method and Description |
---|---|
boolean |
delete(ProductAttributeDescriptor obj)
Deletes an existing record from the table associated with the controller.
|
boolean |
deleteAll()
Deletes all records in the table associated with the controller.
|
ProductAttributeDescriptor |
get(java.lang.String code)
Returns the descriptor record for a descriptor code.
|
java.util.ArrayList<ProductAttributeDescriptor> |
getAll()
Returns a collection of all records in the table associated with the
controller.
|
java.util.ArrayList<ProductAttributeDescriptor> |
getSearchable()
Returns a collection of searchable descriptor records.
|
Select |
getUISelect(java.lang.String code,
Product product)
Returns an HTML
Select object that contains either all or unassigned
descriptors and has the given code as the preselected code in the set of
options. |
java.util.ArrayList<ProductAttributeDescriptor> |
getUnassigned(Product product)
Returns a collection of unassigned descriptor records for a product.
|
boolean |
hasDescriptor(java.lang.String code)
Answers if the given descriptor code exists in the descriptor table.
|
add, add, add, arrayToMap, arrayToMap, countAll, delete, dispose, equals, 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, valuesToObject
cloneMapAttributes, 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, toStringArray
private static final long serialVersionUID
public ProductAttributeDescriptorController()
public boolean delete(ProductAttributeDescriptor obj)
delete
in class JDBCObjectController<ProductAttributeDescriptor>
obj
- (JDBCObject) The object for the record to be deleted.true
if the record deleted successfully,
otherwise false
.public boolean deleteAll()
deleteAll
in class JDBCObjectController<ProductAttributeDescriptor>
true
if the deletes are successful,
otherwise false
.public java.util.ArrayList<ProductAttributeDescriptor> getAll()
getAll
in class JDBCObjectController<ProductAttributeDescriptor>
public ProductAttributeDescriptor get(java.lang.String code)
code
- (String) The descriptor code for the desired record.public java.util.ArrayList<ProductAttributeDescriptor> getSearchable()
public java.util.ArrayList<ProductAttributeDescriptor> getUnassigned(Product product)
product
- (Product) The product for the desired records.public Select getUISelect(java.lang.String code, Product product)
Select
object that contains either all or unassigned
descriptors and has the given code as the preselected code in the set of
options. Invokers must assign a form field name to the returned object via
the setName
method before adding the object to the velocity template
data.code
- (String) The descriptor code to preselect in the select's
set of options. Pass an empty string for this parameter if a blank
option is to be created as the first option and then preselected.
Pass a null
for this parameter if no blank option and no
preselecting is desired.product
- (Product) The product for the desired records (optional).
When a product is supplied, only unassigned descriptors for the
product are included. Pass a null
value to include all
descriptors.Select
object.public boolean hasDescriptor(java.lang.String code)
code
- (String) The descriptor code to be checked.true
if descriptor code was found in
the table, otherwise false
.