Interface NCSqlSchema
-
public interface NCSqlSchema
Object presentation of SQL schema. This representation gives object model for the SQL metadata that was extracted from RDBMS and added to the data model stub byNCSqlModelGenerator
utility.- See Also:
NCSqlSchemaBuilder.makeSchema(NCModel)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Collection<NCSqlColumn>
getAllColumns()
Creates and returns collection of all SQL columns across all tables in given schema.Collection<NCSqlJoin>
getJoins()
Gets collection of joins for this SQL schema.Collection<NCSqlTable>
getTables()
Gets collection of tables for this SQL schema.
-
-
-
Method Detail
-
getTables
Collection<NCSqlTable> getTables()
Gets collection of tables for this SQL schema.- Returns:
- Collection of tables for this SQL schema.
-
getJoins
Collection<NCSqlJoin> getJoins()
Gets collection of joins for this SQL schema.- Returns:
- Collection of joins for this SQL schema.
-
getAllColumns
default Collection<NCSqlColumn> getAllColumns()
Creates and returns collection of all SQL columns across all tables in given schema. It is equivalent to:return getTables().stream().flatMap(t -> t.getColumns().stream()).collect(Collectors.toList());
- Returns:
- Collection of all SQL columns across all tables in given schema.
-
-