Package org.apache.cayenne.ashwood
Class WeightedAshwoodEntitySorter
java.lang.Object
org.apache.cayenne.ashwood.AshwoodEntitySorter
org.apache.cayenne.ashwood.WeightedAshwoodEntitySorter
- All Implemented Interfaces:
- EntitySorter
public class WeightedAshwoodEntitySorter extends AshwoodEntitySorter
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 SummaryFields Modifier and Type Field Description protected Map<DbEntity,Integer>entityWeightsFields inherited from class org.apache.cayenne.ashwood.AshwoodEntitySortercomponents, dbEntityComparator, entityResolver, objEntityComparator, reflexiveDbEntities
- 
Constructor SummaryConstructors Constructor Description WeightedAshwoodEntitySorter()
- 
Method SummaryModifier and Type Method Description protected voidaddWeightForEntity(ObjEntity entity)protected voiddoIndexSorter()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.AshwoodEntitySorterfindReflexiveMaster, indexSorter, isReflexive, setEntityResolver, sortDbEntities, sortObjectsForEntity, sortObjEntities
- 
Field Details- 
entityWeights
 
- 
- 
Constructor Details- 
WeightedAshwoodEntitySorterpublic WeightedAshwoodEntitySorter()
 
- 
- 
Method Details- 
doIndexSorterprotected void doIndexSorter()Description copied from class:AshwoodEntitySorterReindexes internal sorter without synchronization.- Overrides:
- doIndexSorterin class- AshwoodEntitySorter
 
- 
addWeightForEntity
- 
getDbEntityComparator- Overrides:
- getDbEntityComparatorin class- AshwoodEntitySorter
 
- 
getObjEntityComparator- Overrides:
- getObjEntityComparatorin class- AshwoodEntitySorter
 
 
-