org.axiondb.types

Class BaseDataType

public abstract class BaseDataType extends Object implements DataType, DataTypeFactory

Abstract base implemention of DataType.

Version: $Revision: 1.20 $ $Date: 2005/10/13 02:25:32 $

Author: Rodney Waldhoff Rob Oxspring Chuck Burdick

Method Summary
abstract booleanaccepts(Object value)
intcompare(Object a, Object b)
abstract Objectconvert(Object value)
intgetColumnDisplaySize()
protected ComparatorgetComparator()
This base implementation simply returns a ComparableComparator.
abstract intgetJdbcType()
StringgetLiteralPrefix()
StringgetLiteralSuffix()
intgetNullableCode()
intgetPrecision()
intgetPrecisionRadix()
StringgetPreferredValueClassName()
intgetScale()
shortgetSearchableCode()
booleanisCaseSensitive()
booleanisCurrency()
booleanisUnsigned()
abstract DataTypemakeNewInstance()
abstract Objectread(DataInput in)
Objectsuccessor(Object value)
booleansupportsSuccessor()
BigDecimaltoBigDecimal(Object value)
BigIntegertoBigInteger(Object value)
BlobtoBlob(Object value)
booleantoBoolean(Object value)
bytetoByte(Object value)
byte[]toByteArray(Object value)
ClobtoClob(Object value)
DatetoDate(Object value)
doubletoDouble(Object value)
floattoFloat(Object value)
inttoInt(Object value)
longtoLong(Object value)
protected NumbertoNumber(Object value)
shorttoShort(Object value)
StringtoString(Object value)
TimetoTime(Object value)
TimestamptoTimestamp(Object value)
URLtoURL(Object value)
abstract voidwrite(Object value, DataOutput out)

Method Detail

accepts

public abstract boolean accepts(Object value)

compare

public int compare(Object a, Object b)

convert

public abstract Object convert(Object value)

getColumnDisplaySize

public int getColumnDisplaySize()

getComparator

protected Comparator getComparator()
This base implementation simply returns a ComparableComparator.

getJdbcType

public abstract int getJdbcType()

getLiteralPrefix

public String getLiteralPrefix()

getLiteralSuffix

public String getLiteralSuffix()

getNullableCode

public int getNullableCode()

getPrecision

public int getPrecision()

getPrecisionRadix

public int getPrecisionRadix()

getPreferredValueClassName

public String getPreferredValueClassName()

See Also: AxionResultSetMetaData

getScale

public int getScale()

getSearchableCode

public short getSearchableCode()

isCaseSensitive

public boolean isCaseSensitive()

isCurrency

public boolean isCurrency()

isUnsigned

public boolean isUnsigned()

makeNewInstance

public abstract DataType makeNewInstance()

read

public abstract Object read(DataInput in)

successor

public Object successor(Object value)

supportsSuccessor

public boolean supportsSuccessor()

toBigDecimal

public BigDecimal toBigDecimal(Object value)

toBigInteger

public BigInteger toBigInteger(Object value)

toBlob

public Blob toBlob(Object value)

toBoolean

public boolean toBoolean(Object value)

toByte

public byte toByte(Object value)

toByteArray

public byte[] toByteArray(Object value)

toClob

public Clob toClob(Object value)

toDate

public Date toDate(Object value)

toDouble

public double toDouble(Object value)

toFloat

public float toFloat(Object value)

toInt

public int toInt(Object value)

toLong

public long toLong(Object value)

toNumber

protected Number toNumber(Object value)

toShort

public short toShort(Object value)

toString

public String toString(Object value)

toTime

public Time toTime(Object value)

toTimestamp

public Timestamp toTimestamp(Object value)

toURL

public URL toURL(Object value)

write

public abstract void write(Object value, DataOutput out)