Package org.datanucleus
Class ManagedRelationsHandler
- java.lang.Object
-
- org.datanucleus.ManagedRelationsHandler
-
public class ManagedRelationsHandler extends java.lang.Object
Handler to process "managed relations".
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
executing
Flag for whether we are running "managed relations" execute() at this point in time.private java.util.Map<DNStateManager,RelationshipManager>
managedRelationDetails
Map of RelationshipManager keyed by StateManager that it is for.private boolean
performChecks
Whether to perform consistency checks.
-
Constructor Summary
Constructors Constructor Description ManagedRelationsHandler(boolean performChecks)
Constructor for a "managed relations" handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRelationshipManagerForStateManager(DNStateManager sm, RelationshipManager relMgr)
void
clear()
void
execute()
RelationshipManager
getRelationshipManagerForStateManager(DNStateManager sm)
Method to return the RelationshipManager for the specified StateManager.boolean
isExecuting()
void
setPerformChecks(boolean checks)
-
-
-
Field Detail
-
performChecks
private boolean performChecks
Whether to perform consistency checks.
-
executing
private boolean executing
Flag for whether we are running "managed relations" execute() at this point in time.
-
managedRelationDetails
private java.util.Map<DNStateManager,RelationshipManager> managedRelationDetails
Map of RelationshipManager keyed by StateManager that it is for.
-
-
Method Detail
-
setPerformChecks
public void setPerformChecks(boolean checks)
-
getRelationshipManagerForStateManager
public RelationshipManager getRelationshipManagerForStateManager(DNStateManager sm)
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
public void addRelationshipManagerForStateManager(DNStateManager sm, RelationshipManager relMgr)
-
execute
public void execute()
-
-