Package org.apache.openjpa.conf
Class DetachOptions
java.lang.Object
org.apache.openjpa.conf.DetachOptions
- All Implemented Interfaces:
DetachState
- Direct Known Subclasses:
DetachOptions.All,DetachOptions.FetchGroups,DetachOptions.Loaded
Detach options.
- Author:
- Abe White
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPublic to allow reflection.static classPublic to allow reflection.static classDetach loaded state. -
Field Summary
Fields inherited from interface org.apache.openjpa.kernel.DetachState
DETACH_ALL, DETACH_FETCH_GROUPS, DETACH_FGS, DETACH_LOADED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether to allow access to unloaded detached fields.booleanWhether to add a detached state field to enhanced classes.booleanWhether to use a detached state manager on types that allow it.booleanWhether to detach proxy fields.abstract intTheDetachStateconstant.booleanWhether to use lite detachment when auto detaching.booleanWhether to use transient detached state.voidsetAccessUnloaded(boolean val) Whether to allow access to unloaded detached fields.voidsetDetachedStateField(boolean val) Whether to add a detached state field to enhanced classes.voidFor auto-configuration of the detached state field.voidsetDetachedStateManager(boolean val) Whether to use a detached state manager on types that allow it.voidsetDetachedStateTransient(boolean val) Whether to use transient detached state.voidsetDetachProxyFields(boolean b) Whether to detach proxy fields.voidsetLiteAutoDetach(boolean b) Whether to use lite detachment when auto detaching.
-
Constructor Details
-
DetachOptions
public DetachOptions()
-
-
Method Details
-
getDetachState
public abstract int getDetachState()TheDetachStateconstant. -
getDetachedStateField
public boolean getDetachedStateField()Whether to add a detached state field to enhanced classes. -
setDetachedStateField
public void setDetachedStateField(boolean val) Whether to add a detached state field to enhanced classes. -
setDetachedStateField
For auto-configuration of the detached state field. Accepts values "true", "false", or "transient". -
isDetachedStateTransient
public boolean isDetachedStateTransient()Whether to use transient detached state. -
setDetachedStateTransient
public void setDetachedStateTransient(boolean val) Whether to use transient detached state. -
getDetachedStateManager
public boolean getDetachedStateManager()Whether to use a detached state manager on types that allow it. Types that do not use detached state or that declare a custom detached state field to maintain serialization compatibility will never use a detached state manager. Defaults to true. -
setDetachedStateManager
public void setDetachedStateManager(boolean val) Whether to use a detached state manager on types that allow it. Types that do not use detached state or that declare a custom detached state field to maintain serialization compatibility will never use a detached state manager. Defaults to true. -
getAccessUnloaded
public boolean getAccessUnloaded()Whether to allow access to unloaded detached fields. This setting only applies to instances with detached state managers. -
setAccessUnloaded
public void setAccessUnloaded(boolean val) Whether to allow access to unloaded detached fields. This setting only applies to instances with detached state managers. -
setLiteAutoDetach
public void setLiteAutoDetach(boolean b) Whether to use lite detachment when auto detaching. This setting only applies when DetachState is set to loaded. -
getLiteAutoDetach
public boolean getLiteAutoDetach()Whether to use lite detachment when auto detaching. This setting only applies when DetachState is set to loaded. -
setDetachProxyFields
public void setDetachProxyFields(boolean b) Whether to detach proxy fields. -
getDetachProxyFields
public boolean getDetachProxyFields()Whether to detach proxy fields.
-