vishnu.model.catalog
Class TableCatalogImpl

java.lang.Object
  extended by vishnu.model.catalog.AbstractCatalog
      extended by vishnu.model.catalog.TableCatalogImpl
All Implemented Interfaces:
Catalog, TableCatalog

public class TableCatalogImpl
extends AbstractCatalog
implements TableCatalog

 

Field Summary
 
Fields inherited from class vishnu.model.catalog.AbstractCatalog
catalog, columnName, databaseName, innerTable, name, nameFieldSize, pkSet, tableName, tableSignature, userFieldSize, userName
 
Constructor Summary
TableCatalogImpl(User user, java.lang.String name)
           
 
Method Summary
 void addTable(TableContext c)
          agrega una tabla al catalogo
protected  void buildPK()
           
protected  void buildSignature()
           
 boolean contains(UserContext c, java.lang.String tableName)
          indica si el catalogo contiene a la tabla
 void dropTable(TableContext c)
          elimina una tabla del catalogo
 java.util.Collection<java.lang.String> getNames(UserContext c)
          devuelve los nombres de las tablas de una base de datos
 
Methods inherited from class vishnu.model.catalog.AbstractCatalog
close, getName, getSignature, innerTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface vishnu.model.catalog.Catalog
close, getName, getSignature
 

Constructor Detail

TableCatalogImpl

public TableCatalogImpl(User user,
                        java.lang.String name)
Method Detail

buildSignature

protected void buildSignature()
Specified by:
buildSignature in class AbstractCatalog

buildPK

protected void buildPK()
Specified by:
buildPK in class AbstractCatalog

addTable

public void addTable(TableContext c)
Description copied from interface: TableCatalog
agrega una tabla al catalogo

Specified by:
addTable in interface TableCatalog

contains

public boolean contains(UserContext c,
                        java.lang.String tableName)
Description copied from interface: TableCatalog
indica si el catalogo contiene a la tabla

Specified by:
contains in interface TableCatalog

getNames

public java.util.Collection<java.lang.String> getNames(UserContext c)
Description copied from interface: TableCatalog
devuelve los nombres de las tablas de una base de datos

Specified by:
getNames in interface TableCatalog

dropTable

public void dropTable(TableContext c)
Description copied from interface: TableCatalog
elimina una tabla del catalogo

Specified by:
dropTable in interface TableCatalog