vishnu.model.catalog
Class AbstractCatalog

java.lang.Object
  extended by vishnu.model.catalog.AbstractCatalog
All Implemented Interfaces:
Catalog
Direct Known Subclasses:
ConstraintCatalogImpl, DatabaseCatalogImpl, IndexCatalogImpl, PrivilegesCatalogImpl, SynonymCatalogImpl, TableCatalogImpl, TableSignatureCatalogImpl, UserCatalogImpl

public abstract class AbstractCatalog
extends java.lang.Object
implements Catalog

Author:
Mariano
 

Field Summary
protected  RawTable catalog
           
protected static java.lang.String columnName
           
protected static java.lang.String databaseName
           
protected  Table innerTable
           
protected  java.lang.String name
           
protected static int nameFieldSize
           
protected  java.util.Collection<java.lang.String> pkSet
           
protected static java.lang.String tableName
           
protected  TableSignature tableSignature
           
protected static int userFieldSize
           
protected static java.lang.String userName
           
 
Constructor Summary
AbstractCatalog(User user, java.lang.String name)
           
 
Method Summary
protected abstract  void buildPK()
           
protected abstract  void buildSignature()
           
 void close()
          Cierra el catalogo.
 java.lang.String getName()
          Devuelve el nombre de la tabla del catalogo.
 TableSignature getSignature()
          Devuelve la signatura del catalogo.
protected  Table innerTable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

databaseName

protected static final java.lang.String databaseName
See Also:
Constant Field Values

tableName

protected static final java.lang.String tableName
See Also:
Constant Field Values

columnName

protected static final java.lang.String columnName
See Also:
Constant Field Values

userName

protected static final java.lang.String userName
See Also:
Constant Field Values

nameFieldSize

protected static final int nameFieldSize
See Also:
Constant Field Values

userFieldSize

protected static final int userFieldSize
See Also:
Constant Field Values

catalog

protected RawTable catalog

tableSignature

protected TableSignature tableSignature

name

protected java.lang.String name

pkSet

protected java.util.Collection<java.lang.String> pkSet

innerTable

protected Table innerTable
Constructor Detail

AbstractCatalog

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

innerTable

protected Table innerTable()

buildSignature

protected abstract void buildSignature()

buildPK

protected abstract void buildPK()

getSignature

public TableSignature getSignature()
Description copied from interface: Catalog
Devuelve la signatura del catalogo.

Specified by:
getSignature in interface Catalog
Returns:
la signatura del catalogo.

close

public void close()
Description copied from interface: Catalog
Cierra el catalogo.

Specified by:
close in interface Catalog

getName

public java.lang.String getName()
Description copied from interface: Catalog
Devuelve el nombre de la tabla del catalogo.

Specified by:
getName in interface Catalog
Returns:
el nombre de la tabla.