Package org.apache.cayenne.ashwood
Class WeightedAshwoodEntitySorter
java.lang.Object
org.apache.cayenne.ashwood.AshwoodEntitySorter
org.apache.cayenne.ashwood.WeightedAshwoodEntitySorter
- All Implemented Interfaces:
EntitySorter
EntitySorter that takes into account entity "weights", and otherwise delegating to
another (topological) sorter.
- Since:
- 3.1, since 4.0 moved to cayenne-server from cayenne-lifecycle
-
Field Summary
Fields inherited from class org.apache.cayenne.ashwood.AshwoodEntitySorter
components, dbEntityComparator, entityResolver, objEntityComparator, reflexiveDbEntities
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addWeightForEntity
(ObjEntity entity) protected void
Reindexes internal sorter without synchronization.protected Comparator
<DbEntity> getDbEntityComparator
(boolean dependantFirst) protected Comparator
<ObjEntity> getObjEntityComparator
(boolean dependantFirst) Methods inherited from class org.apache.cayenne.ashwood.AshwoodEntitySorter
buildDigraph, findReflexiveMaster, getDbEntityComparator, getObjEntityComparator, getReflexiveRelationshipsNames, indexSorter, isReflexive, setEntityResolver, sortDbEntities, sortObjectsForEntity, sortObjectsForEntity, sortObjEntities, topologicalSort
-
Field Details
-
entityWeights
-
-
Constructor Details
-
WeightedAshwoodEntitySorter
public WeightedAshwoodEntitySorter()
-
-
Method Details
-
doIndexSorter
protected void doIndexSorter()Description copied from class:AshwoodEntitySorter
Reindexes internal sorter without synchronization.- Overrides:
doIndexSorter
in classAshwoodEntitySorter
-
addWeightForEntity
-
getDbEntityComparator
- Overrides:
getDbEntityComparator
in classAshwoodEntitySorter
-
getObjEntityComparator
- Overrides:
getObjEntityComparator
in classAshwoodEntitySorter
-