SMACS

smacs.load.schema
Interface DbSchemaList

All Superinterfaces:
DbSchemaTableList

public interface DbSchemaList
extends DbSchemaTableList

schema lookup.

We need to parse a series of schema definitions somehow that each provides an interface to allow us to lookup a table in it. A series of schema must allow us to lookup a fully qualified table or a table along a search_path.

Author:
Copyright (C) 2004, Guido Draheim. All rights reserved. Part of SMACS project.

Method Summary
 DbSchemaTable getTable(String table)
          find the DbSchemaTable instance for the given name.
 DbSchemaTable getTable(String table, String[] search_path)
           
 List getTableList()
          give us a list of references to DbSchemaTables.
 
Methods inherited from interface smacs.load.schema.DbSchemaTableList
getTable
 

Method Detail

getTable

public DbSchemaTable getTable(String table)
Description copied from interface: DbSchemaTableList
find the DbSchemaTable instance for the given name. This method call is supposed to use the best lookup strategy available for the instance, so the result might differ from an appliction that goes to serach through the list returned by DbSchemaTableList.getTableList()

Specified by:
getTable in interface DbSchemaTableList

getTable

public DbSchemaTable getTable(String table,
                              String[] search_path)

getTableList

public List getTableList()
Description copied from interface: DbSchemaTableList
give us a list of references to DbSchemaTables. For a single DbSchema this contains a unique set of table names while in a DbSchemaList there may be multipe instances under the same table name. Only a qualified name would help.

Specified by:
getTableList in interface DbSchemaTableList

SMACS