public class YearMonthOfStringTypeHandler extends AbstractTypeHandler<YearMonth>
YearMonth.
YearMonthOfStringTypeHandler relies upon
YearMonth.parse. Therefore column values
are expected as strings. The format must be uuuu-MM. Example: "2016-08"
| 构造器和说明 |
|---|
YearMonthOfStringTypeHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.