Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.map
Interface EntitySorter

All Known Implementing Classes:
  AshwoodEntitySorter

    public interface EntitySorter

Defines API for sorting of Cayenne entities based on their mutual dependencies.

Since:
  1.1
Author:
  Andrus Adamchik

Method Summary
`void` | `setDataMaps(Collection<DataMap> dataMaps)` Initializes a list of DataMaps used by the sorter.
`void` | `sortDbEntities(List<DbEntity> dbEntities, boolean deleteOrder)` Sorts a list of DbEntities.
`void` | `sortObjectsForEntity(ObjEntity entity, List<?> objects, boolean deleteOrder)` Sorts a list of objects belonging to the ObjEntity.
`void` | `sortObjEntities(List<ObjEntity> objEntities, boolean deleteOrder)` Sorts a list of ObjEntities.

Method Detail

### setDataMaps

    void setDataMaps(Collection<DataMap> dataMaps)

  Initializes a list of DataMaps used by the sorter.

### sortDbEntities

    void sortDbEntities(List<DbEntity> dbEntities,
                        boolean deleteOrder)

  Sorts a list of DbEntities.

### sortObjEntities

    void sortObjEntities(List<ObjEntity> objEntities,
                         boolean deleteOrder)

  Sorts a list of ObjEntities.

### sortObjectsForEntity

    void sortObjectsForEntity(ObjEntity entity,
                              List<?> objects,
                              boolean deleteOrder)

  Sorts a list of objects belonging to the ObjEntity.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2008 Apache Cayenne. All Rights Reserved.