Some hibernate utils are offered such as Session getter, SessionFactory getter, Bean getter, etc.
More...
|
static Object | getBean (String beanName) |
| A Bean getter. It return an object of DAO with the parameter of the DAO name. More...
|
|
static SessionFactory | getSessionFactory () |
| A session factory getter. More...
|
|
static Session | getSession () |
| A hibernate session getter. More...
|
|
static void | closeSession (Session session) |
| A session closer. It can close the session you offered. More...
|
|
Some hibernate utils are offered such as Session getter, SessionFactory getter, Bean getter, etc.
- Author
- Xia Yu
- Version
- 1.0
static void com.sanmixy.utils.HibernateUtils.closeSession |
( |
Session |
session) | |
|
|
static |
A session closer. It can close the session you offered.
- Parameters
-
- Exceptions
-
static Object com.sanmixy.utils.HibernateUtils.getBean |
( |
String |
beanName) | |
|
|
static |
A Bean getter. It return an object of DAO with the parameter of the DAO name.
- Parameters
-
- Returns
- The DAO object you want.
static Session com.sanmixy.utils.HibernateUtils.getSession |
( |
) | |
|
|
static |
A hibernate session getter.
- Returns
- session (Hibernate session)
static SessionFactory com.sanmixy.utils.HibernateUtils.getSessionFactory |
( |
) | |
|
|
static |
A session factory getter.
- Returns
- session factory(SessionFactory)
The documentation for this class was generated from the following file:
- BioFunctionalDesigner/src/com/sanmixy/utils/HibernateUtils.java