org.axiondb.types

Class FloatType

public class FloatType extends BaseNumberDataType

A DataType representing a single-precision floating-point value.

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

Author: Chuck Burdick Rodney Waldhoff Jonathan Giron

Constructor Summary
FloatType()
Method Summary
intcompare(Object a, Object b)
Objectconvert(Object value)
Returns a Float converted from the given value , or throws IllegalArgumentExceptionif the given value isn't acceptable.
intgetColumnDisplaySize()
protected ComparatorgetComparator()
intgetJdbcType()
intgetPrecision()
StringgetPreferredValueClassName()
intgetScale()
DataTypemakeNewInstance()
Objectread(DataInput in)
Objectsuccessor(Object value)
booleansupportsSuccessor()
false
StringtoString()
Returns "float"
voidwrite(Object value, DataOutput out)

Constructor Detail

FloatType

public FloatType()

Method Detail

compare

public int compare(Object a, Object b)

convert

public Object convert(Object value)
Returns a Float 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()

getScale

public int getScale()

makeNewInstance

public DataType makeNewInstance()

read

public Object read(DataInput in)

See Also: FloatType

successor

public Object successor(Object value)

supportsSuccessor

public boolean supportsSuccessor()
false

toString

public String toString()
Returns "float"

Returns: "float"

write

public void write(Object value, DataOutput out)