Top Description Fields Constructors Methods
org.eclipse.persistence.internal.sessions

public Class CommitOrderDependencyNode

extends Object
Class Inheritance
Imports
java.util.*, org.eclipse.persistence.descriptors.InheritancePolicy, .ClassDescriptor, org.eclipse.persistence.mappings.*, org.eclipse.persistence.internal.helper.*, org.eclipse.persistence.internal.localization.*

This wraps a descriptor with information required to compute an order for dependencies. The algorithm is a simple topological sort.

Field Summary

Modifier and TypeField and Description
protected ClassDescriptor
protected int
protected int
public static int
public static int
protected CommitOrderCalculator
protected CommitOrderDependencyNode
protected Vector<E>
protected AbstractSession
protected int
public static int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ClassDescriptor
public int
public CommitOrderCalculator
public CommitOrderDependencyNode
public Vector<E>
public boolean
public boolean
public void
public void
public void
public void
recordMappingDependencies()

Add all owned classes for each descriptor through checking the mappings.

public void
recordSpecifiedDependencies()

Add all owned classes for each descriptor through checking the mappings.

public void
setDiscoveryTime(int time)

public void
setFinishingTime(int time)

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public void
public Vector<E>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

descriptorback to summary
protected ClassDescriptor descriptor
discoveryTimeback to summary
protected int discoveryTime
finishingTimeback to summary
protected int finishingTime
InProgressback to summary
public static int InProgress
NotVisitedback to summary
public static int NotVisited
ownerback to summary
protected CommitOrderCalculator owner
predecessorback to summary
protected CommitOrderDependencyNode predecessor
relatedNodesback to summary
protected Vector<E> relatedNodes
sessionback to summary
protected AbstractSession session
traversalStateback to summary
protected int traversalState
Visitedback to summary
public static int Visited

Constructor Detail

CommitOrderDependencyNodeback to summary
public CommitOrderDependencyNode(CommitOrderCalculator calculator, ClassDescriptor descriptor, AbstractSession session)

Method Detail

getDescriptorback to summary
public ClassDescriptor getDescriptor()
getFinishingTimeback to summary
public int getFinishingTime()
getOwnerback to summary
public CommitOrderCalculator getOwner()
getPredecessorback to summary
public CommitOrderDependencyNode getPredecessor()
getRelatedNodesback to summary
public Vector<E> getRelatedNodes()
hasBeenVisitedback to summary
public boolean hasBeenVisited()
hasNotBeenVisitedback to summary
public boolean hasNotBeenVisited()
markInProgressback to summary
public void markInProgress()
markNotVisitedback to summary
public void markNotVisited()
markVisitedback to summary
public void markVisited()
recordMappingDependenciesback to summary
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.

recordSpecifiedDependenciesback to summary
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.

setDiscoveryTimeback to summary
public void setDiscoveryTime(int time)
setFinishingTimeback to summary
public void setFinishingTime(int time)
setPredecessorback to summary
public void setPredecessor(CommitOrderDependencyNode n)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
visitback to summary
public void visit()
withAllSubclassesback to summary
public Vector<E> withAllSubclasses(CommitOrderDependencyNode node)