public class JDBCConfiguration extends Configuration
DatabaseConnector
's.
JDBC type serialization is needed for database export/import functionalities for example.
clearBeforeRead, comment, compression, COMPRESSION_DEFLATED, COMPRESSION_GZIPPED, COMPRESSION_UNCOMPRESSED, encoding, ENCODING_ISO_8859_1_UNICODE_ESCAPES, handlers, hash, sorting
Constructor and Description |
---|
JDBCConfiguration()
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getSerializedField(DatabaseConnector connector,
java.sql.ResultSet rs,
java.lang.String colname)
Provides the serialized representation of a given database field value.
|
boolean |
updateSerializedField(DatabaseConnector connector,
java.sql.ResultSet rs,
java.lang.String colname,
java.lang.String value)
Updates a database field based on the given serialized value and column type.
|
clear, contains, equals, finalize, getBoolean, getBoolean, getByte, getByte, getCache, getChar, getChar, getClearBeforeRead, getComment, getCompression, getDouble, getDouble, getEncoding, getFloat, getFloat, getHandler, getHandler, getHandlers, getInt, getInt, getLong, getLong, getObject, getObject, getObject, getObject, getShort, getShort, getSupportedClassTypes, getSupportedTypes, getVariable, getVariables, isEmpty, isOrdered, isSecure, isSorting, isTypeSupported, isTypeSupported, read, read, read, read, readConvertProperties, readXML, readXML, readXML, readXML, remove, removeAllHandlers, removeHandler, removeHandler, removeStartsWith, setBoolean, setByte, setChar, setClearBeforeRead, setComment, setCompression, setDouble, setEncoding, setFloat, setHandler, setInt, setLong, setObject, setOrdered, setSecure, setSecure, setShort, setSorting, setVariable, size, write, write, write, write, writeXML, writeXML, writeXML, writeXML
public java.lang.String[] getSerializedField(DatabaseConnector connector, java.sql.ResultSet rs, java.lang.String colname)
JDBCConfiguration
class may be used here.
connector
- The connector responsible for type mappingrs
- The result set to get the native valuecolname
- The column name to processnull
indicates errorjava.lang.IllegalArgumentException
- If a parameter is invalidpublic boolean updateSerializedField(DatabaseConnector connector, java.sql.ResultSet rs, java.lang.String colname, java.lang.String value)
JDBCConfiguration
class may be used here.
connector
- The connector responsible for type mappingrs
- The result set to update the fieldcolname
- The column name to updatevalue
- The serialized field valuejava.lang.IllegalArgumentException
- If a parameter is invalidCopyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.