org.dbunit.dataset.datatype
Class BytesDataType
java.lang.Object
org.dbunit.dataset.datatype.DataType
org.dbunit.dataset.datatype.AbstractDataType
org.dbunit.dataset.datatype.BytesDataType
- Direct Known Subclasses:
- BinaryStreamDataType, BlobDataType
public class BytesDataType
- extends AbstractDataType
- Since:
- 1.0 (Mar 20, 2002)
- Version:
- $Revision: 909 $ $Date: 2008-12-04 21:20:00 +0100 (Thu, 04 Dec 2008) $
- Author:
- Manuel Laflamme, Last changed by: $Author: gommma $
Fields inherited from class org.dbunit.dataset.datatype.DataType |
BIGINT, BINARY, BIT, BLOB, BOOLEAN, CHAR, CLOB, DATE, DECIMAL, DOUBLE, FLOAT, INTEGER, LONGVARBINARY, LONGVARCHAR, NUMERIC, REAL, SMALLINT, TIME, TIMESTAMP, TINYINT, UNKNOWN, VARBINARY, VARCHAR |
typeCast
public Object typeCast(Object value)
throws TypeCastException
- Description copied from class:
DataType
- Returns the specified value typecasted to this
DataType
- Specified by:
typeCast
in class DataType
- Throws:
TypeCastException
compareNonNulls
protected int compareNonNulls(Object value1,
Object value2)
throws TypeCastException
- Description copied from class:
AbstractDataType
- Compares non-null values to each other. Both objects are guaranteed to be not
null and to implement the interface
Comparable
. The two given objects
are the results of the DataType.typeCast(Object)
method call which is usually
implemented by a specialized DataType
implementation.
- Overrides:
compareNonNulls
in class AbstractDataType
- Parameters:
value1
- First value resulting from the DataType.typeCast(Object)
method callvalue2
- Second value resulting from the DataType.typeCast(Object)
method call
- Returns:
- The result of the
Comparable.compareTo(Object)
invocation.
- Throws:
TypeCastException
compare
public int compare(byte[] v1,
byte[] v2)
throws TypeCastException
- Throws:
TypeCastException
getSqlValue
public Object getSqlValue(int column,
ResultSet resultSet)
throws SQLException,
TypeCastException
- Description copied from class:
DataType
- Returns the specified column value from the specified resultset object.
- Overrides:
getSqlValue
in class AbstractDataType
- Throws:
SQLException
TypeCastException
setSqlValue
public void setSqlValue(Object value,
int column,
PreparedStatement statement)
throws SQLException,
TypeCastException
- Description copied from class:
DataType
- Set the specified value to the specified prepared statement object.
- Overrides:
setSqlValue
in class AbstractDataType
- Throws:
SQLException
TypeCastException
Copyright © 2002-2012. All Rights Reserved.