com.agimatec.sql.meta
Class CatalogDescription
java.lang.Object
com.agimatec.sql.meta.CatalogDescription
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class CatalogDescription
- extends java.lang.Object
- implements java.io.Serializable, java.lang.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(java.lang.String tableName)
getSequence
public SequenceDescription getSequence(java.lang.String seqName)
addTable
public void addTable(TableDescription aTD)
addSequence
public void addSequence(SequenceDescription aSD)
removeSequence
public void removeSequence(java.lang.String seqName)
getTablesSize
public int getTablesSize()
getSequencesSize
public int getSequencesSize()
getTables
public java.util.Map<java.lang.String,TableDescription> getTables()
- Returns:
- collection of TableDescription
getSequences
public java.util.Collection<SequenceDescription> getSequences()
getTableCollection
public java.util.Collection<TableDescription> getTableCollection()
getSchemaName
public java.lang.String getSchemaName()
setSchemaName
public void setSchemaName(java.lang.String aSchemaName)
getTableNames
public java.lang.String[] getTableNames()
- Returns:
- all table names in this catalog in alphabetic order
removeTable
public void removeTable(java.lang.String tableName)
getForeignKeysReferencing
public ForeignKeyDescription[] getForeignKeysReferencing(java.lang.String tableName)
- return all tables that directly reference the given table
getTableNames
public static java.util.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-2012. All Rights Reserved.