Class ManagedRelationsHandler
java.lang.Object
org.datanucleus.ManagedRelationsHandler
Handler to process "managed relations".
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanFlag for whether we are running "managed relations" execute() at this point in time.private Map<DNStateManager, RelationshipManager> Map of RelationshipManager keyed by StateManager that it is for.private booleanWhether to perform consistency checks. -
Constructor Summary
ConstructorsConstructorDescriptionManagedRelationsHandler(boolean performChecks) Constructor for a "managed relations" handler. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()voidexecute()Method to return the RelationshipManager for the specified StateManager.booleanvoidsetPerformChecks(boolean checks)
-
Field Details
-
performChecks
private boolean performChecksWhether to perform consistency checks. -
executing
private boolean executingFlag for whether we are running "managed relations" execute() at this point in time. -
managedRelationDetails
Map of RelationshipManager keyed by StateManager that it is for.
-
-
Constructor Details
-
ManagedRelationsHandler
public ManagedRelationsHandler(boolean performChecks) Constructor for a "managed relations" handler.- Parameters:
performChecks- Whether to perform consistency checks as part of the execute process.
-
-
Method Details
-
setPerformChecks
public void setPerformChecks(boolean checks) -
getRelationshipManagerForStateManager
Method to return the RelationshipManager for the specified StateManager. If none is currently present will create one- Parameters:
sm- StateManager- Returns:
- The RelationshipManager for this object
-
clear
public void clear() -
isExecuting
public boolean isExecuting() -
addRelationshipManagerForStateManager
-
execute
public void execute()
-