|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ddlutils.model.IndexColumn
public class IndexColumn
Represents a column of an index in the database model.
| Field Summary | |
|---|---|
protected java.lang.String |
_name
The name of the column. |
protected java.lang.String |
_size
The size of the column in the index. |
| Constructor Summary | |
|---|---|
IndexColumn()
Creates a new index column object. |
|
IndexColumn(Column column)
Creates a new index column object. |
|
IndexColumn(java.lang.String columnName)
Creates a new index column object. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
boolean |
equalsIgnoreCase(IndexColumn other)
Compares this index column to the given one while ignoring the case of identifiers. |
Column |
getColumn()
Returns the indexed column. |
java.lang.String |
getName()
Returns the name of the column. |
int |
getOrdinalPosition()
Returns the position within the owning index. |
java.lang.String |
getSize()
Returns the size of the column in the index. |
int |
hashCode()
|
void |
setColumn(Column column)
Sets the indexed column. |
void |
setName(java.lang.String name)
Sets the name of the column. |
void |
setOrdinalPosition(int position)
Sets the position within the owning index. |
void |
setSize(java.lang.String size)
Sets the size of the column in the index. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String _name
protected java.lang.String _size
| Constructor Detail |
|---|
public IndexColumn()
public IndexColumn(Column column)
column - The indexed columnpublic IndexColumn(java.lang.String columnName)
columnName - The name of the corresponding table column| Method Detail |
|---|
public int getOrdinalPosition()
public void setOrdinalPosition(int position)
position - The positionpublic java.lang.String getName()
public void setName(java.lang.String name)
name - The namepublic Column getColumn()
public void setColumn(Column column)
column - The columnpublic java.lang.String getSize()
public void setSize(java.lang.String size)
size - The size
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean equalsIgnoreCase(IndexColumn other)
other - The other index column
true if this index column is equal (ignoring case) to the given onepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||