org.axiondb.types

Class ObjectType

public class ObjectType extends BaseDataType

A DataTyperepresenting a Serializableobject value.

Version: $Revision: 1.2 $ $Date: 2002/07/02 21:04:57 $

Author: James Strachan

Constructor Summary
ObjectType()
Method Summary
booleanaccepts(Object value)
Returns true iff value is null or a Serializable.object
Objectconvert(Object value)
Returns a Stringconverted from the given value , or throws IllegalArgumentExceptionif the given value isn't acceptable.
intgetColumnDisplaySize()
intgetJdbcType()
StringgetPreferredValueClassName()
DataTypemakeNewInstance()
Objectread(DataInput in)
Objectsuccessor(Object value)
booleansupportsSuccessor()
StringtoString()
Returns "string"
voidwrite(Object value, DataOutput out)
Writes the given value to the given DataOutput.

Constructor Detail

ObjectType

public ObjectType()

Method Detail

accepts

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

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

getJdbcType

public int getJdbcType()

getPreferredValueClassName

public String getPreferredValueClassName()

makeNewInstance

public DataType makeNewInstance()

read

public Object read(DataInput in)

See Also: ObjectType

successor

public Object successor(Object value)

supportsSuccessor

public boolean supportsSuccessor()

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