| java.lang.Object com.versant.core.jdbc.sql.conv.JdbcConverterBase
All known Subclasses: com.versant.core.jdbc.sql.conv.NoMinCharConverter, com.versant.core.jdbc.sql.conv.AsciiStreamConverter, com.versant.core.jdbc.sql.conv.ClobStringConverter, com.versant.core.jdbc.sql.conv.CharConverter, com.versant.core.jdbc.sql.conv.TypeAsStringConverterBase, com.versant.core.jdbc.sql.conv.NullBytesAsBinaryConverter, com.versant.core.jdbc.sql.conv.BytesConverter, com.versant.core.jdbc.sql.conv.InformixSETrimStringConverter, com.versant.core.jdbc.sql.conv.BigIntegerConverter, com.versant.core.jdbc.sql.conv.InputStreamConverter, com.versant.core.jdbc.sql.conv.TypeAsTrimStringConverterBase, com.versant.core.jdbc.sql.conv.BigDecimalConverter, com.versant.core.jdbc.sql.conv.LocaleConverter, com.versant.core.jdbc.sql.conv.BooleanConverter, com.versant.core.jdbc.sql.conv.CharacterStreamConverter, com.versant.core.jdbc.sql.conv.DateTimestampConverter, com.versant.core.jdbc.sql.conv.DummyStringConverter, com.versant.core.jdbc.sql.conv.NotSupportedConverter, com.versant.core.jdbc.sql.conv.TimestampConverter,
JdbcConverterBase | abstract public class JdbcConverterBase implements JdbcConverter(Code) | | Base class for converters. This implements most methods in JdbcConverter
assuming that this is not a Oracle style LOB converter. Subclasses
only have to provide the following methods:
A
JdbcConverterFactory must also be written.
|
Method Summary | |
abstract public Object | get(ResultSet rs, int index, JdbcColumn col) Get the value of col from rs at position index. | public String | getOracleStyleLOBNotNullString() This is only called if isOracleStyleLOB returns true. | abstract public Class | getValueType() Get the type of our expected value objects (e.g. | public boolean | isOracleStyleLOB() Is this converter for an Oracle style LOB column? Oracle LOBs require
a hard coded a value into the insert/update statement instead of using
a replaceable parameter and then select the value (if not null) and
modify it. | abstract public void | set(PreparedStatement ps, int index, JdbcColumn col, Object value) Set parameter index on ps to value (for col). | public void | set(PreparedStatement ps, int index, JdbcColumn col, int value) Set parameter index on ps to value (for col). | public void | set(ResultSet rs, int index, JdbcColumn col, Object value) This method is called for converters that return true for
isOracleStyleLOB. |
get | abstract public Object get(ResultSet rs, int index, JdbcColumn col) throws SQLException, JDOFatalDataStoreException(Code) | | Get the value of col from rs at position index.
exception: SQLException - on SQL errors exception: JDOFatalDataStoreException - if the ResultSet value is invalid |
getOracleStyleLOBNotNullString | public String getOracleStyleLOBNotNullString()(Code) | | This is only called if isOracleStyleLOB returns true. Get the String
to be embedded in an SQL insert/update statement when the value for
this column is not null (e.g. "empty_clob()");
|
getValueType | abstract public Class getValueType()(Code) | | Get the type of our expected value objects (e.g. java.util.Locale
for a converter for Locale's).
|
isOracleStyleLOB | public boolean isOracleStyleLOB()(Code) | | Is this converter for an Oracle style LOB column? Oracle LOBs require
a hard coded a value into the insert/update statement instead of using
a replaceable parameter and then select the value (if not null) and
modify it.
|
set | public void set(PreparedStatement ps, int index, JdbcColumn col, int value) throws SQLException, JDOFatalDataStoreException(Code) | | Set parameter index on ps to value (for col). This special form is used
when the value to be set is available as an int to avoid creating
an wrapper instance.
exception: SQLException - on SQL errors exception: JDOFatalDataStoreException - if value is invalid |
set | public void set(ResultSet rs, int index, JdbcColumn col, Object value) throws SQLException, JDOFatalDataStoreException(Code) | | This method is called for converters that return true for
isOracleStyleLOB. The value at index in rs will contain the LOB to
be updated.
exception: SQLException - on SQL errors exception: JDOFatalDataStoreException - if value is invalid |
|
|