org.grails.datastore.gorm.support
Class DatastorePersistenceContextInterceptor

java.lang.Object
  extended by org.grails.datastore.gorm.support.DatastorePersistenceContextInterceptor
All Implemented Interfaces:
org.codehaus.groovy.grails.support.PersistenceContextInterceptor

public class DatastorePersistenceContextInterceptor
extends Object
implements org.codehaus.groovy.grails.support.PersistenceContextInterceptor

Since:
1.0

Constructor Summary
DatastorePersistenceContextInterceptor(Datastore datastore)
           
 
Method Summary
 void clear()
           
 void destroy()
           
 void disconnect()
           
 void flush()
           
protected  Session getSession()
           
 void init()
           
 boolean isOpen()
           
 void reconnect()
           
 void setReadOnly()
           
 void setReadWrite()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatastorePersistenceContextInterceptor

public DatastorePersistenceContextInterceptor(Datastore datastore)
Method Detail

init

public void init()
Specified by:
init in interface org.codehaus.groovy.grails.support.PersistenceContextInterceptor

getSession

protected Session getSession()

destroy

public void destroy()
Specified by:
destroy in interface org.codehaus.groovy.grails.support.PersistenceContextInterceptor

disconnect

public void disconnect()
Specified by:
disconnect in interface org.codehaus.groovy.grails.support.PersistenceContextInterceptor

reconnect

public void reconnect()
Specified by:
reconnect in interface org.codehaus.groovy.grails.support.PersistenceContextInterceptor

flush

public void flush()
Specified by:
flush in interface org.codehaus.groovy.grails.support.PersistenceContextInterceptor

clear

public void clear()
Specified by:
clear in interface org.codehaus.groovy.grails.support.PersistenceContextInterceptor

setReadOnly

public void setReadOnly()
Specified by:
setReadOnly in interface org.codehaus.groovy.grails.support.PersistenceContextInterceptor

setReadWrite

public void setReadWrite()
Specified by:
setReadWrite in interface org.codehaus.groovy.grails.support.PersistenceContextInterceptor

isOpen

public boolean isOpen()
Specified by:
isOpen in interface org.codehaus.groovy.grails.support.PersistenceContextInterceptor