public interface IHibernateTemplate
Template interface that can be used with both Hibernate 3 and Hibernate 4
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
applySettings(Query query) |
|
public void |
applySettings(Criteria criteria) |
|
public void |
clear() |
|
public boolean |
contains(Object o) |
|
public void |
delete(Object o) |
|
public void |
deleteAll(Collection<?> list) |
|
public void |
evict(Object o) |
<T> |
public T |
execute(Closure<T> callable) |
<T1> |
public T1 |
executeWithExistingOrCreateNewSession(SessionFactory sessionFactory, Closure<T1> callable) |
<T> |
public T |
executeWithNewSession(Closure<T> callable) |
|
public void |
flush() |
<T> |
public T |
get(Class<T> type, Serializable key) |
<T> |
public T |
get(Class<T> type, Serializable key, LockMode mode) |
|
public int |
getFlushMode() |
|
public SessionFactory |
getSessionFactory() |
<T> |
public T |
load(Class<T> type, Serializable key) |
|
public void |
lock(Object o, LockMode lockMode) |
|
public void |
refresh(Object o) |
|
public Serializable |
save(Object o) |
|
public void |
setFlushMode(int mode) |