org.axiondb.types

Class StringType

public class StringType extends BaseDataType

A DataType representing a String value.

Version: $Revision: 1.14 $ $Date: 2005/11/24 20:47:31 $

Author: Chuck Burdick Rodney Waldhoff Ahimanikya Satapathy

Constructor Summary
StringType()
Method Summary
booleanaccepts(Object value)
Returns true iff value is null or a String String.
intcompare(Object a, Object b)
Objectconvert(Object value)
Returns a Stringconverted from the given value , or throws IllegalArgumentExceptionif the given value isn't acceptable.
intgetColumnDisplaySize()
protected ComparatorgetComparator()
intgetJdbcType()
StringgetLiteralPrefix()
StringgetLiteralSuffix()
intgetPrecision()
StringgetPreferredValueClassName()
shortgetSearchableCode()
static StringTypeinstance()
booleanisCaseSensitive()
DataTypemakeNewInstance()
Objectread(DataInput in)
Objectsuccessor(Object value)
booleansupportsSuccessor()
byte[]toByteArray(Object value)
StringtoString()
Returns "string"
voidwrite(Object value, DataOutput out)
Writes the given value to the given DataOutput.

Constructor Detail

StringType

public StringType()

Method Detail

accepts

public boolean accepts(Object value)
Returns true iff value is null or a String String.

compare

public int compare(Object a, Object b)

convert

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

getLiteralPrefix

public String getLiteralPrefix()

getLiteralSuffix

public String getLiteralSuffix()

getPrecision

public int getPrecision()

getPreferredValueClassName

public String getPreferredValueClassName()

getSearchableCode

public short getSearchableCode()

instance

public static final StringType instance()

isCaseSensitive

public boolean isCaseSensitive()

makeNewInstance

public DataType makeNewInstance()

read

public Object read(DataInput in)

See Also: StringType

successor

public Object successor(Object value)

supportsSuccessor

public boolean supportsSuccessor()

toByteArray

public byte[] toByteArray(Object value)

toString

public String toString()
Returns "string"

Returns: "string"

write

public void write(Object value, DataOutput out)
Writes the given value to the given DataOutput. Null values are written as "null", false, the non-null String "null" is written as "null", true, all other values are written directly.

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