Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.sql.catalog
Class IndexInfoImpl  view IndexInfoImpl download IndexInfoImpl.java

java.lang.Object
  extended byorg.apache.derby.impl.sql.catalog.IndexInfoImpl

public class IndexInfoImpl
extends java.lang.Object

A poor mans structure used in DataDictionaryImpl.java. Used to save information about system indexes.


Field Summary
(package private)  int columnCount
           
(package private)  java.lang.String[] columnNames
           
(package private)  int[] columnPositions
           
(package private)  long conglomerateNumber
           
(package private)  org.apache.derby.iapi.sql.dictionary.IndexRowGenerator irg
           
(package private)  boolean isUnique
           
(package private)  java.lang.String name
           
 
Constructor Summary
(package private) IndexInfoImpl(long conglomerateNumber, java.lang.String indexName, int columnCount, boolean isUnique, int indexNumber, org.apache.derby.iapi.sql.dictionary.CatalogRowFactory crf)
          Constructor
 
Method Summary
 int getBaseColumnPosition(int colNumber)
          Get the base column position for a column within a catalog given the (0-based) column number for the column within the index.
 int getColumnCount()
          Get the column count for the index.
 long getConglomerateNumber()
          Get the conglomerate number for the index.
 java.lang.String getIndexName()
          Get the index name for the index.
 org.apache.derby.iapi.sql.dictionary.IndexRowGenerator getIndexRowGenerator()
          Get the IndexRowGenerator for this index.
 boolean isIndexUnique()
          Return whether or not this index is declared unique
 void setBaseColumnPosition(int colNumber, int baseColumnPosition)
          Set the base column position for a column within a catalog given the (0-based) column number for the column within the index.
 void setConglomerateNumber(long conglomerateNumber)
          Set the conglomerate number for the index.
 void setIndexName(java.lang.String indexName)
          Set the name for the index.
 void setIndexRowGenerator(org.apache.derby.iapi.sql.dictionary.IndexRowGenerator irg)
          Set the IndexRowGenerator for this index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isUnique

boolean isUnique

columnNames

java.lang.String[] columnNames

columnPositions

int[] columnPositions

irg

org.apache.derby.iapi.sql.dictionary.IndexRowGenerator irg

columnCount

int columnCount

conglomerateNumber

long conglomerateNumber

name

java.lang.String name
Constructor Detail

IndexInfoImpl

IndexInfoImpl(long conglomerateNumber,
              java.lang.String indexName,
              int columnCount,
              boolean isUnique,
              int indexNumber,
              org.apache.derby.iapi.sql.dictionary.CatalogRowFactory crf)
Constructor

Method Detail

getConglomerateNumber

public long getConglomerateNumber()
Get the conglomerate number for the index.


setConglomerateNumber

public void setConglomerateNumber(long conglomerateNumber)
Set the conglomerate number for the index.


getIndexName

public java.lang.String getIndexName()
Get the index name for the index.


setIndexName

public void setIndexName(java.lang.String indexName)
Set the name for the index.


getColumnCount

public int getColumnCount()
Get the column count for the index.


getIndexRowGenerator

public org.apache.derby.iapi.sql.dictionary.IndexRowGenerator getIndexRowGenerator()
Get the IndexRowGenerator for this index.


setIndexRowGenerator

public void setIndexRowGenerator(org.apache.derby.iapi.sql.dictionary.IndexRowGenerator irg)
Set the IndexRowGenerator for this index.


getBaseColumnPosition

public int getBaseColumnPosition(int colNumber)
Get the base column position for a column within a catalog given the (0-based) column number for the column within the index.


setBaseColumnPosition

public void setBaseColumnPosition(int colNumber,
                                  int baseColumnPosition)
Set the base column position for a column within a catalog given the (0-based) column number for the column within the index.


isIndexUnique

public boolean isIndexUnique()
Return whether or not this index is declared unique