public class TimeDataType extends AbstractDataType
Types.TIME
object to a java object.BIGINT, BIGINT_AUX_LONG, BINARY, BIT, BLOB, BOOLEAN, CHAR, CLOB, DATE, DECIMAL, DOUBLE, FLOAT, INTEGER, LONGNVARCHAR, LONGVARBINARY, LONGVARCHAR, NCHAR, NUMERIC, NVARCHAR, REAL, RELATIVE_DATE_TIME_PARSER, SMALLINT, TIME, TIMESTAMP, TINYINT, UNKNOWN, VARBINARY, VARCHAR
Modifier and Type | Method and Description |
---|---|
Object |
getSqlValue(int column,
ResultSet resultSet)
Returns the specified column value from the specified resultset object.
|
boolean |
isDateTime()
Returns
true if this DataType represents a
date and/or time. |
void |
setSqlValue(Object value,
int column,
PreparedStatement statement)
Set the specified value to the specified prepared statement object.
|
Object |
typeCast(Object value)
Returns the specified value typecasted to this
DataType |
areObjectsEqual, compare, compareNonNulls, getSqlType, getTypeClass, isNumber, loadClass, loadClass, toString
asString, forObject, forSqlType, forSqlTypeName, getSqlTypeName, isExtendedSyntax
public Object typeCast(Object value) throws TypeCastException
DataType
DataType
typeCast
in class DataType
TypeCastException
public boolean isDateTime()
DataType
true
if this DataType
represents a
date and/or time.isDateTime
in class AbstractDataType
public Object getSqlValue(int column, ResultSet resultSet) throws SQLException, TypeCastException
DataType
getSqlValue
in class AbstractDataType
SQLException
TypeCastException
public void setSqlValue(Object value, int column, PreparedStatement statement) throws SQLException, TypeCastException
DataType
setSqlValue
in class AbstractDataType
SQLException
TypeCastException
Copyright © 2002–2024. All rights reserved.