public static class ScalarTypeBoolean.IntBoolean extends ScalarTypeBoolean.BooleanBase
jdbcNative, jdbcType, type| Constructor and Description |
|---|
ScalarTypeBoolean.IntBoolean(Integer trueValue,
Integer falseValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(DataBind b,
Boolean value)
Convert (if necessary) and bind the value to the preparedStatement.
|
int |
getLength()
Just return 0.
|
Boolean |
read(DataReader dataReader)
Read the value from the resultSet and convert if necessary to the logical
bean property value.
|
Boolean |
toBeanType(Object value)
Convert the db value to the Boolean value.
|
Integer |
toInteger(Object value)
Convert the Boolean value to the db value.
|
Object |
toJdbcType(Object value)
Convert the value as necessary to the JDBC type.
|
formatValue, isDateTimeCapable, parse, parseDateTime, readData, writeDataaccumulateScalarTypes, format, getDbNullValue, getJdbcType, getType, isDbNull, isJdbcNative, jsonFromString, jsonToString, jsonWrite, loadIgnorepublic int getLength()
ScalarTypeBasegetLength in interface ScalarType<Boolean>getLength in class ScalarTypeBase<Boolean>public void bind(DataBind b, Boolean value) throws SQLException
ScalarTypevalue may need to be converted from the logical bean property type to the JDBC type.
SQLExceptionpublic Boolean read(DataReader dataReader) throws SQLException
ScalarTypeSQLExceptionpublic 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.
Copyright © 2014. All Rights Reserved.