|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.grails.datastore.mapping.core.AbstractAttributeStoringSession org.codehaus.groovy.grails.orm.hibernate.HibernateSession
@SuppressWarnings("rawtypes") public class HibernateSession extends org.grails.datastore.mapping.core.AbstractAttributeStoringSession
Session implementation that wraps a Hibernate org.hibernate.Session.
Constructor Summary | |
HibernateSession(HibernateDatastore hibernateDatastore, org.hibernate.SessionFactory sessionFactory)
|
Method Summary | |
---|---|
void
|
attach(java.lang.Object o)
|
org.grails.datastore.mapping.transactions.Transaction
|
beginTransaction()
|
void
|
clear()
|
void
|
clear(java.lang.Object o)
|
boolean
|
contains(java.lang.Object o)
|
org.grails.datastore.mapping.query.Query
|
createQuery(java.lang.Class type)
|
void
|
delete(java.lang.Iterable objects)
|
void
|
delete(java.lang.Object obj)
|
int
|
deleteAll(org.grails.datastore.mapping.query.api.QueryableCriteria criteria)
Deletes all objects matching the given criteria. |
void
|
disconnect()
|
void
|
flush()
|
org.grails.datastore.mapping.core.Datastore
|
getDatastore()
|
javax.persistence.FlushModeType
|
getFlushMode()
|
org.grails.datastore.mapping.model.MappingContext
|
getMappingContext()
|
org.springframework.orm.hibernate3.HibernateTemplate
|
getNativeInterface()
|
org.grails.datastore.mapping.engine.Persister
|
getPersister(java.lang.Object o)
|
org.grails.datastore.mapping.transactions.Transaction
|
getTransaction()
|
boolean
|
isConnected()
|
boolean
|
isDirty(java.lang.Object o)
|
void
|
lock(java.lang.Object o)
|
java.lang.Object
|
lock(java.lang.Class type, java.io.Serializable key)
|
java.io.Serializable
|
persist(java.lang.Object o)
|
java.util.List
|
persist(java.lang.Iterable objects)
|
java.lang.Object
|
proxy(java.lang.Class type, java.io.Serializable key)
|
void
|
refresh(java.lang.Object o)
|
java.lang.Object
|
retrieve(java.lang.Class type, java.io.Serializable key)
|
java.util.List
|
retrieveAll(java.lang.Class type, java.lang.Iterable keys)
|
java.util.List
|
retrieveAll(java.lang.Class type, java.io.Serializable... keys)
|
void
|
setFlushMode(javax.persistence.FlushModeType flushMode)
|
void
|
unlock(java.lang.Object o)
|
int
|
updateAll(org.grails.datastore.mapping.query.api.QueryableCriteria criteria, java.util.Map properties)
Updates all objects matching the given criteria and property values. |
Methods inherited from class org.grails.datastore.mapping.core.AbstractAttributeStoringSession | |
---|---|
org.grails.datastore.mapping.core.AbstractAttributeStoringSession#getAttribute(java.lang.Object, 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#isConnected(), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#disconnect(), 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#clearSessionProperty(java.lang.String), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#wait(), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#wait(long), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#wait(long, int), 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#lock(java.lang.Object), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#lock(java.lang.Class, java.io.Serializable), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#clear(), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#clear(java.lang.Object), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#contains(java.lang.Object), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#flush(), 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#unlock(java.lang.Object), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#retrieve(java.lang.Class, java.io.Serializable), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#refresh(java.lang.Object), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#isDirty(java.lang.Object), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#proxy(java.lang.Class, java.io.Serializable), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#attach(java.lang.Object), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#deleteAll(org.grails.datastore.mapping.query.api.QueryableCriteria), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#updateAll(org.grails.datastore.mapping.query.api.QueryableCriteria, java.util.Map), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#setFlushMode(javax.persistence.FlushModeType), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#getMappingContext(), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#createQuery(java.lang.Class), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#getDatastore(), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#getPersister(java.lang.Object), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#getFlushMode(), org.grails.datastore.mapping.core.AbstractAttributeStoringSession#getTransaction(), 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#beginTransaction(), 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() |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Constructor Detail |
---|
public HibernateSession(HibernateDatastore hibernateDatastore, org.hibernate.SessionFactory sessionFactory)
Method Detail |
---|
public void attach(java.lang.Object o)
public org.grails.datastore.mapping.transactions.Transaction beginTransaction()
public void clear()
public void clear(java.lang.Object o)
public boolean contains(java.lang.Object o)
public org.grails.datastore.mapping.query.Query createQuery(java.lang.Class type)
public void delete(java.lang.Iterable objects)
public void delete(java.lang.Object obj)
public int deleteAll(org.grails.datastore.mapping.query.api.QueryableCriteria criteria)
criteria
- The criteria
@Override public void disconnect()
public void flush()
public org.grails.datastore.mapping.core.Datastore getDatastore()
public javax.persistence.FlushModeType getFlushMode()
public org.grails.datastore.mapping.model.MappingContext getMappingContext()
public org.springframework.orm.hibernate3.HibernateTemplate getNativeInterface()
public org.grails.datastore.mapping.engine.Persister getPersister(java.lang.Object o)
public org.grails.datastore.mapping.transactions.Transaction getTransaction()
@Override public boolean isConnected()
public boolean isDirty(java.lang.Object o)
public void lock(java.lang.Object o)
public java.lang.Object lock(java.lang.Class type, java.io.Serializable key)
public java.io.Serializable persist(java.lang.Object o)
public java.util.List persist(java.lang.Iterable objects)
public java.lang.Object proxy(java.lang.Class type, java.io.Serializable key)
public void refresh(java.lang.Object o)
public java.lang.Object retrieve(java.lang.Class type, java.io.Serializable key)
public java.util.List retrieveAll(java.lang.Class type, java.lang.Iterable keys)
public java.util.List retrieveAll(java.lang.Class type, java.io.Serializable... keys)
public void setFlushMode(javax.persistence.FlushModeType flushMode)
public void unlock(java.lang.Object o)
public int updateAll(org.grails.datastore.mapping.query.api.QueryableCriteria criteria, java.util.Map properties)
criteria
- The criteriaproperties
- The properties
Groovy Documentation