public class ScalarTypeClob extends ScalarTypeBaseVarchar<String>
jdbcNative, jdbcType, type| Modifier | Constructor and Description |
|---|---|
|
ScalarTypeClob() |
protected |
ScalarTypeClob(boolean jdbcNative,
int jdbcType) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(DataBind b,
String value)
Convert (if necessary) and bind the value to the preparedStatement.
|
String |
convertFromDbString(String dbValue) |
String |
convertToDbString(String beanValue) |
String |
formatValue(String t)
Convert the type into a string representation.
|
String |
jsonFromString(String value,
JsonValueAdapter ctx) |
String |
jsonToString(String value,
JsonValueAdapter ctx) |
String |
parse(String value)
Convert the string value to the appropriate java object.
|
String |
read(DataReader dataReader)
Read the value from the resultSet and convert if necessary to the logical
bean property value.
|
String |
toBeanType(Object value)
Convert the value as necessary to the logical Bean type.
|
Object |
toJdbcType(Object value)
Convert the value as necessary to the JDBC type.
|
format, isDateTimeCapable, jsonWrite, parseDateTime, readData, toJsonString, writeDataaccumulateScalarTypes, getDbNullValue, getJdbcType, getLength, getType, isDbNull, isJdbcNative, loadIgnoreprotected ScalarTypeClob(boolean jdbcNative,
int jdbcType)
public ScalarTypeClob()
public String convertFromDbString(String dbValue)
convertFromDbString in class ScalarTypeBaseVarchar<String>public String convertToDbString(String beanValue)
convertToDbString in class ScalarTypeBaseVarchar<String>public void bind(DataBind b, String value) throws SQLException
ScalarTypevalue may need to be converted from the logical bean property type to the JDBC type.
bind in interface ScalarDataReader<String>bind in interface ScalarType<String>bind in class ScalarTypeBaseVarchar<String>SQLExceptionpublic String read(DataReader dataReader) throws SQLException
ScalarTyperead in interface ScalarDataReader<String>read in interface ScalarType<String>read in class ScalarTypeBaseVarchar<String>SQLExceptionpublic Object toJdbcType(Object value)
ScalarTypeNote that this should also match the type as per the getJdbcType() method.
This is typically used when the matching type is used in a where clause and we use this to ensure it is an appropriate jdbc type.
toJdbcType in interface ScalarType<String>toJdbcType in class ScalarTypeBaseVarchar<String>public String toBeanType(Object value)
ScalarTypeThe type as per the bean property.
This is used to automatically convert id values (typically from a string to a int, long or UUID).
toBeanType in interface ScalarType<String>toBeanType in class ScalarTypeBaseVarchar<String>public String formatValue(String t)
ScalarTypeReciprocal of parse().
formatValue in interface ScalarType<String>formatValue in class ScalarTypeBaseVarchar<String>public String parse(String value)
ScalarTypeMostly used to support CSV, JSON and XML parsing.
Reciprocal of formatValue().
parse in interface StringParserparse in interface ScalarType<String>parse in class ScalarTypeBaseVarchar<String>public String jsonFromString(String value, JsonValueAdapter ctx)
jsonFromString in interface ScalarType<String>jsonFromString in class ScalarTypeBaseVarchar<String>public String jsonToString(String value, JsonValueAdapter ctx)
jsonToString in interface ScalarType<String>jsonToString in class ScalarTypeBase<String>Copyright © 2014. All Rights Reserved.