public class YearMonthTypeHandler extends org.apache.ibatis.type.BaseTypeHandler<YearMonth>
YearMonth
YearMonthTypeHandler relies upon
YearMonth.parse. Therefore column values
are expected as strings. The format must be uuuu-MM. Example: "2016-08"| Constructor and Description |
|---|
YearMonthTypeHandler() |
| Modifier and Type | Method and Description |
|---|---|
YearMonth |
getNullableResult(CallableStatement cs,
int columnIndex) |
YearMonth |
getNullableResult(ResultSet rs,
int columnIndex) |
YearMonth |
getNullableResult(ResultSet rs,
String columnName) |
void |
setNonNullParameter(PreparedStatement ps,
int i,
YearMonth yearMonth,
org.apache.ibatis.type.JdbcType jt) |
public void setNonNullParameter(PreparedStatement ps, int i, YearMonth yearMonth, org.apache.ibatis.type.JdbcType jt) throws SQLException
setNonNullParameter in class org.apache.ibatis.type.BaseTypeHandler<YearMonth>SQLExceptionpublic YearMonth getNullableResult(ResultSet rs, String columnName) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<YearMonth>SQLExceptionpublic YearMonth getNullableResult(ResultSet rs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<YearMonth>SQLExceptionpublic YearMonth getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<YearMonth>SQLExceptionCopyright © 2016–2017 MyBatis.org. All rights reserved.