Class GraphBasedDbRowOpSorter
java.lang.Object
org.apache.cayenne.access.flush.operation.GraphBasedDbRowOpSorter
- All Implemented Interfaces:
DbRowOpSorter
Db operation sorted that builds dependency graph and uses topological sort to get final order.
This in general slower than
DefaultDbRowOpSorter
but can handle more edge cases (like multiple meaningful PKs/FKs).
TODO: possible optimizations could be optional logic parts (e.g. detecting effective id intersections,
reflexive dependencies, etc.)- Since:
- 4.2
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
GraphBasedDbRowOpSorter
-
-
Method Details
-
sort
- Specified by:
sort
in interfaceDbRowOpSorter
-