public class BooleanDataType extends AbstractDataType
BIGINT, BIGINT_AUX_LONG, BINARY, BIT, BLOB, BOOLEAN, CHAR, CLOB, DATE, DECIMAL, DOUBLE, FLOAT, INTEGER, LONGNVARCHAR, LONGVARBINARY, LONGVARCHAR, NCHAR, NUMERIC, NVARCHAR, REAL, SMALLINT, TIME, TIMESTAMP, TINYINT, UNKNOWN, VARBINARY, VARCHAR| Modifier and Type | Method and Description |
|---|---|
protected int |
compareNonNulls(Object value1,
Object value2)
Compares non-null values to each other.
|
Object |
getSqlValue(int column,
ResultSet resultSet)
Returns the specified column value from the specified resultset object.
|
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, getSqlType, getTypeClass, isDateTime, isNumber, loadClass, loadClass, toStringasString, forObject, forSqlType, forSqlTypeName, getSqlTypeNamepublic Object typeCast(Object value) throws TypeCastException
DataTypeDataTypetypeCast in class DataTypeTypeCastExceptionprotected int compareNonNulls(Object value1, Object value2) throws TypeCastException
AbstractDataTypeComparable. The two given objects
are the results of the DataType.typeCast(Object) method call which is usually
implemented by a specialized DataType implementation.compareNonNulls in class AbstractDataTypevalue1 - First value resulting from the DataType.typeCast(Object) method callvalue2 - Second value resulting from the DataType.typeCast(Object) method callComparable.compareTo(Object) invocation.TypeCastExceptionpublic Object getSqlValue(int column, ResultSet resultSet) throws SQLException, TypeCastException
DataTypegetSqlValue in class AbstractDataTypeSQLExceptionTypeCastExceptionpublic void setSqlValue(Object value, int column, PreparedStatement statement) throws SQLException, TypeCastException
DataTypesetSqlValue in class AbstractDataTypeSQLExceptionTypeCastExceptionCopyright © 2002-2017. All Rights Reserved.