Ejemplo n.º 1
0
        // @Override
        public MutableSchema build()
        {
            MutableSchema schema = new MutableSchema(_schemaName);

            foreach (SimpleTableDef simpleTableDef in _simpleTableDefs)
            {
                MutableTable table = simpleTableDef.toTable();
                schema.addTable(table);
                table.setSchema(schema);
            }
            return(schema);
        }
        } // getTableBuilder()

        // @Override
        public MutableSchema build()
        {
            MutableSchema schema = new MutableSchema(_schemaName);

            // Sort table names by moving them to a treeset
            HashSet <String> table_names = new HashSet <String>(_tableBuilders.Keys);  //new TreeSet<String>(_tableBuilders.keySet());

            foreach (String table_name in table_names)
            {
                MutableTable table = buildTable(getTableBuilder(table_name));
                table.setSchema(schema);
                schema.addTable(table);
            }

            return(schema);
        } // build()