Module org.eclipse.persistence.core
Class CommitOrderDependencyNode
java.lang.Object
org.eclipse.persistence.internal.sessions.CommitOrderDependencyNode
This wraps a descriptor with information required to compute an order for
dependencies. The algorithm is a simple topological sort.
-
Field Summary
Modifier and TypeFieldDescriptionprotected ClassDescriptor
protected int
protected int
static int
static int
protected CommitOrderCalculator
protected CommitOrderDependencyNode
protected Vector
protected AbstractSession
protected int
static int
-
Constructor Summary
ConstructorDescriptionCommitOrderDependencyNode
(CommitOrderCalculator calculator, ClassDescriptor descriptor, AbstractSession session) -
Method Summary
Modifier and TypeMethodDescriptionint
getOwner()
boolean
boolean
void
void
void
void
Add all owned classes for each descriptor through checking the mappings.void
Add all owned classes for each descriptor through checking the mappings.void
setDiscoveryTime
(int time) void
setFinishingTime
(int time) void
toString()
void
visit()
-
Field Details
-
owner
-
descriptor
-
session
-
predecessor
-
traversalState
protected int traversalState -
NotVisited
public static int NotVisited -
InProgress
public static int InProgress -
Visited
public static int Visited -
discoveryTime
protected int discoveryTime -
finishingTime
protected int finishingTime
-
-
Constructor Details
-
CommitOrderDependencyNode
public CommitOrderDependencyNode(CommitOrderCalculator calculator, ClassDescriptor descriptor, AbstractSession session)
-
-
Method Details
-
getDescriptor
-
getFinishingTime
public int getFinishingTime() -
getOwner
-
getPredecessor
-
getRelatedNodes
-
hasBeenVisited
public boolean hasBeenVisited() -
hasNotBeenVisited
public boolean hasNotBeenVisited() -
markInProgress
public void markInProgress() -
markNotVisited
public void markNotVisited() -
markVisited
public void markVisited() -
recordMappingDependencies
public void recordMappingDependencies()Add all owned classes for each descriptor through checking the mappings. If I have a foreign mapping with a constraint dependency, then add it If I'm related to a class, I'm related to all its subclasses and superclasses. If my superclass is related to a class, I'm related to it. -
recordSpecifiedDependencies
public void recordSpecifiedDependencies()Add all owned classes for each descriptor through checking the mappings. If I have a foreign mapping with a constraint dependency, then add it If I'm related to a class, I'm related to all its subclasses and superclasses. If my superclass is related to a class, I'm related to it. -
setDiscoveryTime
public void setDiscoveryTime(int time) -
setFinishingTime
public void setFinishingTime(int time) -
setPredecessor
-
toString
-
visit
public void visit() -
withAllSubclasses
-