de.topicmapslab.majortom.database.jdbc.hsqldb
Class HSQLDBConnectionProvider

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

public class HSQLDBConnectionProvider
extends RDBMSConnectionProvider


Field Summary
private static RDBMSSession session
           
 
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
HSQLDBConnectionProvider()
           
HSQLDBConnectionProvider(java.lang.String host, java.lang.String database, java.lang.String user, java.lang.String password)
           
 
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 getUrl()
          Returns the URL to the database
 RDBMSSession 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, getSchemaQuery, getTopicMapStore, getUser, setTopicMapStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

private static RDBMSSession session
Constructor Detail

HSQLDBConnectionProvider

public HSQLDBConnectionProvider()

HSQLDBConnectionProvider

public HSQLDBConnectionProvider(java.lang.String host,
                                java.lang.String database,
                                java.lang.String user,
                                java.lang.String password)
Method Detail

getRdbmsName

public java.lang.String getRdbmsName()
Description copied from interface: IConnectionProvider
Returning the name of the used RDBMS

Returns:
the name of the RDBMS

getUrl

protected java.lang.String getUrl()
Description copied from class: RDBMSConnectionProvider
Returns the URL to the database

Overrides:
getUrl in class RDBMSConnectionProvider
Returns:
the URl

getDriverClassName

public java.lang.String getDriverClassName()
Description copied from interface: IConnectionProvider
Returning the name of the used driver class

Returns:
the name of the used driver class

openSession

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

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