public class CartController extends JDBCObjectController<Cart>
Cart class. Provides methods for
retrieving and persisting cart 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 |
|---|
CartController()
The constructor for the controller.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(Cart obj)
Deletes an existing record from the table associated with the controller.
|
boolean |
deleteType(java.lang.String type)
Deletes all cart records for the given type.
|
Cart |
get(java.lang.String id)
Returns the cart record for the given cart id.
|
java.util.ArrayList<Cart> |
getPurge(java.lang.String type,
java.util.Date asof)
Returns a collection of cart records that have not been accessed since the
given date.
|
Cart |
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, 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 boolean delete(Cart obj)
delete in JDBCObjectController.delete in class JDBCObjectController<Cart>obj - (JDBCObject) The object for the record to be deleted.true if the record deleted successfully,
otherwise false.public Cart valuesToObject(java.util.HashMap<java.lang.String,java.lang.Object> attrs)
valuesToObject in JDBCObjectController.valuesToObject in class JDBCObjectController<Cart>attrs - (HashMap) The attributes to assign to the new object.public boolean deleteType(java.lang.String type)
type - (String) The type of cart (shopping or favorites) to
delete. Must be one of the TYPE constants defined
in Cart.true if the records deleted successfully,
otherwise false.public Cart get(java.lang.String id)
id - (String) The cart id for the desired record.public java.util.ArrayList<Cart> getPurge(java.lang.String type, java.util.Date asof)
type - (String) The type of carts to retrieve (shopping carts or
favorite items). Must be one of the valid defined cart types
(TYPE_SHOPPING, TYPE_FAVORITE).asof - (java.util.Date) The cutoff date for the desired records.