org.axiondb.types
public class BooleanType extends BaseDataType
Version: $Revision: 1.15 $ $Date: 2005/10/13 02:25:32 $
Constructor Summary | |
---|---|
BooleanType() |
Method Summary | |
---|---|
boolean | accepts(Object value)
Returns true iff value is null , or a
Boolean . |
Object | convert(Object value)
Returns a Boolean converted from the given value , or throws
IllegalArgumentExceptionif the given value isn't
acceptable . |
int | getColumnDisplaySize() |
Comparator | getComparator() |
int | getJdbcType() |
int | getPrecision() |
String | getPreferredValueClassName() |
DataType | makeNewInstance() |
Object | read(DataInput in) |
boolean | toBoolean(Object value) |
String | toString()
Returns "boolean"
|
void | write(Object value, DataOutput out)
Writes the given value to the given DataOutput .
|
true
iff value is null
, or a
Boolean
.Boolean
converted from the given value , or throws
IllegalArgumentExceptionif the given value isn't
acceptable
.Returns: Types#BOOLEAN
See Also: BooleanType
"boolean"
Returns: "boolean"
DataOutput
.
Null
values are written as (byte)-1
,
false
values are written as (byte)0
,
true
values are written as (byte)1
.
Parameters: value the value to write, which must be acceptable