private class CopyDatabase.CopyObjectController extends JDBCGenericObjectController
| 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| Modifier | Constructor and Description |
|---|---|
protected |
CopyObjectController(JDBCConnectionInfo cninf,
java.lang.String tblname)
Constructs a new object 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.
|
protected java.util.HashMap<java.lang.String,java.lang.Object> |
resultSetToMap(java.sql.ResultSet rs)
Returns a map of field names and values from the given SQL result set.
|
getFieldNames, getFieldNamesForKey, getFieldNulls, getFieldTypes, getStatementKeyadd, 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, 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
protected CopyObjectController(JDBCConnectionInfo cninf, java.lang.String tblname)
cninf - (JDBCConnectionInfo) The JDBC connection to use.tblname - (String) The name of the table being copied.public boolean add(java.sql.ResultSet rs)
add in class JDBCGenericObjectControllerrs - (ResultSet) A result set of the records to add.true if the records added successfully,
otherwise false.protected java.util.HashMap<java.lang.String,java.lang.Object> resultSetToMap(java.sql.ResultSet rs)
throws java.sql.SQLException
Types.OTHER values.
resultSetToMap in class JDBCObjectController<JDBCGenericObject>rs - (ResultSet) The result set containing the database record
from which the names and values are to be obtained.java.sql.SQLException - - if an error occurs while processing the result
set.