org.apache.ddlutils.model
Class IndexColumn

java.lang.Object
  extended byorg.apache.ddlutils.model.IndexColumn
All Implemented Interfaces:
Cloneable, Serializable

public class IndexColumn
extends Object
implements Cloneable, Serializable

Represents a column of an index in the database model.

Version:
$Revision: 365443 $
Author:
Thomas Dudziak
See Also:
Serialized Form

Field Summary
protected  String _name
          The name of the column.
protected  String _size
          The size of the column in the index.
 
Constructor Summary
IndexColumn()
          Creates a new index column object.
IndexColumn(String columnName)
          Creates a new index column object.
 
Method Summary
 Object clone()
          
 boolean equals(Object obj)
          
 String getName()
          Returns the name of the column.
 int getOrdinalPosition()
          Returns the position within the owning index.
 String getSize()
          Returns the size of the column in the index.
 int hashCode()
          
 void setName(String name)
          Sets the name of the column.
 void setOrdinalPosition(int position)
          Sets the position within the owning index.
 void setSize(String size)
          Sets the size of the column in the index.
 String toString()
          
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_name

protected String _name
The name of the column.


_size

protected String _size
The size of the column in the index.

Constructor Detail

IndexColumn

public IndexColumn()
Creates a new index column object.


IndexColumn

public IndexColumn(String columnName)
Creates a new index column object.

Parameters:
columnName - The name of the corresponding table column
Method Detail

getOrdinalPosition

public int getOrdinalPosition()
Returns the position within the owning index.

Returns:
The position

setOrdinalPosition

public void setOrdinalPosition(int position)
Sets the position within the owning index. Please note that you should not change the value once the column has been added to a index.

Parameters:
position - The position

getName

public String getName()
Returns the name of the column.

Returns:
The name

setName

public void setName(String name)
Sets the name of the column.

Parameters:
name - The name

getSize

public String getSize()
Returns the size of the column in the index.

Returns:
The size

setSize

public void setSize(String size)
Sets the size of the column in the index.

Parameters:
size - The size

clone

public Object clone()
             throws CloneNotSupportedException

Throws:
CloneNotSupportedException

equals

public boolean equals(Object obj)


hashCode

public int hashCode()


toString

public String toString()



Copyright © 2005 Apache Software Foundation. All Rights Reserved.