vishnu.model.catalog
Class IndexCatalogImpl

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

public class IndexCatalogImpl
extends AbstractCatalog
implements IndexCatalog

 

Field Summary
 
Fields inherited from class vishnu.model.catalog.AbstractCatalog
catalog, columnName, databaseName, innerTable, name, nameFieldSize, pkSet, tableName, tableSignature, userFieldSize, userName
 
Method Summary
 void addIndex(IndexContext c)
          agrega un indice al catalogo de indices
protected  void buildPK()
           
protected  void buildSignature()
           
 boolean contains(IndexContext c)
          indica si el catalogo contiene al indice
 void dropIndex(IndexContext c)
          elimina el indice del catalogo de indices
 Index getIndex(IndexContext c)
           
 java.util.Collection<Index> getIndexes(TableContext c)
          devuelve el conjunto de indices definidos sobre la tabla
 java.util.Collection<Index> getIndexOnColumn(TableContext c, java.lang.String columnName)
          devuelve el indice definido sobre una columna de una tabla
 
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
 

Method Detail

buildSignature

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

buildPK

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

addIndex

public void addIndex(IndexContext c)
Description copied from interface: IndexCatalog
agrega un indice al catalogo de indices

Specified by:
addIndex in interface IndexCatalog

dropIndex

public void dropIndex(IndexContext c)
Description copied from interface: IndexCatalog
elimina el indice del catalogo de indices

Specified by:
dropIndex in interface IndexCatalog

contains

public boolean contains(IndexContext c)
Description copied from interface: IndexCatalog
indica si el catalogo contiene al indice

Specified by:
contains in interface IndexCatalog

getIndexes

public java.util.Collection<Index> getIndexes(TableContext c)
Description copied from interface: IndexCatalog
devuelve el conjunto de indices definidos sobre la tabla

Specified by:
getIndexes in interface IndexCatalog

getIndex

public Index getIndex(IndexContext c)

getIndexOnColumn

public java.util.Collection<Index> getIndexOnColumn(TableContext c,
                                                    java.lang.String columnName)
Description copied from interface: IndexCatalog
devuelve el indice definido sobre una columna de una tabla

Specified by:
getIndexOnColumn in interface IndexCatalog