|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.util.db.HibernateHelper
public class HibernateHelper
This class is a wrapper for the Hibernate SessionFactories.
It provides Sessionsto talk to hibernate, and an identifier
generation method that provides unique IDs. These are generated using
Hibernate's IdentifierGeneratorinterface, more specifically the
TableHiLoGeneratorimplementation.
| Field Summary | |
|---|---|
protected static Logger |
log
|
| Method Summary | |
|---|---|
org.hibernate.Session |
getAMCoreSession()
|
static HibernateHelper |
getInstance()
|
org.hibernate.Session |
getLearnerHistorySession()
Opens a new hibernate Session connected to the Database
backend for the learner history and returns it. |
long |
getNextEventId()
Returns a unique ID that can be assigned to an event. |
org.hibernate.Session |
getUlogSession()
Opens a new hibernate Session connected to the Database
backend for the Log DB and returns it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
| Method Detail |
|---|
public static HibernateHelper getInstance()
public org.hibernate.Session getLearnerHistorySession()
Session connected to the Database
backend for the learner history and returns it.
Don't forget to call Session.close()when you're done.
public org.hibernate.Session getUlogSession()
Session connected to the Database
backend for the Log DB and returns it.
Don't forget to call Session.close()when you're done.
public org.hibernate.Session getAMCoreSession()
public long getNextEventId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||