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