org.ow2.orchestra.pvm.internal.hibernate
Class HibernateDbSession
java.lang.Object
org.ow2.orchestra.pvm.internal.hibernate.HibernateDbSession
- All Implemented Interfaces:
- DbSession
- Direct Known Subclasses:
- HibernateJobDbSession, HibernatePvmDbSession
public class HibernateDbSession
- extends java.lang.Object
- implements DbSession
- Author:
- Tom Baeyens
|
Field Summary |
protected org.hibernate.Session |
session
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
protected org.hibernate.Session session
HibernateDbSession
public HibernateDbSession()
close
public void close()
get
public <T> T get(java.lang.Class<T> entityClass,
java.lang.Object primaryKey)
- Specified by:
get in interface DbSession
flush
public void flush()
- Specified by:
flush in interface DbSession
forceVersionUpdate
public void forceVersionUpdate(java.lang.Object entity)
- Specified by:
forceVersionUpdate in interface DbSession
lockPessimistically
public void lockPessimistically(java.lang.Object entity)
- Specified by:
lockPessimistically in interface DbSession
save
public void save(java.lang.Object entity)
- Specified by:
save in interface DbSession
delete
public void delete(java.lang.Object entity)
- Specified by:
delete in interface DbSession
getSession
public org.hibernate.Session getSession()
setSession
public void setSession(org.hibernate.Session session)
Copyright © 2010 OW2 Consortium. All Rights Reserved.