Package org.apache.cayenne.map
Interface EntitySorter
- All Known Implementing Classes:
AshwoodEntitySorter,WeightedAshwoodEntitySorter
public interface EntitySorter
Defines API for sorting of Cayenne entities based on their mutual dependencies.
- Since:
- 1.1
-
Method Summary
Modifier and Type Method Description voidsetEntityResolver(EntityResolver resolver)Sets EntityResolver for this sorter.voidsortDbEntities(List<DbEntity> dbEntities, boolean deleteOrder)Sorts a list of DbEntities.voidsortObjectsForEntity(ObjEntity entity, List<?> objects, boolean deleteOrder)Sorts a list of objects belonging to the ObjEntity.voidsortObjEntities(List<ObjEntity> objEntities, boolean deleteOrder)Sorts a list of ObjEntities.
-
Method Details
-
setEntityResolver
Sets EntityResolver for this sorter. All entities present in the resolver will be used to determine sort ordering.- Since:
- 3.1
-
sortDbEntities
Sorts a list of DbEntities. -
sortObjEntities
Sorts a list of ObjEntities. -
sortObjectsForEntity
Sorts a list of objects belonging to the ObjEntity.
-