de.topicmapslab.majortom.database.jdbc.postgres.sql99
Class SQL99Session

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.postgres.sql99.SQL99Session
All Implemented Interfaces:
ISession
Direct Known Subclasses:
PostGreSqlSession

public class SQL99Session
extends RDBMSSession

Author:
Sven Krosse

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

Constructor Detail

SQL99Session

public SQL99Session(Sql99ConnectionProvider 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 Sql99QueryProcessor createProcessor(java.sql.Connection connection)
                                       throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

getConnectionProvider

public Sql99ConnectionProvider getConnectionProvider()
Returns the parent connection provider

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

openConnection

protected java.sql.Connection openConnection()
                                      throws java.sql.SQLException
Internal method to open a connection to the defined database

Overrides:
openConnection in class SessionImpl
Returns:
the connection
Throws:
java.sql.SQLException - thrown if connection cannot be established