java.lang.Object
org.seasar.doma.jdbc.type.AbstractJdbcType<Boolean>
org.seasar.doma.jdbc.type.IntegerAdaptiveBooleanType
- All Implemented Interfaces:
SqlLogFormatter<Boolean>,JdbcType<Boolean>
A JDBC type for
Types.INTEGER and Boolean.-
Field Summary
Fields inherited from class org.seasar.doma.jdbc.type.AbstractJdbcType
type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoConvertToLogFormat(Boolean value) protected BooleandoGetValue(CallableStatement callableStatement, int index) protected BooleandoGetValue(ResultSet resultSet, int index) protected voiddoSetValue(PreparedStatement preparedStatement, int index, Boolean value) protected intfromBooleanToInt(Boolean value) protected BooleanfromIntToBoolean(int value) Methods inherited from class org.seasar.doma.jdbc.type.AbstractJdbcType
convertToLogFormat, getValue, getValue, registerOutParameter, setValue
-
Constructor Details
-
IntegerAdaptiveBooleanType
public IntegerAdaptiveBooleanType()
-
-
Method Details
-
doGetValue
- Specified by:
doGetValuein classAbstractJdbcType<Boolean>- Throws:
SQLException
-
doSetValue
protected void doSetValue(PreparedStatement preparedStatement, int index, Boolean value) throws SQLException - Specified by:
doSetValuein classAbstractJdbcType<Boolean>- Throws:
SQLException
-
doGetValue
- Specified by:
doGetValuein classAbstractJdbcType<Boolean>- Throws:
SQLException
-
doConvertToLogFormat
- Specified by:
doConvertToLogFormatin classAbstractJdbcType<Boolean>
-
fromBooleanToInt
-
fromIntToBoolean
-