Interface ModelElementFinder
- All Known Implementing Classes:
JDBCMetaDataBasedModelElementFinder
public interface ModelElementFinder
Finds model-elements (tables and associations).
- Author:
- Ralf Wisser
-
Method Summary
Modifier and TypeMethodDescriptionfindAssociations(DataModel dataModel, Map<Association, String[]> namingSuggestions, Session session, ExecutionContext executionContext) Finds a set ofAssociations.findColumns(Table table, Session session, ExecutionContext executionContext) findTables(Session session, ExecutionContext executionContext) Finds a set ofTables.Finds comments for all model elements.
-
Method Details
-
findTables
Finds a set ofTables. -
findColumns
List<Column> findColumns(Table table, Session session, ExecutionContext executionContext) throws Exception - Parameters:
table- the tablesession- the statement executor for executing SQL-statementsexecutionContext- the execution context- Returns:
- the list of columns found for the given table
- Throws:
Exception- on each error
-
findAssociations
Collection<Association> findAssociations(DataModel dataModel, Map<Association, String[]> namingSuggestions, Session session, ExecutionContext executionContext) throws ExceptionFinds a set ofAssociations.- Parameters:
dataModel- model containing already known elements.namingSuggestions- to put naming suggestions for associations intosession- the statement executor for executing SQL-statements- Returns:
- a set of
Associations - Throws:
Exception- on each error
-
getComments
-