public class JDBCGenericObjectController extends JDBCObjectController<JDBCGenericObject>
JDBCObjectController
abstract
class. This is the controller for the JDBCGenericObject
class.
Provides methods for retrieving and persisting generic 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 |
---|
JDBCGenericObjectController(JDBCConnectionInfo cninf,
java.lang.String tblname)
The constructor for the controller.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.sql.ResultSet rs)
Adds all records in the given result set to the table associated with
this controller.
|
java.lang.String[] |
getFieldNames()
Returns an array of field names for the table associated with the
controller.
|
protected java.lang.String[] |
getFieldNamesForKey()
Returns an array of primary key field names for the table associated with
the controller.
|
protected boolean[] |
getFieldNulls()
Returns an array of field nullable flags for the table associated with
the controller.
|
protected int[] |
getFieldTypes()
Returns an array of field types (java.sql.Types) for the table associated
with the controller.
|
protected java.lang.String |
getStatementKey(java.lang.String stmtsfx)
Returns the full SQL statement resource key for a given statement resource
key suffix.
|
add, add, add, arrayToMap, arrayToMap, countAll, delete, delete, deleteAll, dispose, equals, getAll, getConnection, getConnectionInfo, getController, getFieldNamesForUpdate, getFieldNullsForKey, getFieldNullsForUpdate, getFieldsForOrderBy, getFieldsForWhere, getFieldSize, getFieldTypesForKey, getFieldTypesForUpdate, getStatementForDelete, getStatementForGet, getStatementForGetAll, getStatementForInsert, getStatementForUpdate, 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 JDBCGenericObjectController(JDBCConnectionInfo cninf, java.lang.String tblname)
cninf
- (JDBCConnectionInfo) The JDBC connection to use.public java.lang.String[] getFieldNames()
getFieldNames
in DBObjectController.getFieldNames
in class JDBCObjectController<JDBCGenericObject>
protected java.lang.String[] getFieldNamesForKey()
getFieldNamesForKey
in DBObjectController.getFieldNamesForKey
in class JDBCObjectController<JDBCGenericObject>
protected boolean[] getFieldNulls()
getFieldNulls
in DBObjectController.getFieldNulls
in class JDBCObjectController<JDBCGenericObject>
protected int[] getFieldTypes()
getFieldTypes
in DBObjectController.
Types.OTHER
values.
getFieldTypes
in class JDBCObjectController<JDBCGenericObject>
protected java.lang.String getStatementKey(java.lang.String stmtsfx)
getStatementKey
in DBObjectController.getStatementKey
in class JDBCObjectController<JDBCGenericObject>
stmtsfx
- (String) The resource key suffix for the desired SQL
statement. "SQL.@base." is prepended to the suffix to form the
actual resource key for the requested SQL statement.public boolean add(java.sql.ResultSet rs)
rs
- (ResultSet) A result set of the records to add.true
if the records added successfully,
otherwise false
.