de.topicmapslab.majortom.database.jdbc.mysql
Class MySqlSession

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.mysql.MySqlSession
All Implemented Interfaces:
ISession

public class MySqlSession
extends RDBMSSession

Author:
Sven Krosse

Constructor Summary
MySqlSession(RDBMSConnectionProvider connectionProvider, java.lang.String url, java.lang.String user, java.lang.String password)
          Constructor
 
Method Summary
protected  MySqlQueryProcessor createProcessor(java.sql.Connection connection)
          Internal method to create a processor instance for the given connection
 
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, isAutoCommit, openConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySqlSession

public MySqlSession(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 MySqlQueryProcessor 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