Session implementation that wraps a Hibernate org.hibernate.Session.
Fields inherited from class | Fields |
---|---|
class AbstractHibernateSession |
connected, datastore, hibernateTemplate |
class AbstractAttributeStoringSession |
attributes, sessionPropertyMap |
Constructor and description |
---|
HibernateSession
(HibernateDatastore hibernateDatastore, org.hibernate.SessionFactory sessionFactory, int defaultFlushMode) |
HibernateSession
(HibernateDatastore hibernateDatastore, org.hibernate.SessionFactory sessionFactory) |
Type | Name and description |
---|---|
Query |
createQuery(java.lang.Class type) |
Query |
createQuery(java.lang.Class type, java.lang.String alias) |
long |
deleteAll(QueryableCriteria criteria) Deletes all objects matching the given criteria. |
javax.persistence.FlushModeType |
getFlushMode() |
protected GrailsHibernateTemplate |
getHibernateTemplate() |
java.io.Serializable |
getObjectIdentifier(java.lang.Object instance) |
java.util.List |
retrieveAll(java.lang.Class type, java.lang.Iterable keys) |
void |
setFlushMode(javax.persistence.FlushModeType flushMode) |
long |
updateAll(QueryableCriteria criteria, java.util.Map<java.lang.String, java.lang.Object> properties) Updates all objects matching the given criteria and property values. |
Methods inherited from class | Name |
---|---|
class AbstractHibernateSession |
attach, beginTransaction, beginTransaction, clear, clear, contains, delete, delete, disconnect, flush, getDatastore, getIterableAsCollection, getMappingContext, getNativeInterface, getPersister, getTransaction, hasTransaction, insert, isConnected, isDirty, lock, lock, persist, persist, proxy, refresh, retrieve, retrieveAll, setSynchronizedWithTransaction, unlock |
class AbstractAttributeStoringSession |
clearSessionProperty, disconnect, getAttribute, getSessionProperty, isConnected, removeAttributesForEntity, setAttribute, setSessionProperty |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Deletes all objects matching the given criteria.
criteria
- The criteriaUpdates all objects matching the given criteria and property values.
criteria
- The criteriaproperties
- The properties