| java.lang.Object com.versant.core.jdbc.sql.conv.OracleClobConverter
OracleClobConverter | public class OracleClobConverter implements JdbcConverter(Code) | | This converter converts Strings stored in Oracle CLOB columns to
and from SQL.
|
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 called for converters that return true for
isOracleStyleLOB. |
OracleClobConverter | public OracleClobConverter()(Code) | | |
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).
|
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 |
|
|