|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.test.support.GrailsTestTransactionInterceptor
class GrailsTestTransactionInterceptor extends java.lang.Object
Establishes a rollback only transaction for running a test in.
Field Summary | |
---|---|
protected java.lang.Object |
transactionManager
|
protected java.lang.Object |
transactionStatus
|
Property Summary | |
---|---|
static java.lang.String |
TRANSACTIONAL
|
org.springframework.context.ApplicationContext |
applicationContext
|
Constructor Summary | |
GrailsTestTransactionInterceptor(org.springframework.context.ApplicationContext applicationContext)
|
Method Summary | |
---|---|
void
|
destroy()
Rolls back the current transaction. |
void
|
doInTransaction(groovy.lang.Closure body)
Calls init() before and destroy() after invoking body. |
void
|
init()
Establishes a transaction. |
boolean
|
isTransactional(java.lang.Object test)
A test is non transactional if it defines an instance or static property name 'transactional' with a value of false. |
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() |
Field Detail |
---|
protected final java.lang.Object transactionManager
protected java.lang.Object transactionStatus
Property Detail |
---|
static final java.lang.String TRANSACTIONAL
org.springframework.context.ApplicationContext applicationContext
Constructor Detail |
---|
GrailsTestTransactionInterceptor(org.springframework.context.ApplicationContext applicationContext)
Method Detail |
---|
void destroy()
void doInTransaction(groovy.lang.Closure body)
void init()
boolean isTransactional(java.lang.Object test)
Groovy Documentation