|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acegisecurity.domain.dao.DetachmentContextHolder
public class DetachmentContextHolder
InheritableThreadLocal which indicates whether a Dao
implementation should be forced to return a detached instance.
A detached instance is one which is no longer associated with the ORM mapper and changes will therefore not be transparently persisted to the database.
Not all Dao implementations support the concept of detached
instances.
InheritableThreadLocal| Constructor Summary | |
|---|---|
DetachmentContextHolder()
|
|
| Method Summary | |
|---|---|
static boolean |
isForceReturnOfDetachedInstances()
Returns the boolean value detachment policy which has been set for the current thread (defaults to false). |
static void |
setForceReturnOfDetachedInstances(boolean alwaysReturnDetached)
Sets whether or not detached domain object instances should be returned within the current thread of execution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DetachmentContextHolder()
| Method Detail |
|---|
public static void setForceReturnOfDetachedInstances(boolean alwaysReturnDetached)
alwaysReturnDetached - if true then detached instances should be returned.public static boolean isForceReturnOfDetachedInstances()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||