public static class ScalarTypeEnumStandard.StringEnum extends ScalarTypeEnumStandard.EnumBase implements ScalarTypeEnum
enumTypejdbcNative, jdbcType, type| Constructor and Description |
|---|
ScalarTypeEnumStandard.StringEnum(Class enumType)
Create a ScalarTypeEnum.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(DataBind b,
Object value)
Convert (if necessary) and bind the value to the preparedStatement.
|
String |
getContraintInValues()
Return the IN values for DB constraint construction.
|
int |
getLength()
Just return 0.
|
Object |
read(DataReader dataReader)
Read the value from the resultSet and convert if necessary to the logical
bean property value.
|
Object |
toBeanType(Object dbValue)
Convert the value as necessary to the logical Bean type.
|
Object |
toJdbcType(Object beanValue)
Convert the Boolean value to the db value.
|
format, formatValue, isDateTimeCapable, jsonFromString, jsonToString, parse, parseDateTime, readData, writeDataaccumulateScalarTypes, getDbNullValue, getJdbcType, getType, isDbNull, isJdbcNative, jsonWrite, loadIgnorepublic ScalarTypeEnumStandard.StringEnum(Class enumType)
public String getContraintInValues()
getContraintInValues in interface ScalarTypeEnumpublic int getLength()
ScalarTypeBasegetLength in interface ScalarTypegetLength in class ScalarTypeBasepublic void bind(DataBind b, Object value) throws SQLException
ScalarTypevalue may need to be converted from the logical bean property type to the JDBC type.
bind in interface ScalarDataReaderbind in interface ScalarTypeSQLExceptionpublic Object read(DataReader dataReader) throws SQLException
ScalarTyperead in interface ScalarDataReaderread in interface ScalarTypeSQLExceptionpublic Object toJdbcType(Object beanValue)
toJdbcType in interface ScalarTypepublic Object toBeanType(Object dbValue)
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 ScalarTypeCopyright © 2014. All Rights Reserved.