de.topicmapslab.majortom.database.jdbc.rdbms
Class RDBMSSession

java.lang.Object
  extended by de.topicmapslab.majortom.database.jdbc.core.SessionImpl
      extended by de.topicmapslab.majortom.database.jdbc.rdbms.RDBMSSession
All Implemented Interfaces:
ISession
Direct Known Subclasses:
HSQLDBSession, MySqlSession, SQL99Session

public class RDBMSSession
extends SessionImpl

Author:
Sven Krosse

Constructor Summary
RDBMSSession(RDBMSConnectionProvider connectionProvider, java.lang.String url, java.lang.String user, java.lang.String password)
          Constructor
 
Method Summary
protected  RDBMSQueryProcessor createProcessor(java.sql.Connection connection)
          Internal method to create a processor instance for the given connection
 RDBMSConnectionProvider getConnectionProvider()
          Returns the parent connection provider
 
Methods inherited from class de.topicmapslab.majortom.database.jdbc.core.SessionImpl
close, commit, getConnection, getProcessor, getTopicMapStore, isAlive, isAutoCommit, openConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBMSSession

public RDBMSSession(RDBMSConnectionProvider connectionProvider,
                    java.lang.String url,
                    java.lang.String user,
                    java.lang.String password)
Constructor

Parameters:
connectionProvider - the parent connection provider
url - the database URL
user - the user database property
password - the password database property
Method Detail

createProcessor

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

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

getConnectionProvider

public RDBMSConnectionProvider getConnectionProvider()
Returns the parent connection provider

Specified by:
getConnectionProvider in interface ISession
Overrides:
getConnectionProvider in class SessionImpl
Returns:
the connectionProvider the connection provider