| java.lang.Object com.versant.core.jdbc.sql.conv.JdbcConverterBase com.versant.core.jdbc.sql.conv.TypeAsTrimStringConverterBase
All known Subclasses: com.versant.core.jdbc.sql.conv.FileConverterTrim, com.versant.core.jdbc.sql.conv.URLConverterTrim,
TypeAsTrimStringConverterBase | abstract public class TypeAsTrimStringConverterBase extends JdbcConverterBase (Code) | | This is a base class for converters that convert some type to/from String
and store it in a column compatible with getString/setString. The string
retrieved is trimmed before the value instance is created. Subclasses
must implement:
Subclasses may also implement
TypeAsTrimStringConverterBase.toString(Object) if the
toString method of the value type itself is not suitable. A
JdbcConverterFactory must also be written.
|
fromString | abstract protected Object fromString(String s)(Code) | | Create an instance of our type from a String.
Parameters: s - String to use (never null) |
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 |
toString | protected String toString(Object value)(Code) | | Convert an instance of our type to a String.
Parameters: value - Value to convert (never null) |
Methods inherited from com.versant.core.jdbc.sql.conv.JdbcConverterBase | abstract public Object get(ResultSet rs, int index, JdbcColumn col) throws SQLException, JDOFatalDataStoreException(Code)(Java Doc) public String getOracleStyleLOBNotNullString()(Code)(Java Doc) abstract public Class getValueType()(Code)(Java Doc) public boolean isOracleStyleLOB()(Code)(Java Doc) abstract public void set(PreparedStatement ps, int index, JdbcColumn col, Object value) throws SQLException, JDOFatalDataStoreException(Code)(Java Doc) public void set(PreparedStatement ps, int index, JdbcColumn col, int value) throws SQLException, JDOFatalDataStoreException(Code)(Java Doc) public void set(ResultSet rs, int index, JdbcColumn col, Object value) throws SQLException, JDOFatalDataStoreException(Code)(Java Doc)
|
|
|