com.agimatec.sql.meta
Class CatalogDescription
java.lang.Object
com.agimatec.sql.meta.CatalogDescription
- All Implemented Interfaces:
- Serializable, Cloneable
public class CatalogDescription
- extends Object
- implements Serializable, Cloneable
Description: root object that contains the database schema description
Copyright: Copyright (c) 2007
Company: Agimatec GmbH
- Author:
- Roman Stumm
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CatalogDescription
public CatalogDescription()
deepCopy
public CatalogDescription deepCopy()
getTable
public TableDescription getTable(String tableName)
getSequence
public SequenceDescription getSequence(String seqName)
addTable
public void addTable(TableDescription aTD)
addSequence
public void addSequence(SequenceDescription aSD)
getTablesSize
public int getTablesSize()
getSequencesSize
public int getSequencesSize()
getTables
public Map<String,TableDescription> getTables()
- Returns:
- collection of TableDescription
getSequences
public Collection<SequenceDescription> getSequences()
getTableCollection
public Collection<TableDescription> getTableCollection()
getSchemaName
public String getSchemaName()
setSchemaName
public void setSchemaName(String aSchemaName)
getTableNames
public String[] getTableNames()
- Returns:
- all table names in this catalog in alphabetic order
removeTable
public void removeTable(String tableName)
getForeignKeysReferencing
public ForeignKeyDescription[] getForeignKeysReferencing(String tableName)
- return all tables that directly reference the given table
getTableNames
public static List getTableNames(A_IntegrityRuleDescription[] rules)
- extract the tablenames from the given ruledescriptions
- Returns:
- of of Strings: alphabetically sorted array of table names (each name is unique in the array)
Copyright © 2008-2011. All Rights Reserved.