org.axiondb.types

Class ByteType

public class ByteType extends BaseNumberDataType

A DataTyperepresenting a byte value.

Version: $Revision: 1.10 $ $Date: 2005/05/02 22:29:40 $

Author: Rodney Waldhoff Ahimanikya Satapathy Jonathan Giron

Constructor Summary
ByteType()
Method Summary
intcompare(Object a, Object b)
Objectconvert(Object value)
Returns an Byte converted from the given value , or throws IllegalArgumentExceptionif the given value isn't acceptable.
intgetColumnDisplaySize()
protected ComparatorgetComparator()
intgetJdbcType()
intgetPrecision()
StringgetPreferredValueClassName()
DataTypemakeNewInstance()
Objectread(DataInput in)
Objectsuccessor(Object value)
StringtoString()
voidwrite(Object value, DataOutput out)
Writes the given value to the given DataOutput.

Constructor Detail

ByteType

public ByteType()

Method Detail

compare

public int compare(Object a, Object b)

convert

public Object convert(Object value)
Returns an Byte converted from the given value , or throws IllegalArgumentExceptionif the given value isn't acceptable.

getColumnDisplaySize

public int getColumnDisplaySize()

getComparator

protected Comparator getComparator()

getJdbcType

public int getJdbcType()

Returns: Types#TINYINT

getPrecision

public int getPrecision()

getPreferredValueClassName

public String getPreferredValueClassName()

makeNewInstance

public DataType makeNewInstance()

read

public Object read(DataInput in)

See Also: ByteType

successor

public Object successor(Object value)

toString

public String toString()

write

public void write(Object value, DataOutput out)
Writes the given value to the given 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