org.axiondb.types

Class UnsignedByteType

public class UnsignedByteType extends BaseNumberDataType

A DataTyperepresenting an unsigned byte value.

Version: $Revision: 1.10 $ $Date: 2005/05/10 00:15:20 $

Author: Rodney Waldhoff Chuck Burdick Jonathan Giron

Constructor Summary
UnsignedByteType()
Method Summary
booleanaccepts(Object value)
Returns true iff value is null, a Number, within the unsigned byte range (0 to 255).
Objectconvert(Object value)
Returns an Short converted from the given value , or throws IllegalArgumentExceptionif the given value isn't acceptable.
intgetColumnDisplaySize()
intgetJdbcType()
intgetPrecision()
StringgetPreferredValueClassName()
booleanisUnsigned()
DataTypemakeNewInstance()
Objectread(DataInput in)
Objectsuccessor(Object value)
StringtoString()
voidwrite(Object value, DataOutput out)
Writes the given value to the given DataOutput.

Constructor Detail

UnsignedByteType

public UnsignedByteType()

Method Detail

accepts

public boolean accepts(Object value)
Returns true iff value is null, a Number, within the unsigned byte range (0 to 255).

convert

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

getColumnDisplaySize

public int getColumnDisplaySize()

getJdbcType

public int getJdbcType()

getPrecision

public int getPrecision()

getPreferredValueClassName

public String getPreferredValueClassName()

isUnsigned

public boolean isUnsigned()

makeNewInstance

public DataType makeNewInstance()

read

public Object read(DataInput in)

See Also: UnsignedByteType

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 MIN_VALUE, false.MIN_VALUE values are written as MIN_VALUE,true. All other values are written directly.

Parameters: value the value to write, which must be acceptable