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