public class CycleFinder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CycleFinder.CycleFoundException |
static class |
CycleFinder.Path
Path from n table
from to another table to. |
| Constructor and Description |
|---|
CycleFinder() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<CycleFinder.Path> |
findCycle(DataModel dataModel,
Collection<Table> tables)
Finds all dependency cycles in a data model.
|
static Set<Table> |
getCycle(Collection<Table> tables)
Gets set of all tables involved in a cycle.
|
public static Collection<CycleFinder.Path> findCycle(DataModel dataModel, Collection<Table> tables)
dataModel - the data modelpublic static Set<Table> getCycle(Collection<Table> tables)
tables - all tablestables involved in a cycle