org.glite.rgma
Class Index

java.lang.Object
  extended byorg.glite.rgma.Index

public class Index
extends java.lang.Object

An index on a table.


Constructor Summary
Index(java.lang.String indexName, java.util.List columnNames)
          Creates a new Index object.
 
Method Summary
 java.lang.String getColumnName(int columnNumber)
          Returns the name of the given column used by this index.
 java.util.List getColumnNames()
          Returns the List of column names used by this index.
 java.lang.String getIndexName()
          Gets the name of this index.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Index

public Index(java.lang.String indexName,
             java.util.List columnNames)
Creates a new Index object.

Parameters:
indexName - Name of index.
columnNames - List of column names in index (String objects).
Method Detail

getColumnNames

public java.util.List getColumnNames()
Returns the List of column names used by this index.

Returns:
List of column names.

getColumnName

public java.lang.String getColumnName(int columnNumber)
Returns the name of the given column used by this index.

Parameters:
columnNumber - Number of the column (0..numColumns-1)
Returns:
Name associated with the given column number.

getIndexName

public java.lang.String getIndexName()
Gets the name of this index.

Returns:
This index name.

toString

public java.lang.String toString()
Returns a string representation of the object.

Returns:
A string representation of the object.
See Also:
Object.toString()