|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.util.orm.SessionManager
public class SessionManager
This is the manager class for Encog database object relation mapping(ORM). This is based on Hibernate. The primary purpose for this class is to provide a way for sessions to be created.
| Constructor Summary | |
|---|---|
SessionManager()
Construct a new session manager. |
|
SessionManager(org.hibernate.cfg.AnnotationConfiguration config)
Construct a session manager using annotation config. |
|
SessionManager(java.lang.String path)
Construct a session manager using the specified HSQL path. |
|
SessionManager(java.lang.String driver,
java.lang.String url,
java.lang.String uid,
java.lang.String pwd,
java.lang.String dialect)
Construct a session manager from the specified connect info. |
|
| Method Summary | |
|---|---|
void |
export()
Export the DDL, this creates the tables needed. |
ORMSession |
openSession()
Open an ORM session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionManager()
public SessionManager(org.hibernate.cfg.AnnotationConfiguration config)
config - The annotation configuration.public SessionManager(java.lang.String path)
path - HSQL path.
public SessionManager(java.lang.String driver,
java.lang.String url,
java.lang.String uid,
java.lang.String pwd,
java.lang.String dialect)
driver - The JDBC driver.url - The JDBC URL.uid - The user id.pwd - The password.dialect - The Hibernate dialect to use.| Method Detail |
|---|
public void export()
public ORMSession openSession()
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||