de.topicmapslab.majortom.database.jdbc.hsqldb
Class HSQLDBSession

java.lang.Object
  extended by de.topicmapslab.majortom.database.jdbc.core.SessionImpl
      extended by de.topicmapslab.majortom.database.jdbc.rdbms.RDBMSSession
          extended by de.topicmapslab.majortom.database.jdbc.hsqldb.HSQLDBSession
All Implemented Interfaces:
ISession

public class HSQLDBSession
extends RDBMSSession


Field Summary
static int numProcessors
           
 
Constructor Summary
HSQLDBSession(RDBMSConnectionProvider connectionProvider, java.lang.String url, java.lang.String user, java.lang.String password)
           
 
Method Summary
protected  RDBMSQueryProcessor createProcessor(java.sql.Connection connection)
          Internal method to create a processor instance for the given connection
 boolean isAutoCommit()
          Checks if the session automatically commits all changes
 
Methods inherited from class de.topicmapslab.majortom.database.jdbc.rdbms.RDBMSSession
getConnectionProvider
 
Methods inherited from class de.topicmapslab.majortom.database.jdbc.core.SessionImpl
close, commit, getConnection, getProcessor, getTopicMapStore, isAlive, openConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numProcessors

public static int numProcessors
Constructor Detail

HSQLDBSession

public HSQLDBSession(RDBMSConnectionProvider connectionProvider,
                     java.lang.String url,
                     java.lang.String user,
                     java.lang.String password)
Method Detail

createProcessor

protected RDBMSQueryProcessor createProcessor(java.sql.Connection connection)
                                       throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: RDBMSSession
Internal method to create a processor instance for the given connection

Overrides:
createProcessor in class RDBMSSession
Parameters:
connection - the connection
Returns:
the created processor
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

isAutoCommit

public boolean isAutoCommit()
Description copied from class: SessionImpl
Checks if the session automatically commits all changes

Specified by:
isAutoCommit in interface ISession
Overrides:
isAutoCommit in class SessionImpl
Returns:
true if the session commits automatically, false otherwise.