@java.lang.SuppressWarnings("rawtypes") public class HibernateSession extends AbstractHibernateSession
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 Params | Return Type | Name and description |
---|---|---|
|
public Query |
createQuery(java.lang.Class type) |
|
public Query |
createQuery(java.lang.Class type, java.lang.String alias) |
|
public long |
deleteAll(QueryableCriteria criteria) Deletes all objects matching the given criteria. |
|
public javax.persistence.FlushModeType |
getFlushMode() |
|
protected GrailsHibernateTemplate |
getHibernateTemplate() |
|
public java.io.Serializable |
getObjectIdentifier(java.lang.Object instance) |
|
public java.util.List |
retrieveAll(java.lang.Class type, java.lang.Iterable keys) |
|
public void |
setFlushMode(javax.persistence.FlushModeType flushMode) |
|
public 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, isSchemaless, lock, lock, persist, persist, proxy, refresh, retrieve, retrieveAll, setSynchronizedWithTransaction, unlock |
class AbstractAttributeStoringSession |
clearSessionProperty, disconnect, getAttribute, getSessionProperty, isConnected, removeAttributesForEntity, setAttribute, setSessionProperty |
Deletes all objects matching the given criteria.
criteria
- The criteriaUpdates all objects matching the given criteria and property values.
criteria
- The criteriaproperties
- The properties