private static List < RelationID > getTableList ( String defaultTableSchema , Set < RelationID > realTables , QuotedIDFactory idfac ) throws SQLException { List < RelationID > fks = new LinkedList <> ( ) ; for ( RelationID table : realTables ) { // defaultTableSchema is non-empty only for Oracle and DUAL is a special Oracle table if ( table . hasSchema ( ) || ( defaultTableSchema == null ) || table . getTableName ( ) . equals ( "DUAL" ) ) fks . add ( table ) ; else { RelationID qualifiedTableId = idfac . createRelationID ( defaultTableSchema , table . getTableNameSQLRendering ( ) ) ; fks . add ( qualifiedTableId ) ; } } return fks ; }
Retrieve the normalized list of tables from a given list of RelationIDs