public class RestockNotificationController extends JDBCObjectController<RestockNotification>
RestockNotification class. Provides methods for
retrieving and persisting restock notification 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 |
|---|
RestockNotificationController()
The constructor for the controller.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteDate(java.util.Date asof,
java.lang.String whichDate)
Deletes the restock notification records that have dates before the given
date.
|
int |
getPurgeCount(java.util.Date asof,
java.lang.String whichDate)
Returns the number of restock notification records that have dates before
the given date.
|
java.util.ArrayList<RestockNotification> |
getUnnotified()
Returns a collection of unnotified restock notification records that
have in-stock products.
|
boolean |
isPending(RestockNotification rn)
Determines if an unnotified restock notification record already exists
for a product code, unit of measure code and email address.
|
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, valuesToObjectcloneMapAttributes, 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 RestockNotificationController()
public boolean deleteDate(java.util.Date asof,
java.lang.String whichDate)
asof - (java.util.Date) The cutoff date for the desired records.whichDate - (String) The text name of the given date. This will
be either 'requested' or 'notified'. The supplied value is used
to determine the appropriate sql property key for the query.true if the deletes were successful,
otherwise false.public int getPurgeCount(java.util.Date asof,
java.lang.String whichDate)
asof - (java.util.Date) The cutoff date for the desired records.whichDate - (String) The text name of the given date. This will
be either 'requested' or 'notified'. The supplied value is used
to determine the appropriate sql property key for the query.public java.util.ArrayList<RestockNotification> getUnnotified()
public boolean isPending(RestockNotification rn)
rn - (RestockNotification) The restock notification that contains
the product code, unit of measure code and email address to be
searched.true if a matching unnotified record was
found, otherwise false.