org.apache.ode.daohib.bpel
Class HibernateDao

java.lang.Object
  extended by org.apache.ode.daohib.bpel.HibernateDao
Direct Known Subclasses:
ActivityRecoveryDaoImpl, FaultDAOImpl, MessageDaoImpl, MessageExchangeDaoImpl, PartnerLinkDAOImpl, ProcessDaoImpl, ProcessInstanceDaoImpl, ProcessManagementDaoImpl

public abstract class HibernateDao
extends java.lang.Object

Base class for our DAO objects.

All subclass methods that might trigger SQL queries should log a message in the log category 'org.apache.ode.bpel.DAO' when entered. A typical message could be "className.methodName".
Typical candidates are setters, finders and getters of entities. Getters of simple properties won't provide relevant information.


Field Summary
protected  HObject _hobj
           
protected  SessionManager _sm
           
 
Constructor Summary
protected HibernateDao(SessionManager sessionManager, HObject hobj)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.io.Serializable getDHandle()
           
 HObject getHibernateObj()
           
protected  org.hibernate.Session getSession()
           
 int hashCode()
           
protected  void update()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_sm

protected final SessionManager _sm

_hobj

protected final HObject _hobj
Constructor Detail

HibernateDao

protected HibernateDao(SessionManager sessionManager,
                       HObject hobj)
Method Detail

getDHandle

public java.io.Serializable getDHandle()
See Also:
org.apache.ode.utils.dao.DAO#getDHandle()

getSession

protected org.hibernate.Session getSession()

getHibernateObj

public HObject getHibernateObj()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

update

protected void update()