public class SpecialController extends JDBCObjectController<Special>
Special class. Provides methods for
retrieving and persisting special 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 |
|---|
SpecialController()
The constructor for the controller.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteProduct(Product product)
Deletes all records from the special table for the given product.
|
boolean |
deleteProduct(java.lang.String product,
java.lang.String uom)
Deletes all records from the special table for the given product and unit
of measure codes.
|
boolean |
deleteType(SpecialsType type)
Deletes all records from the special table for the given specials type.
|
boolean |
deleteType(java.lang.String type)
Deletes all records from the special table for the given specials type code.
|
Special |
get(java.lang.String product,
java.lang.String uom,
java.lang.String type)
Returns the special record for a product code, unit of measure code and
specials type code.
|
java.util.ArrayList<Special> |
getType(FlashServletContext ctx,
java.lang.String type)
Returns a collection of the special records for the given specials type code.
|
Special |
valuesToObject(java.util.HashMap<java.lang.String,java.lang.Object> attrs)
Returns a database object from the given set of attributes.
|
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, updatecloneMapAttributes, 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 Special valuesToObject(java.util.HashMap<java.lang.String,java.lang.Object> attrs)
valuesToObject in JDBCObjectController.
This method assumes the attributes were obtained from the zspecial database view.
valuesToObject in class JDBCObjectController<Special>attrs - (HashMap) The attributes to assign to the new object.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 boolean deleteType(SpecialsType type)
type - (SpecialsType) The specials type for the records to delete.true if the records deleted successfully,
otherwise false.public boolean deleteType(java.lang.String type)
type - (String) The specials type code for the records to delete.true if the records deleted successfully,
otherwise false.public Special get(java.lang.String product, java.lang.String uom, java.lang.String type)
product - (String) The product code for the desired record.uom - (String) The unit of measure code for the desired record.type - (String) The specials type code for the desired record.public java.util.ArrayList<Special> getType(FlashServletContext ctx, java.lang.String type)
ctx - (FlashServletContext) The current servlet context.
Pass a null if Xref information is not needed.type - (String) The specials type code for the desired records.