public class ManufacturerController extends JDBCObjectController<Manufacturer>
Manufacturer
class. Provides methods for
retrieving and persisting manufacturer 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 |
---|
ManufacturerController()
The constructor for the controller.
|
Modifier and Type | Method and Description |
---|---|
Manufacturer |
get(java.lang.String code)
Returns the manufacturer record for the given manufacturer code.
|
Select |
getUISelect(java.lang.String code)
Returns an HTML
Select object that contains all manufacturers and has
the given code as the preselected code in the set of options. |
boolean |
hasManufacturer(java.lang.String code)
Answers if a given manufacturer code exists in the manufacturer table.
|
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 ManufacturerController()
public Manufacturer get(java.lang.String code)
code
- (String) The manufacturer code for the desired record.public Select getUISelect(java.lang.String code)
Select
object that contains all manufacturers 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 manufacturer code to preselect in the select's
setof 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 boolean hasManufacturer(java.lang.String code)
code
- (String) The manufacturer code to check.true
if the manufacturer code exists,
otherwise false
.