|
|||||||||
| 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 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(Column column)
Creates a new index column object. |
|
IndexColumn(String columnName)
Creates a new index column object. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
boolean |
equals(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. |
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 |
setColumn(Column column)
Sets the indexed column. |
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 |
|---|
protected String _name
protected String _size
| Constructor Detail |
|---|
public IndexColumn()
public IndexColumn(Column column)
column - The indexed columnpublic IndexColumn(String columnName)
columnName - The name of the corresponding table column| Method Detail |
|---|
public int getOrdinalPosition()
public void setOrdinalPosition(int position)
position - The positionpublic String getName()
public void setName(String name)
name - The namepublic Column getColumn()
public void setColumn(Column column)
column - The columnpublic String getSize()
public void setSize(String size)
size - The size
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic boolean equals(Object obj)
equals in class 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 Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||