org.axiondb.types
public class ByteType extends BaseNumberDataType
Version: $Revision: 1.10 $ $Date: 2005/05/02 22:29:40 $
Constructor Summary | |
---|---|
ByteType() |
Method Summary | |
---|---|
int | compare(Object a, Object b) |
Object | convert(Object value)
Returns an Byte converted from the given value , or throws
IllegalArgumentExceptionif the given value isn't
acceptable . |
int | getColumnDisplaySize() |
protected Comparator | getComparator() |
int | getJdbcType() |
int | getPrecision() |
String | getPreferredValueClassName() |
DataType | makeNewInstance() |
Object | read(DataInput in) |
Object | successor(Object value) |
String | toString() |
void | write(Object value, DataOutput out)
Writes the given value to the given DataOutput .
|
acceptable
.Returns: Types#TINYINT
See Also: ByteType
DataOutput
.
Null
values are written as Byte.MIN_VALUE
,
false
.Byte.MIN_VALUE
values are written as
Byte.MIN_VALUE
,true
. All other values are written
directly.
Parameters: value the value to write, which must be acceptable