de.topicmapslab.majortom.database.jdbc.postgres.optimized
Class PostGreSqlSession

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
              extended by de.topicmapslab.majortom.database.jdbc.postgres.optimized.PostGreSqlSession
All Implemented Interfaces:
ISession

public class PostGreSqlSession
extends SQL99Session

Author:
Sven Krosse

Constructor Summary
PostGreSqlSession(PostGreSqlConnectionProvider connectionProvider, java.lang.String url, java.lang.String user, java.lang.String password)
          Constructor
 
Method Summary
protected  PostGreSqlQueryProcessor createProcessor(java.sql.Connection connection)
          Internal method to create a processor instance for the given connection
 PostGreSqlConnectionProvider getConnectionProvider()
          Returns the parent connection provider
 
Methods inherited from class de.topicmapslab.majortom.database.jdbc.postgres.sql99.SQL99Session
openConnection
 
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

PostGreSqlSession

public PostGreSqlSession(PostGreSqlConnectionProvider 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 PostGreSqlQueryProcessor 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 SQL99Session
Parameters:
connection - the connection
Returns:
the created processor
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

getConnectionProvider

public PostGreSqlConnectionProvider getConnectionProvider()
Returns the parent connection provider

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