Class IndexColumn
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.model.IndexColumn
- All Implemented Interfaces:
Serializable
,Cloneable
Represents a column of an index in the database model.
- Version:
- $Revision: 504014 $
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new index column object.IndexColumn
(Column column) Creates a new index column object.IndexColumn
(String columnName) Creates a new index column object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
boolean
equalsIgnoreCase
(IndexColumn other) Compares this index column to the given one while ignoring the case of identifiers.Returns the indexed column.getName()
Returns the name of the column.int
Returns the position within the owning index.getSize()
Returns the size of the column in the index.int
hashCode()
void
Sets the indexed column.void
Sets the name of the column.void
setOrdinalPosition
(int position) Sets the position within the owning index.void
Sets the size of the column in the index.toString()
-
Field Details
-
_name
The name of the column. -
_size
The size of the column in the index.
-
-
Constructor Details
-
IndexColumn
public IndexColumn()Creates a new index column object. -
IndexColumn
Creates a new index column object.- Parameters:
column
- The indexed column
-
IndexColumn
Creates a new index column object.- Parameters:
columnName
- The name of the corresponding table column
-
-
Method Details
-
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
Returns the name of the column.- Returns:
- The name
-
setName
Sets the name of the column.- Parameters:
name
- The name
-
getColumn
Returns the indexed column.- Returns:
- The column
-
setColumn
Sets the indexed column.- Parameters:
column
- The column
-
getSize
Returns the size of the column in the index.- Returns:
- The size
-
setSize
Sets the size of the column in the index.- Parameters:
size
- The size
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
equals
-
equalsIgnoreCase
Compares this index column to the given one while ignoring the case of identifiers.- Parameters:
other
- The other index column- Returns:
true
if this index column is equal (ignoring case) to the given one
-
hashCode
public int hashCode() -
toString
-