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