SMACS

smacs.load.schema
Interface DbSchemaTable

All Superinterfaces:
DbSchemaTableQName, HasTableName, HasTableQName, HasTableSchemaName, HasTableSchemaNameSpec, TableQ2Name, TableQName
All Known Implementing Classes:
DbSchemaTableNode

public interface DbSchemaTable
extends DbSchemaTableQName

DbSchema Table operations.

A table is essentially an ordered list of columns with distinct column names. Furthermore there are cross references to attributes like unique constraints and foreign key constraints which might span multiple column names.

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

Method Summary
 List getColumnList()
          get the columns of this table as a list.
 List getForeignKeyList()
          get the foreignkeys of this table as a list.
 String getTableName()
          the table name.
 DbSchemaColumn hasColumn(String name)
          find column within table definition.
 boolean hasForeignKeyTo(DbSchemaTableQName table)
          check foreign key assertion.
 String hasSchemaName()
          the schema name.
 
Methods inherited from interface smacs.util.schema.HasTableSchemaNameSpec
getTableSchemaNameSpec
 
Methods inherited from interface smacs.util.schema.HasTableSchemaName
getTableSchemaBaseNameSpec, getTableSchemaName
 

Method Detail

getTableName

public String getTableName()
the table name. As taken from the SqlTableReference

Specified by:
getTableName in interface HasTableName

hasSchemaName

public String hasSchemaName()
the schema name. @return null if not present

Specified by:
hasSchemaName in interface TableQName

hasColumn

public DbSchemaColumn hasColumn(String name)
find column within table definition. @return null if not present.


hasForeignKeyTo

public boolean hasForeignKeyTo(DbSchemaTableQName table)
check foreign key assertion.


getColumnList

public List getColumnList()
get the columns of this table as a list.


getForeignKeyList

public List getForeignKeyList()
get the foreignkeys of this table as a list.


SMACS