|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ajax.catalog.Catalog
Catalog stores the schema of tables and the cleaning transformations Each table schema is composed by the table name and the list of attribute names and attribute types
Constructor Summary | |
Catalog()
Constructor for the catalog. |
Method Summary | |
void |
addTable(Table table)
adds a table to the catalog. verifies if there is already a table defined with the same name if there is, throws an exception. |
void |
addTransformation(Transformation transf)
This method add a transformations to the catalog. verifies if there is already one defined with the same name if there is, throws an exception. |
boolean |
exists(java.lang.String objname)
checks if a given object exists in the catalog |
CatalogObject |
getObject(java.lang.String objName)
looks for a tableName, transfName, functionName or algorithmName in the catalog and returns the corresponding object. if not found it returns null. |
Table |
getTable(java.lang.String tableName)
Given a table name this method looks for the corresponding table in the catalog and returns the corresponding table object. if not found it returns null. |
java.util.Enumeration |
getTablesNames()
returns the initial tables names defined by the user. |
java.util.List |
getTransfList()
Returns the ordered list of transformations |
java.util.List |
getTransfNamesList()
Returns an array with the names of the transformations to execute |
Transformation |
getTransformation(java.lang.String transfName)
Given a transformation name, this method looks for the corresponding transformation in the catalog and returns the corresponding object. if not found it returns null. |
java.util.Enumeration |
getTransformations()
Get transformations |
void |
removeTable(java.lang.String tableName)
removes a table from the catalog. |
void |
removeTransformation(java.lang.String transfName)
removes a transformation from the catalog. |
java.lang.String |
toString()
Convert a catalog to human readable string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Catalog()
Method Detail |
public final java.util.Enumeration getTablesNames()
public void addTable(Table table) throws CatalogException
public void removeTable(java.lang.String tableName)
tableName
- is the table name.public Table getTable(java.lang.String tableName)
tablename
- is the table name.public void addTransformation(Transformation transf) throws CatalogException
view
- is the transformation to add.public void removeTransformation(java.lang.String transfName)
transfName
- is the table name.public Transformation getTransformation(java.lang.String transfName)
the
- function name.public java.util.List getTransfList()
public java.util.List getTransfNamesList()
public CatalogObject getObject(java.lang.String objName)
objName
- is a name of a catalog objectpublic boolean exists(java.lang.String objname)
objname
- is the Object name we look for.public java.util.Enumeration getTransformations()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |