Package org.dbunit.dataset.datatype
Class DateDataType
java.lang.Object
org.dbunit.dataset.datatype.DataType
org.dbunit.dataset.datatype.AbstractDataType
org.dbunit.dataset.datatype.DateDataType
- Since:
- Feb 19, 2002
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Field Summary
Fields inherited from class org.dbunit.dataset.datatype.DataType
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 -
Method Summary
Modifier and TypeMethodDescriptiongetSqlValue(int column, ResultSet resultSet) Returns the specified column value from the specified resultset object.booleanReturnstrueif thisDataTyperepresents a date and/or time.voidsetSqlValue(Object value, int column, PreparedStatement statement) Set the specified value to the specified prepared statement object.Returns the specified value typecasted to thisDataTypeMethods inherited from class org.dbunit.dataset.datatype.AbstractDataType
areObjectsEqual, compare, compareNonNulls, getSqlType, getTypeClass, isNumber, loadClass, loadClass, toStringMethods inherited from class org.dbunit.dataset.datatype.DataType
asString, forObject, forSqlType, forSqlTypeName, getSqlTypeName, isExtendedSyntax
-
Method Details
-
typeCast
Description copied from class:DataTypeReturns the specified value typecasted to thisDataType- Specified by:
typeCastin classDataType- Throws:
TypeCastException
-
isDateTime
public boolean isDateTime()Description copied from class:DataTypeReturnstrueif thisDataTyperepresents a date and/or time.- Overrides:
isDateTimein classAbstractDataType
-
getSqlValue
Description copied from class:DataTypeReturns the specified column value from the specified resultset object.- Overrides:
getSqlValuein classAbstractDataType- Throws:
SQLExceptionTypeCastException
-
setSqlValue
public void setSqlValue(Object value, int column, PreparedStatement statement) throws SQLException, TypeCastException Description copied from class:DataTypeSet the specified value to the specified prepared statement object.- Overrides:
setSqlValuein classAbstractDataType- Throws:
SQLExceptionTypeCastException
-