org.apache.turbine.torque.engine.database.model
Class Index

java.lang.Object
  |
  +--org.apache.turbine.torque.engine.database.model.Index

Deprecated. use turbine-torque

public class Index
extends java.lang.Object

A Class for information about indices of a table

Version:
$Id: Index.java,v 1.3 2002/02/26 22:15:43 fedor Exp $
Author:
Jason van Zyl

Field Summary
private  java.util.List indexColumns
          Deprecated.  
private  java.lang.String indexName
          Deprecated.  
private  boolean isUnique
          Deprecated.  
private  Table parentTable
          Deprecated.  
 
Constructor Summary
Index()
          Deprecated. Default Constructor
 
Method Summary
 void addColumn(org.xml.sax.AttributeList attrib)
          Deprecated. adds a new column to an index
 java.lang.String getIndexColumnList()
          Deprecated. Return a comma delimited string of the index columns
 java.util.List getIndexColumns()
          Deprecated. Return the vector of local columns.
 java.lang.String getIndexName()
          Deprecated. Get the name of the index
 boolean getIsUnique()
          Deprecated. Get unique attribute of the index
 Table getTable()
          Deprecated. Get the parent Table of the index
 java.lang.String getTableName()
          Deprecated. Returns the Name of the table the index is in
 void loadFromXML(org.xml.sax.AttributeList attrib)
          Deprecated. Imports index from an XML specification
private  java.lang.String makeColumnList(java.util.List cols)
          Deprecated. Creates a list of columns delimited by commas
 void setIndexName(java.lang.String indexName)
          Deprecated. Set the name of the index
 void setTable(Table parent)
          Deprecated. Set the parent Table of the index
 java.lang.String toString()
          Deprecated. String representation of the index.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

indexName

private java.lang.String indexName
Deprecated. 

parentTable

private Table parentTable
Deprecated. 

indexColumns

private java.util.List indexColumns
Deprecated. 

isUnique

private boolean isUnique
Deprecated. 
Constructor Detail

Index

public Index()
Deprecated. 
Default Constructor
Method Detail

loadFromXML

public void loadFromXML(org.xml.sax.AttributeList attrib)
Deprecated. 
Imports index from an XML specification

getIsUnique

public boolean getIsUnique()
Deprecated. 
Get unique attribute of the index

getIndexName

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

setIndexName

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

setTable

public void setTable(Table parent)
Deprecated. 
Set the parent Table of the index

getTable

public Table getTable()
Deprecated. 
Get the parent Table of the index

getTableName

public java.lang.String getTableName()
Deprecated. 
Returns the Name of the table the index is in

addColumn

public void addColumn(org.xml.sax.AttributeList attrib)
Deprecated. 
adds a new column to an index

makeColumnList

private java.lang.String makeColumnList(java.util.List cols)
Deprecated. 
Creates a list of columns delimited by commas

getIndexColumnList

public java.lang.String getIndexColumnList()
Deprecated. 
Return a comma delimited string of the index columns

getIndexColumns

public java.util.List getIndexColumns()
Deprecated. 
Return the vector of local columns. You should not edit this vector.

toString

public java.lang.String toString()
Deprecated. 
String representation of the index. This is an xml representation.
Overrides:
toString in class java.lang.Object


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.