com.cyclops.dbdigger.schema
Interface Table

All Known Implementing Classes:
BaseDBObject1Metadata, DefaultTable

public interface Table

Table model interface

Since:
2003-5-21 22:32:39
Author:
joel guo

Field Summary
static Table[] EMPTY_ARRAY
          Empty Table object array
 
Method Summary
 Column getColumn(String columnName)
          Get a Column object by its name
 Column[] getColumns()
           
 Database getDatabase()
           
 String getDescription()
           
 String getJavaClassName()
           
 String getName()
           
 Column getPrimaryKey()
           
 

Field Detail

EMPTY_ARRAY

public static final Table[] EMPTY_ARRAY
Empty Table object array

Method Detail

getColumn

public Column getColumn(String columnName)
Get a Column object by its name

Parameters:
columnName - Name of the column object
Returns:
The found Column object, null if not found

getColumns

public Column[] getColumns()
Returns:
All Column objects in this Table

getDatabase

public Database getDatabase()
Returns:
Database object this Table belong to

getName

public String getName()
Returns:
Name of this Table in Database

getJavaClassName

public String getJavaClassName()
Returns:
Java class name of this Table

getPrimaryKey

public Column getPrimaryKey()
Returns:
Primary key Column object, null if no primary key

getDescription

public String getDescription()
Returns:
Description of this Table


Copyright © 2003 Cyclops Group. All Rights Reserved.