public class ShipperController extends JDBCObjectController<Shipper>
Shipper
class. Provides methods for
retrieving and persisting shipper 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 |
---|
ShipperController()
The constructor for the controller.
|
Modifier and Type | Method and Description |
---|---|
boolean |
delete(Shipper obj)
Deletes an existing record from the table associated with the controller.
|
Shipper |
get(java.lang.String code)
Returns the shipper record for the given shipper code.
|
java.util.ArrayList<Shipper> |
getAll()
Returns a collection of all records in the table associated with the
controller.
|
protected Select |
getUISelect(java.util.ArrayList<Shipper> objlist,
java.lang.String code)
Returns an HTML
Select object that contains the shippers in the
given collection and has the given code as the preselected code in the set
of options. |
Select |
getUISelectAll(java.lang.String code)
Returns an HTML
Select object that contains all shippers and has
the given code as the preselected code in the set of options. |
Select |
getUISelectValid(java.lang.String country,
boolean isCommercial,
java.lang.String code)
Returns an HTML
Select object that contains shippers for a country
code and "is commercial" flag and has the given code as the preselected code
in the set of options. |
java.util.ArrayList<Shipper> |
getValid(java.lang.String country,
boolean isCommercial)
Returns a collection of the shipper records for a country code and "is
commercial" flag.
|
add, add, add, arrayToMap, arrayToMap, countAll, 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, 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 boolean delete(Shipper obj)
delete
in JDBCObjectController
.delete
in class JDBCObjectController<Shipper>
obj
- (JDBCObject) The object for the record to be deleted.true
if the record deleted successfully,
otherwise false
.public java.util.ArrayList<Shipper> getAll()
getAll
in class JDBCObjectController<Shipper>
public Shipper get(java.lang.String code)
code
- (String) The shipper code for the desired record.public java.util.ArrayList<Shipper> getValid(java.lang.String country, boolean isCommercial)
country
- (String) The country code for the desired records.isCommercial
- (boolean) The "is commercial" flag for the desired
records.protected Select getUISelect(java.util.ArrayList<Shipper> objlist, java.lang.String code)
Select
object that contains the shippers in the
given collection and has the given code as the preselected code in the set
of options. Invokers must assign a form field name to the returned object
via the setName
method before adding the object to the velocity
template data.objlist
- (ArrayList) The collection of shippers to include in
the select object.code
- (String) The shipper code to preselect in the select's set
of options. Pass an empty string for this parameter if a blank
option is to be created as the first option and then preselected.
Pass a null
for this parameter if no blank option and no
preselecting is desired.Select
object.public Select getUISelectAll(java.lang.String code)
Select
object that contains all shippers and has
the given code as the preselected code in the set of options. Invokers must
assign a form field name to the returned object via the setName
method before adding the object to the velocity template data.code
- (String) The shipper code to preselect in the select's set
of options. Pass an empty string for this parameter if a blank
option is to be created as the first option and then preselected.
Pass a null
for this parameter if no blank option and no
preselecting is desired.Select
object.public Select getUISelectValid(java.lang.String country, boolean isCommercial, java.lang.String code)
Select
object that contains shippers for a country
code and "is commercial" flag and has the given code as the preselected code
in the set of options. Invokers must assign a form field name to the returned
object via the setName
method before adding the object to the velocity
template data.country
- (String) The country code for the desired shippers.isCommercial
- (boolean) The "is commercial" flag for the desired
shippers.code
- (String) The shipper code to preselect in the select's set
of options. Pass an empty string for this parameter if a blank
option is to be created as the first option and then preselected.
Pass a null
for this parameter if no blank option and no
preselecting is desired.Select
object.