|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hsqldb.JavaObject
Representation of an instance of OTHER field data.
Prior to 1.7.0 there were problems storing Objets of normal column types in columns of the type OTHER. In 1.7.0 changes were made to allow this, but as all the conversion took place inside the engine, it introduced a requirement for all classes for objects stored in OTHER columns to be available in the class path of the engine.
In 1.7.2, the introduction of real preprared statement support allows us revert to the pre 1.7.0 behaviour without the artificial limitations. The classes for stored objects need not be available to open and operate the database in general. The classes need to be available only if a conversion from one of these objects to another type is performed inside the engine while operating the database. Current limitation is that in SQL statements, values of type String (CHARACTER and related SQL types) cannot be stored in columns of type OTHER. This limitation does not exist for String values assigned to PreparedStatement variables.
Constructor Summary | |
JavaObject(byte[] data)
This constructor is used inside the engine when an already serialized Object is read from a file (.log, .script, .data or text table source). |
|
JavaObject(Object o,
boolean serialise)
This constructor is from classes implementing the JDBC interfaces. |
Method Summary | |
byte[] |
getBytes()
|
int |
getBytesLength()
|
Object |
getObject()
This method is called from classes implementing the JDBC interfaces. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JavaObject(byte[] data)
public JavaObject(Object o, boolean serialise) throws HsqlException
Method Detail |
public byte[] getBytes() throws HsqlException
HsqlException
public int getBytesLength() throws HsqlException
HsqlException
public Object getObject() throws HsqlException
HsqlException
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |