public class Engine extends java.lang.Object implements SessionFactory
| Modifier and Type | Method and Description |
|---|---|
void |
closeSession(int sessionId)
Close a session and release resources
|
Session |
createSession(ConnectionInfo ci)
Open a database connection with the given connection information.
|
static Engine |
getInstance() |
public static Engine getInstance()
public Session createSession(ConnectionInfo ci)
createSession in interface SessionFactoryci - the connection informationpublic void closeSession(int sessionId)
throws java.sql.SQLException
SessionFactorycloseSession in interface SessionFactorysessionId - The session idjava.sql.SQLException