public class YearTypeHandler extends BaseTypeHandler<Year>
configuration
Constructor and Description |
---|
YearTypeHandler() |
Modifier and Type | Method and Description |
---|---|
Year |
getNullableResult(CallableStatement cs,
int columnIndex) |
Year |
getNullableResult(ResultSet rs,
int columnIndex) |
Year |
getNullableResult(ResultSet rs,
String columnName)
Gets the nullable result.
|
void |
setNonNullParameter(PreparedStatement ps,
int i,
Year year,
JdbcType type) |
getResult, getResult, getResult, setConfiguration, setParameter
getRawType, toString
public void setNonNullParameter(PreparedStatement ps, int i, Year year, JdbcType type) throws SQLException
setNonNullParameter
in class BaseTypeHandler<Year>
SQLException
public Year getNullableResult(ResultSet rs, String columnName) throws SQLException
BaseTypeHandler
getNullableResult
in class BaseTypeHandler<Year>
rs
- the rscolumnName
- Colunm name, when configuration useColumnLabel
is false
SQLException
- the SQL exceptionpublic Year getNullableResult(ResultSet rs, int columnIndex) throws SQLException
getNullableResult
in class BaseTypeHandler<Year>
SQLException
public Year getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
getNullableResult
in class BaseTypeHandler<Year>
SQLException
Copyright © 2009–2021 MyBatis.org. All rights reserved.