org.axiondb.types

Class UnsignedIntegerType

public class UnsignedIntegerType extends BaseNumberDataType

A DataTyperepresenting a unsigned integer value as a long.

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

Author: Rodney Waldhoff Chuck Burdick Jonathan Giron

Constructor Summary
UnsignedIntegerType()
Method Summary
booleanaccepts(Object value)
Objectconvert(Object value)
Returns an Long 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

UnsignedIntegerType

public UnsignedIntegerType()

Method Detail

accepts

public boolean accepts(Object value)

convert

public Object convert(Object value)
Returns an Long 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: UnsignedIntegerType

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