org.axiondb.types

Class UnsignedShortType

public class UnsignedShortType extends BaseNumberDataType

A DataTyperepresenting an unsigned short value as an int.

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

Author: Rodney Waldhoff Chuck Burdick Jonathan Giron

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

UnsignedShortType

public UnsignedShortType()

Method Detail

accepts

public boolean accepts(Object value)

convert

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

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