org.h2.engine
Class Engine

java.lang.Object
  extended by org.h2.engine.Engine

public class Engine
extends java.lang.Object

The engine contains a map of all open databases. It is also responsible for opening and creating new databases. This is a singleton class.


Method Summary
 void close(java.lang.String name)
          Called after a database has been closed, to remove the object from the list of open databases.
static Engine getInstance()
           
 Session getSession(ConnectionInfo ci)
          Open a database connection with the given connection information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Engine getInstance()

getSession

public Session getSession(ConnectionInfo ci)
                   throws java.sql.SQLException
Open a database connection with the given connection information.

Parameters:
ci - the connection information
Returns:
the session
Throws:
java.sql.SQLException

close

public void close(java.lang.String name)
Called after a database has been closed, to remove the object from the list of open databases.

Parameters:
name - the database name