org.oddjob.sql
Class HSQLSerializationFactory

java.lang.Object
  extended by org.oddjob.sql.HSQLSerializationFactory
All Implemented Interfaces:
SQLSerializationFactory

public class HSQLSerializationFactory
extends Object
implements SQLSerializationFactory

An implementation SQLSerializationFactory for HSQLDB but implemented in ANSI SQL so should work with most DBs.

This class is synchronised on the statements to avoid what appeared to be deadlock in HSQL but no detailed investigation of this was undertaken.

Author:
rob

Constructor Summary
HSQLSerializationFactory()
           
 
Method Summary
 SQLSerialization createSerialization(Connection connection)
          Create a SQLSerialization.
 String getTable()
           
 void setTable(String tableName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSQLSerializationFactory

public HSQLSerializationFactory()
Method Detail

createSerialization

public SQLSerialization createSerialization(Connection connection)
                                     throws SQLException
Description copied from interface: SQLSerializationFactory
Create a SQLSerialization.

Specified by:
createSerialization in interface SQLSerializationFactory
Returns:
A SQLSerialization. Never null.
Throws:
SQLException

setTable

public void setTable(String tableName)

getTable

public String getTable()