|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.hibernate.HibernateSession
public class HibernateSession
The Hibernate stack implementation of the SQL Engine session contract. In fact it's a proxy to the
Session.
It's the first parameter to all primary methods in the SqlQueryEngine and SqlCrudEngine.
The implementation is based on the dynamic proxy design pattern provided by the Java API.
The primary contract is the method for the SqlQuery instance creation.
For more info please see the Tutorials.
| Field Summary | |
|---|---|
private static Class[] |
PROXY_INTERFACES
The contracts implemented by this dynamic proxy. |
private org.hibernate.Session |
session
The Hibernate Session, the first level cache and the context for all database operations. |
| Constructor Summary | |
|---|---|
private |
HibernateSession(org.hibernate.Session session)
Creates a new instance of this dynamic proxy. |
| Method Summary | |
|---|---|
static SqlSession |
generateProxy(org.hibernate.Session session)
The factory method to obtain this dynamic proxy. |
static ClassLoader |
getProxyClassLoader()
Returns the class loader instance. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Class[] PROXY_INTERFACES
private final org.hibernate.Session session
| Constructor Detail |
|---|
private HibernateSession(org.hibernate.Session session)
session - the Hibernate Session instance| Method Detail |
|---|
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
invoke in interface InvocationHandlerThrowablepublic static SqlSession generateProxy(org.hibernate.Session session)
session - the Hibernate Session instance
public static ClassLoader getProxyClassLoader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||