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 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(Class<T> entityClass,
Object primaryKey)
- Specified by:
get in interface DbSession
flush
public void flush()
- Specified by:
flush in interface DbSession
forceVersionUpdate
public void forceVersionUpdate(Object entity)
- Specified by:
forceVersionUpdate in interface DbSession
lockPessimistically
public void lockPessimistically(Object entity)
- Specified by:
lockPessimistically in interface DbSession
save
public void save(Object entity)
- Specified by:
save in interface DbSession
delete
public void delete(Object entity)
- Specified by:
delete in interface DbSession
getSession
public org.hibernate.Session getSession()
setSession
public void setSession(org.hibernate.Session session)
Copyright © 2011 OW2 Consortium. All Rights Reserved.