public class DAO
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static org.hibernate.service.ServiceRegistry |
serviceRegistry |
private static java.lang.ThreadLocal |
session |
private static org.hibernate.SessionFactory |
sessionFactory |
| Constructor and Description |
|---|
DAO() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
begin() |
private static org.hibernate.SessionFactory |
buildSessionFactory() |
static void |
close() |
protected void |
commit() |
static org.hibernate.Session |
getSession() |
static org.hibernate.SessionFactory |
getSessionFactory() |
protected void |
rollback() |
private static org.hibernate.SessionFactory sessionFactory
private static org.hibernate.service.ServiceRegistry serviceRegistry
private static final java.lang.ThreadLocal session
private static org.hibernate.SessionFactory buildSessionFactory()
public static org.hibernate.SessionFactory getSessionFactory()
public static org.hibernate.Session getSession()
protected void begin()
protected void commit()
protected void rollback()
public static void close()