vishnu.model.catalog
Class ConstraintCatalogImpl

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

public class ConstraintCatalogImpl
extends AbstractCatalog
implements ConstraintCatalog

 

Field Summary
 
Fields inherited from class vishnu.model.catalog.AbstractCatalog
catalog, columnName, databaseName, innerTable, name, nameFieldSize, pkSet, tableName, tableSignature, userFieldSize, userName
 
Constructor Summary
ConstraintCatalogImpl(User user, java.lang.String name)
           
 
Method Summary
 void addConstraints(TableContext c)
          agrega las contraints de la tabla al catalogo de indices.
protected  void buildPK()
           
protected  void buildSignature()
           
 boolean contains(TableContext c)
          indica si el catalogo contiene las contraints de la tabla.
 void dropConstraints(Table t)
           
 void dropConstraints(TableContext c)
          elimina las contraints de la tabla del catalogo de indices.
 void getConstraints(TableContext c)
          agrega a la signatura de la tabla las constraints que tiene definidas.
 
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

ConstraintCatalogImpl

public ConstraintCatalogImpl(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

addConstraints

public void addConstraints(TableContext c)
Description copied from interface: ConstraintCatalog
agrega las contraints de la tabla al catalogo de indices.

Specified by:
addConstraints in interface ConstraintCatalog

dropConstraints

public void dropConstraints(Table t)

contains

public boolean contains(TableContext c)
Description copied from interface: ConstraintCatalog
indica si el catalogo contiene las contraints de la tabla.

Specified by:
contains in interface ConstraintCatalog

getConstraints

public void getConstraints(TableContext c)
Description copied from interface: ConstraintCatalog
agrega a la signatura de la tabla las constraints que tiene definidas.

Specified by:
getConstraints in interface ConstraintCatalog

dropConstraints

public void dropConstraints(TableContext c)
Description copied from interface: ConstraintCatalog
elimina las contraints de la tabla del catalogo de indices.

Specified by:
dropConstraints in interface ConstraintCatalog