vishnu.model.catalog
Class SynonymCatalogImpl

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

public class SynonymCatalogImpl
extends AbstractCatalog
implements SynonymCatalog

 

Field Summary
 
Fields inherited from class vishnu.model.catalog.AbstractCatalog
catalog, columnName, databaseName, innerTable, name, nameFieldSize, pkSet, tableName, tableSignature, userFieldSize, userName
 
Constructor Summary
SynonymCatalogImpl(User user, java.lang.String name)
           
 
Method Summary
 void addSynonym(TableContext c, Synonym s)
          Agrega un sinonimo a la base da datos.
protected  void buildPK()
           
protected  void buildSignature()
           
 boolean contains(UserContext c, java.lang.String alias)
          Indica si el alias pertenece a la base de datos.
 void dropSynonym(TableContext c, Synonym s)
          Elimina la relacion usuario-base de datos del catalogo.
 Synonym getSynonym(UserContext c, java.lang.String alias)
          Devuelve el esquema real de la 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
 

Constructor Detail

SynonymCatalogImpl

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

addSynonym

public void addSynonym(TableContext c,
                       Synonym s)
Description copied from interface: SynonymCatalog
Agrega un sinonimo a la base da datos.

Specified by:
addSynonym in interface SynonymCatalog
s - - el sinonimo.

contains

public boolean contains(UserContext c,
                        java.lang.String alias)
Description copied from interface: SynonymCatalog
Indica si el alias pertenece a la base de datos.

Specified by:
contains in interface SynonymCatalog
Returns:
true si el alias pertenece a la base de datos, false si no.

getSynonym

public Synonym getSynonym(UserContext c,
                          java.lang.String alias)
Description copied from interface: SynonymCatalog
Devuelve el esquema real de la tabla.

Specified by:
getSynonym in interface SynonymCatalog
Parameters:
c - - el contexto de tabla, con aliasing.
Returns:
el sinonimo asociado al alias y al contexto de usuario.

dropSynonym

public void dropSynonym(TableContext c,
                        Synonym s)
Description copied from interface: SynonymCatalog
Elimina la relacion usuario-base de datos del catalogo.

Specified by:
dropSynonym in interface SynonymCatalog