| com.versant.core.jdbc.JdbcConverter
All known Subclasses: com.versant.core.jdbc.sql.conv.OracleClobConverter, com.versant.core.jdbc.sql.conv.TypeAsStringConverter, com.versant.core.jdbc.sql.conv.TypeAsBytesConverter, com.versant.core.jdbc.sql.conv.JdbcConverterBase, com.versant.core.jdbc.sql.conv.TypeAsBytesConverterBase, com.versant.core.jdbc.sql.conv.OracleBlobConverter,
JdbcConverter | public interface JdbcConverter (Code) | | JdbcConverters are used to convert a column from a JDBC ResultSet into a
Java object and to set a parameter of a PreparedStatement from a Java
object. There are also extra methods used to support columns that need
special handling (e.g. Oracle LOBs).
|
Method Summary | |
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. | 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. | 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 only called for converters that return true for
isOracleStyleLOB. |
get | 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 | public Class getValueType()(Code) | | Get the type of our expected value objects (e.g. java.util.Locale
for a converter for Locale's). If the converter works with a primitive
type e.g. Integer.TYPE then the corresponding wrapper class should be
returned i.e. Integer.class.
|
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 |
|
|