org.sonar.jpa.session
Class DefaultDatabaseConnector

java.lang.Object
  extended by org.sonar.jpa.session.AbstractDatabaseConnector
      extended by org.sonar.jpa.session.DefaultDatabaseConnector
All Implemented Interfaces:
DatabaseConnector
Direct Known Subclasses:
MemoryDatabaseConnector

public class DefaultDatabaseConnector
extends AbstractDatabaseConnector


Field Summary
 
Fields inherited from class org.sonar.jpa.session.AbstractDatabaseConnector
database, LOG
 
Constructor Summary
DefaultDatabaseConnector(Database database)
           
 
Method Summary
 Connection getConnection()
           
 boolean isOperational()
          Indicates if the connector is operational : database connection OK and schema version OK
 void start()
           
 
Methods inherited from class org.sonar.jpa.session.AbstractDatabaseConnector
createEntityManager, createEntityManagerFactory, getDatabaseVersion, getDialect, getDialectId, getEntityManagerFactory, isStarted, loadVersion, setEntityManagerFactory, stop, upToDateSchemaVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDatabaseConnector

public DefaultDatabaseConnector(Database database)
Method Detail

isOperational

public boolean isOperational()
Description copied from class: AbstractDatabaseConnector
Indicates if the connector is operational : database connection OK and schema version OK

Overrides:
isOperational in class AbstractDatabaseConnector

start

public void start()
Overrides:
start in class AbstractDatabaseConnector

getConnection

public Connection getConnection()
                         throws SQLException
Throws:
SQLException


Copyright © 2009-2012 SonarSource. All Rights Reserved.