Top Description Fields Constructors Methods
org.hsqldb.types

public Class JavaObjectDataInternal

extends JavaObjectData
Class Inheritance
Imports
java.io.Serializable, org.hsqldb.error.Error, .ErrorCode, org.hsqldb.lib.InOutUtil

Represents of an instance of an OTHER field value for direct storage.

Objects need not implement Serializable to be stored in the mem: database. They are stored as-is and reflect any changes to the stored Objects by the application program.

Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
1.9.0
Version
2.3.4

Field Summary

Modifier and TypeField and Description
pack-priv Object

Constructor Summary

AccessConstructor and Description
public
JavaObjectDataInternal(byte[] data)

Constructor used inside the engine when an already serialized Object is read from a file.

public
JavaObjectDataInternal(Object o)

Constructor used inside the engine.

Method Summary

Modifier and TypeMethod and Description
public byte[]
public int
public Object
getObject()

Overrides org.hsqldb.types.JavaObjectData.getObject.

This method is called from classes implementing the JDBC interfaces.

public String

Returns:

a String representation of this object.
toString
()

Overrides org.hsqldb.types.JavaObjectData.toString.

Returns String representation of this object.

Inherited from org.hsqldb.types.JavaObjectData:
equalshashCode

Field Detail

objectback to summary
pack-priv Object object

Constructor Detail

JavaObjectDataInternalback to summary
public JavaObjectDataInternal(byte[] data)

Constructor used inside the engine when an already serialized Object is read from a file. If the Object is not serializable, this method throws an exception.

JavaObjectDataInternalback to summary
public JavaObjectDataInternal(Object o)

Constructor used inside the engine.

Method Detail

getBytesback to summary
public byte[] getBytes()

Overrides org.hsqldb.types.JavaObjectData.getBytes.

getBytesLengthback to summary
public int getBytesLength()

Overrides org.hsqldb.types.JavaObjectData.getBytesLength.

getObjectback to summary
public Object getObject()

Overrides org.hsqldb.types.JavaObjectData.getObject.

This method is called from classes implementing the JDBC interfaces. Inside the engine it is used for conversion from a value of type OTHER to another type. It will throw if the OTHER is an instance of a class that is not available.

toStringback to summary
public String toString()

Overrides org.hsqldb.types.JavaObjectData.toString.

Returns String representation of this object.

Returns:String

a String representation of this object.