@SuppressWarnings("rawtypes") public abstract class AbstractHibernateSession extends AbstractAttributeStoringSession implements QueryAliasAwareSession
Session implementation that wraps a Hibernate Session.
| Modifiers | Name | Description |
|---|---|---|
protected boolean |
connected |
|
protected AbstractHibernateDatastore |
datastore |
|
protected IHibernateTemplate |
hibernateTemplate |
| Constructor and description |
|---|
protected AbstractHibernateSession(AbstractHibernateDatastore hibernateDatastore, SessionFactory sessionFactory) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
attach(Object o) |
|
public Transaction |
beginTransaction() |
|
public Transaction |
beginTransaction(TransactionDefinition definition) |
|
public void |
clear() |
|
public void |
clear(Object o) |
|
public boolean |
contains(Object o) |
|
public void |
delete(Iterable objects) |
|
public void |
delete(Object obj) |
|
public void |
disconnect() |
|
public void |
flush() |
|
public Datastore |
getDatastore() |
|
protected Collection |
getIterableAsCollection(Iterable objects) |
|
public MappingContext |
getMappingContext() |
|
public Object |
getNativeInterface() |
|
public Persister |
getPersister(Object o) |
|
public Transaction |
getTransaction() |
|
public boolean |
hasTransaction() |
|
public Serializable |
insert(Object o) |
|
public boolean |
isConnected() |
|
public boolean |
isDirty(Object o) |
|
public boolean |
isSchemaless() |
|
public void |
lock(Object o) |
<T> |
public T |
lock(Class<T> type, Serializable key) |
|
public Serializable |
persist(Object o) |
|
public List<Serializable> |
persist(Iterable objects) |
<T> |
public T |
proxy(Class<T> type, Serializable key) |
|
public void |
refresh(Object o) |
<T> |
public T |
retrieve(Class<T> type, Serializable key) |
|
public List |
retrieveAll(Class type, Serializable keys) |
|
public void |
setSynchronizedWithTransaction(boolean synchronizedWithTransaction) |
|
public void |
unlock(Object o) |
| Methods inherited from class | Name |
|---|---|
class AbstractAttributeStoringSession |
attach, beginTransaction, beginTransaction, clear, clear, clearSessionProperty, contains, createQuery, delete, delete, deleteAll, disconnect, equals, flush, getAttribute, getClass, getDatastore, getFlushMode, getMappingContext, getNativeInterface, getObjectIdentifier, getPersister, getSessionProperty, getTransaction, hasTransaction, hashCode, insert, isConnected, isDirty, isSchemaless, lock, lock, notify, notifyAll, persist, persist, proxy, refresh, retrieve, retrieveAll, retrieveAll, setAttribute, setFlushMode, setSessionProperty, setSynchronizedWithTransaction, toString, unlock, updateAll, wait, wait, wait |