public class YearMonthOfNumberTypeHandler extends AbstractTypeHandler<YearMonth>
YearMonthOfStringTypeHandler relies upon
YearMonth.of(int, int). Therefore column values
are expected as int. The format must be uuuuMM. Example: 201608
| 构造器和说明 |
|---|
YearMonthOfNumberTypeHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
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,
JDBCType jdbcType) |
getResult, getResult, getResult, setParametergetRawType, toStringpublic void setNonNullParameter(PreparedStatement ps, int i, YearMonth yearMonth, JDBCType jdbcType) throws SQLException
setNonNullParameter 在类中 AbstractTypeHandler<YearMonth>SQLExceptionpublic YearMonth getNullableResult(ResultSet rs, String columnName) throws SQLException
getNullableResult 在类中 AbstractTypeHandler<YearMonth>columnName - Colunm name, when configuration useColumnLabel is falseSQLExceptionpublic YearMonth getNullableResult(ResultSet rs, int columnIndex) throws SQLException
getNullableResult 在类中 AbstractTypeHandler<YearMonth>SQLExceptionpublic YearMonth getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
getNullableResult 在类中 AbstractTypeHandler<YearMonth>SQLExceptionCopyright © 2020–2021. All rights reserved.