public class SalesRepUserController extends JDBCObjectController<SalesRepUser>
SalesRepUser class. Provides methods for
retrieving and persisting sales rep user x-ref 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 |
|---|
SalesRepUserController()
The constructor for the controller.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteSalesRep(SalesRep rep)
Deletes all sales rep user records for a sales rep.
|
SalesRepUser |
get(java.lang.String id)
Returns the sales rep user record for the given user id.
|
SalesRepUser |
get(java.lang.String repcode,
java.lang.String userid)
Returns the sales rep user record for the given sales rep code and user id.
|
SalesRepUser |
get(User user)
Returns the sales rep user record for the given user.
|
java.util.ArrayList<SalesRepUser> |
getAll()
Returns a collection of all records in the table associated with the
controller.
|
java.util.ArrayList<SalesRepUser> |
getSalesRep(SalesRep rep)
Returns a collection of sales rep user records for the given sales rep.
|
java.util.ArrayList<SalesRepUser> |
getToNotify(java.lang.String custId)
Returns a collection of sales rep user records for the given customer id
and which have the receive email confirmation flag set to true.
|
SalesRepUser |
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, 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 SalesRepUserController()
public SalesRepUser valuesToObject(java.util.HashMap<java.lang.String,java.lang.Object> attrs)
valuesToObject in JDBCObjectController.valuesToObject in class JDBCObjectController<SalesRepUser>attrs - (HashMap) The attributes to assign to the new object.public java.util.ArrayList<SalesRepUser> getAll()
getAll in JDBCObjectController.getAll in class JDBCObjectController<SalesRepUser>public boolean deleteSalesRep(SalesRep rep)
rep - (SalesRep) The sales rep for the records to delete.true if the sales rep users successfully
deleted, otherwise false.public SalesRepUser get(java.lang.String id)
id - (String) The user id for the desired record.public SalesRepUser get(java.lang.String repcode, java.lang.String userid)
repcode - (String) The sales rep code for the desired record.userid - (String) The user id for the desired record.public SalesRepUser get(User user)
user - (User) The user for the desired record.public java.util.ArrayList<SalesRepUser> getSalesRep(SalesRep rep)
rep - (SalesRep) The sales rep for the desired records.public java.util.ArrayList<SalesRepUser> getToNotify(java.lang.String custId)
custId - (String) The customer id for the desired records.