public class OrderAuditController extends JDBCObjectController<OrderAudit>
OrderAudit
class. Provides methods for
retrieving and persisting order audit 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, ivTableName
ivHashCode, ivHashFlds, ivObjAttrs
Constructor and Description |
---|
OrderAuditController()
The constructor for the controller.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addFromCart(Cart cart,
User user)
Adds a new order audit record to the database table based on the contents
of the given shopping cart.
|
boolean |
delete(OrderAudit obj)
Deletes an existing record from the table associated with the controller.
|
OrderAudit |
get(int orderref)
Returns the order audit record for the given order reference.
|
java.util.ArrayList<OrderAudit> |
getPurge(java.util.Date asof)
Returns a collection of order audit records that were created before the
given date.
|
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, 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 OrderAuditController()
public boolean delete(OrderAudit obj)
delete
in JDBCObjectController
.delete
in class JDBCObjectController<OrderAudit>
obj
- (JDBCObject) The object for the record to be deleted.true
if the record deleted successfully,
otherwise false
.public boolean addFromCart(Cart cart, User user)
cart
- (Cart) The shopping cart to use as the basis for the add.user
- (User) The web site user.true
if the adds are successful,
otherwise false
.public OrderAudit get(int orderref)
orderref
- (int) The order reference for the desired record.public java.util.ArrayList<OrderAudit> getPurge(java.util.Date asof)
asof
- (java.util.Date) The cutoff date for the desired records.