public class ScalarTypeCharArray extends ScalarTypeBaseVarchar<char[]>
jdbcNative, jdbcType, type| Constructor and Description |
|---|
ScalarTypeCharArray() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(DataBind b,
char[] value)
Convert (if necessary) and bind the value to the preparedStatement.
|
char[] |
convertFromDbString(String dbValue) |
String |
convertToDbString(char[] beanValue) |
String |
formatValue(char[] t)
Convert the type into a string representation.
|
char[] |
jsonFromString(String value,
JsonValueAdapter ctx) |
String |
jsonToString(char[] value,
JsonValueAdapter ctx) |
char[] |
parse(String value)
Convert the string value to the appropriate java object.
|
char[] |
read(DataReader dataReader)
Read the value from the resultSet and convert if necessary to the logical
bean property value.
|
char[] |
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, loadIgnorepublic char[] convertFromDbString(String dbValue)
convertFromDbString in class ScalarTypeBaseVarchar<char[]>public String convertToDbString(char[] beanValue)
convertToDbString in class ScalarTypeBaseVarchar<char[]>public void bind(DataBind b, char[] value) throws SQLException
ScalarTypevalue may need to be converted from the logical bean property type to the JDBC type.
bind in interface ScalarDataReader<char[]>bind in interface ScalarType<char[]>bind in class ScalarTypeBaseVarchar<char[]>SQLExceptionpublic char[] read(DataReader dataReader) throws SQLException
ScalarTyperead in interface ScalarDataReader<char[]>read in interface ScalarType<char[]>read in class ScalarTypeBaseVarchar<char[]>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<char[]>toJdbcType in class ScalarTypeBaseVarchar<char[]>public char[] 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<char[]>toBeanType in class ScalarTypeBaseVarchar<char[]>public String formatValue(char[] t)
ScalarTypeReciprocal of parse().
formatValue in interface ScalarType<char[]>formatValue in class ScalarTypeBaseVarchar<char[]>public char[] parse(String value)
ScalarTypeMostly used to support CSV, JSON and XML parsing.
Reciprocal of formatValue().
parse in interface StringParserparse in interface ScalarType<char[]>parse in class ScalarTypeBaseVarchar<char[]>public char[] jsonFromString(String value, JsonValueAdapter ctx)
jsonFromString in interface ScalarType<char[]>jsonFromString in class ScalarTypeBaseVarchar<char[]>public String jsonToString(char[] value, JsonValueAdapter ctx)
jsonToString in interface ScalarType<char[]>jsonToString in class ScalarTypeBase<char[]>Copyright © 2014. All Rights Reserved.