vishnu.model.catalog
Class SynonymCatalogImpl
java.lang.Object
vishnu.model.catalog.AbstractCatalog
vishnu.model.catalog.SynonymCatalogImpl
- All Implemented Interfaces:
- Catalog, SynonymCatalog
public class SynonymCatalogImpl
- extends AbstractCatalog
- implements SynonymCatalog
-
Fields inherited from class vishnu.model.catalog.AbstractCatalog |
catalog, columnName, databaseName, innerTable, name, nameFieldSize, pkSet, tableName, tableSignature, userFieldSize, userName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SynonymCatalogImpl
public SynonymCatalogImpl(User user,
java.lang.String name)
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