public class OrderAuditLineController extends JDBCObjectController<OrderAuditLine>
OrderAuditLine
class. Provides methods for
retrieving and persisting order audit detail 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 |
---|
OrderAuditLineController()
The constructor for the controller.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addFromCart(Cart cart)
Adds new order audit line records to the database table for the given
shopping cart's cart lines, confirmation lines and adjustment lines.
|
boolean |
deleteOrderRef(int orderref)
Deletes the order audit lines in the database table for the given order
reference.
|
private int |
getNextLineNumber(int orderref)
Returns the next available line number for an order reference.
|
java.util.ArrayList<OrderAuditLine> |
getOrderRef(int orderref)
Returns a collection of all order audit lines for an order reference.
|
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, 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 OrderAuditLineController()
public boolean addFromCart(Cart cart)
cart
- (Cart) The shopping cart to use as the basis for the adds.true
if the adds are successful,
otherwise false
.private int getNextLineNumber(int orderref)
orderref
- (int) The order reference for the desired line number.public java.util.ArrayList<OrderAuditLine> getOrderRef(int orderref)
orderref
- (int) The order reference for the desired audit lines.public boolean deleteOrderRef(int orderref)
orderref
- (int) The order reference to delete.true
if the delete is successful,
otherwise false
.