|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.solutions.identity.persistence.HibernateConfig
public class HibernateConfig
This loads the hibernate configuration and manages hibernate sessions.
| Field Summary | |
|---|---|
java.lang.ThreadLocal |
SESSION
|
| Constructor Summary | |
|---|---|
HibernateConfig(java.lang.String fileName)
|
|
| Method Summary | |
|---|---|
void |
closeSession()
Closes the hibernate session of the current thread. |
org.hibernate.Session |
getCurrentSession()
Accessor to obtain the session of the current thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.ThreadLocal SESSION
| Constructor Detail |
|---|
public HibernateConfig(java.lang.String fileName)
throws IdentityProviderException
IdentityProviderException| Method Detail |
|---|
public org.hibernate.Session getCurrentSession()
org.hibernate.Session instace which is
the hibernate session pertaining to this thread.public void closeSession()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||