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

java.lang.Object
  extended by de.topicmapslab.majortom.database.jdbc.rdbms.RDBMSConnectionProvider
      extended by de.topicmapslab.majortom.database.jdbc.mysql.MySqlConnectionProvider
All Implemented Interfaces:
IConnectionProvider

public class MySqlConnectionProvider
extends RDBMSConnectionProvider

Special connection provider for PostGreSQL.

Author:
Sven Krosse

Field Summary
 
Fields inherited from interface de.topicmapslab.majortom.database.jdbc.model.IConnectionProvider
DATABASE_NOT_EXISTS, STATE_DATABASE_IS_EMPTY, STATE_DATABASE_IS_INVALID, STATE_DATABASE_IS_VALID
 
Constructor Summary
MySqlConnectionProvider()
           
 
Method Summary
 java.lang.String getDriverClassName()
          Returning the name of the used driver class
 java.lang.String getRdbmsName()
          Returning the name of the used RDBMS
protected  java.lang.String getSchemaQuery()
          Returns the SQL query to create the database schema.
 MySqlSession openSession()
          Creating a new session for accessing the database
 
Methods inherited from class de.topicmapslab.majortom.database.jdbc.rdbms.RDBMSConnectionProvider
close, createSchema, getConnectionCount, getDatabase, getDatabaseMetaData, getDatabaseState, getGlobalSession, getHost, getPassword, getSchemaQueries, getTopicMapStore, getUrl, getUser, setTopicMapStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySqlConnectionProvider

public MySqlConnectionProvider()
Method Detail

getDriverClassName

public java.lang.String getDriverClassName()
Returning the name of the used driver class

Returns:
the name of the used driver class

getRdbmsName

public java.lang.String getRdbmsName()
Returning the name of the used RDBMS

Returns:
the name of the RDBMS

openSession

public MySqlSession openSession()
Creating a new session for accessing the database

Specified by:
openSession in interface IConnectionProvider
Overrides:
openSession in class RDBMSConnectionProvider
Returns:
the new session

getSchemaQuery

protected java.lang.String getSchemaQuery()
Returns the SQL query to create the database schema.

Overrides:
getSchemaQuery in class RDBMSConnectionProvider
Returns:
the query