public class HibernateSession
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.ThreadLocal |
session |
static java.lang.ThreadLocal |
statelessSession |
| Constructor and Description |
|---|
HibernateSession() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSession() |
static org.hibernate.Session |
currentSession() |
static org.hibernate.StatelessSession |
getStatelessSession() |
public static final java.lang.ThreadLocal session
public static final java.lang.ThreadLocal statelessSession
public static org.hibernate.Session currentSession()
throws GranException
GranExceptionpublic static org.hibernate.StatelessSession getStatelessSession()
throws GranException
GranExceptionpublic static void closeSession()
Copyright © 2002-2011 TrackStudio, Ltd. All Rights Reserved.