Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.dao.client.template
Class HibernateDaoTemplate  view HibernateDaoTemplate download HibernateDaoTemplate.java

java.lang.Object
  extended bycom.ibatis.dao.client.template.DaoTemplate
      extended bycom.ibatis.dao.client.template.HibernateDaoTemplate
All Implemented Interfaces:
com.ibatis.dao.client.Dao

public abstract class HibernateDaoTemplate
extends DaoTemplate

A DaoTemplate for Hibernate implementations that provides a convenient method to access the Hibernate Session.


Field Summary
 
Fields inherited from class com.ibatis.dao.client.template.DaoTemplate
daoManager
 
Constructor Summary
HibernateDaoTemplate(com.ibatis.dao.client.DaoManager daoManager)
          The DaoManager that manages this Dao instance will be passed in as the parameter to this constructor automatically upon instantiation.
 
Method Summary
 Transaction beginTransaction()
           
 void cancelQuery()
           
 void clear()
           
 java.sql.Connection close()
           
 java.sql.Connection connection()
           
 boolean contains(java.lang.Object o)
           
 Criteria createCriteria(java.lang.Class aClass)
           
 Query createFilter(java.lang.Object o, java.lang.String s)
           
 Query createQuery(java.lang.String s)
           
 Query createSQLQuery(java.lang.String s, java.lang.String[] strings, java.lang.Class[] classes)
           
 Query createSQLQuery(java.lang.String s, java.lang.String s1, java.lang.Class aClass)
           
 void delete(java.lang.Object o)
           
 int delete(java.lang.String s)
           
 int delete(java.lang.String s, java.lang.Object[] objects, Type[] types)
           
 int delete(java.lang.String s, java.lang.Object o, Type type)
           
 java.sql.Connection disconnect()
           
 void evict(java.lang.Object o)
           
 java.util.Collection filter(java.lang.Object o, java.lang.String s)
           
 java.util.Collection filter(java.lang.Object o, java.lang.String s, java.lang.Object[] objects, Type[] types)
           
 java.util.Collection filter(java.lang.Object o, java.lang.String s, java.lang.Object o1, Type type)
           
 java.util.List find(java.lang.String s)
           
 java.util.List find(java.lang.String s, java.lang.Object[] objects, Type[] types)
           
 java.util.List find(java.lang.String s, java.lang.Object o, Type type)
           
 void flush()
           
 java.lang.Object get(java.lang.Class aClass, java.io.Serializable serializable)
           
 java.lang.Object get(java.lang.Class aClass, java.io.Serializable serializable, LockMode lockMode)
           
 LockMode getCurrentLockMode(java.lang.Object o)
           
 FlushMode getFlushMode()
           
 java.io.Serializable getIdentifier(java.lang.Object o)
           
 Query getNamedQuery(java.lang.String s)
           
protected  Session getSession()
          Gets the Hibernate session associated with the current DaoTransaction that this Dao is working under.
 SessionFactory getSessionFactory()
           
 boolean isConnected()
           
 boolean isDirty()
           
 boolean isOpen()
           
 java.util.Iterator iterate(java.lang.String s)
           
 java.util.Iterator iterate(java.lang.String s, java.lang.Object[] objects, Type[] types)
           
 java.util.Iterator iterate(java.lang.String s, java.lang.Object o, Type type)
           
 java.lang.Object load(java.lang.Class aClass, java.io.Serializable serializable)
           
 java.lang.Object load(java.lang.Class aClass, java.io.Serializable serializable, LockMode lockMode)
           
 void load(java.lang.Object o, java.io.Serializable serializable)
           
 void lock(java.lang.Object o, LockMode lockMode)
           
 void reconnect()
           
 void reconnect(java.sql.Connection connection)
           
 void refresh(java.lang.Object o)
           
 void refresh(java.lang.Object o, LockMode lockMode)
           
 void replicate(java.lang.Object o, ReplicationMode replicationMode)
           
 java.io.Serializable save(java.lang.Object o)
           
 void save(java.lang.Object o, java.io.Serializable serializable)
           
 void saveOrUpdate(java.lang.Object o)
           
 java.lang.Object saveOrUpdateCopy(java.lang.Object o)
           
 java.lang.Object saveOrUpdateCopy(java.lang.Object o, java.io.Serializable serializable)
           
 void setFlushMode(FlushMode flushMode)
           
 void update(java.lang.Object o)
           
 void update(java.lang.Object o, java.io.Serializable serializable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateDaoTemplate

public HibernateDaoTemplate(com.ibatis.dao.client.DaoManager daoManager)
The DaoManager that manages this Dao instance will be passed in as the parameter to this constructor automatically upon instantiation.

Method Detail

getSession

protected Session getSession()
Gets the Hibernate session associated with the current DaoTransaction that this Dao is working under.


flush

public void flush()

setFlushMode

public void setFlushMode(FlushMode flushMode)

getFlushMode

public FlushMode getFlushMode()

getSessionFactory

public SessionFactory getSessionFactory()

connection

public java.sql.Connection connection()

disconnect

public java.sql.Connection disconnect()

reconnect

public void reconnect()

reconnect

public void reconnect(java.sql.Connection connection)

close

public java.sql.Connection close()

cancelQuery

public void cancelQuery()

isOpen

public boolean isOpen()

isConnected

public boolean isConnected()

isDirty

public boolean isDirty()

getIdentifier

public java.io.Serializable getIdentifier(java.lang.Object o)

contains

public boolean contains(java.lang.Object o)

evict

public void evict(java.lang.Object o)

load

public java.lang.Object load(java.lang.Class aClass,
                             java.io.Serializable serializable,
                             LockMode lockMode)

load

public java.lang.Object load(java.lang.Class aClass,
                             java.io.Serializable serializable)

load

public void load(java.lang.Object o,
                 java.io.Serializable serializable)

replicate

public void replicate(java.lang.Object o,
                      ReplicationMode replicationMode)

save

public java.io.Serializable save(java.lang.Object o)

save

public void save(java.lang.Object o,
                 java.io.Serializable serializable)

saveOrUpdate

public void saveOrUpdate(java.lang.Object o)

update

public void update(java.lang.Object o)

update

public void update(java.lang.Object o,
                   java.io.Serializable serializable)

saveOrUpdateCopy

public java.lang.Object saveOrUpdateCopy(java.lang.Object o)

saveOrUpdateCopy

public java.lang.Object saveOrUpdateCopy(java.lang.Object o,
                                         java.io.Serializable serializable)

delete

public void delete(java.lang.Object o)

find

public java.util.List find(java.lang.String s)

find

public java.util.List find(java.lang.String s,
                           java.lang.Object o,
                           Type type)

find

public java.util.List find(java.lang.String s,
                           java.lang.Object[] objects,
                           Type[] types)

iterate

public java.util.Iterator iterate(java.lang.String s)

iterate

public java.util.Iterator iterate(java.lang.String s,
                                  java.lang.Object o,
                                  Type type)

iterate

public java.util.Iterator iterate(java.lang.String s,
                                  java.lang.Object[] objects,
                                  Type[] types)

filter

public java.util.Collection filter(java.lang.Object o,
                                   java.lang.String s)

filter

public java.util.Collection filter(java.lang.Object o,
                                   java.lang.String s,
                                   java.lang.Object o1,
                                   Type type)

filter

public java.util.Collection filter(java.lang.Object o,
                                   java.lang.String s,
                                   java.lang.Object[] objects,
                                   Type[] types)

delete

public int delete(java.lang.String s)

delete

public int delete(java.lang.String s,
                  java.lang.Object o,
                  Type type)

delete

public int delete(java.lang.String s,
                  java.lang.Object[] objects,
                  Type[] types)

lock

public void lock(java.lang.Object o,
                 LockMode lockMode)

refresh

public void refresh(java.lang.Object o)

refresh

public void refresh(java.lang.Object o,
                    LockMode lockMode)

getCurrentLockMode

public LockMode getCurrentLockMode(java.lang.Object o)

beginTransaction

public Transaction beginTransaction()

createCriteria

public Criteria createCriteria(java.lang.Class aClass)

createQuery

public Query createQuery(java.lang.String s)

createFilter

public Query createFilter(java.lang.Object o,
                          java.lang.String s)

getNamedQuery

public Query getNamedQuery(java.lang.String s)

createSQLQuery

public Query createSQLQuery(java.lang.String s,
                            java.lang.String s1,
                            java.lang.Class aClass)

createSQLQuery

public Query createSQLQuery(java.lang.String s,
                            java.lang.String[] strings,
                            java.lang.Class[] classes)

clear

public void clear()

get

public java.lang.Object get(java.lang.Class aClass,
                            java.io.Serializable serializable)

get

public java.lang.Object get(java.lang.Class aClass,
                            java.io.Serializable serializable,
                            LockMode lockMode)