org.axiondb.types

Class BigIntType

public class BigIntType extends BaseNumberDataType

A DataTyperepresenting a long value.

Version: $Revision: 1.1 $ $Date: 2005/11/03 01:26:57 $

Author: Rodney Waldhoff Ahimanikya Satapathy Jonathan Giron

Constructor Summary
BigIntType()
Method Summary
booleanaccepts(Object value)
Returns true iff value is String that can be convertedwithout exception, null, or a Number Number.
intcompare(Object a, Object b)
Objectconvert(Object value)
Returns an Long 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

BigIntType

public BigIntType()

Method Detail

accepts

public boolean accepts(Object value)
Returns true iff value is String that can be convertedwithout exception, null, or a Number Number.

compare

public int compare(Object a, Object b)

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()

getComparator

protected Comparator getComparator()

getJdbcType

public int getJdbcType()

getPrecision

public int getPrecision()

getPreferredValueClassName

public String getPreferredValueClassName()

makeNewInstance

public DataType makeNewInstance()

read

public Object read(DataInput in)

See Also: BigIntType

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

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