- All Implemented Interfaces:
Serializable
, Cloneable
Represents a column of an index in the database model.
- See Also:
-
-
Field Summary
Fields
protected boolean
The size of the column in the index.
-
Constructor Summary
Constructors
Creates a new index column object.
Creates a new index column object.
Creates a new index column object.
-
Method Summary
boolean
boolean
Compares this index column to the given one while ignoring the case of identifiers.
Returns the indexed column.
Returns the name of the column.
int
Returns the position within the owning index.
Returns the size of the column in the index.
int
boolean
void
void
Sets the name of the column.
void
Sets the position within the owning index.
void
void
Sets the size of the column in the index.
-
Field Details
-
name
The name of the column.
-
size
The size of the column in the index.
-
primaryKey
protected boolean primaryKey
-
Constructor Details
-
IndexColumn
public IndexColumn()
Creates a new index column object.
-
IndexColumn
public IndexColumn(Column column)
Creates a new index column object.
- Parameters:
column
- The indexed column
-
IndexColumn
public IndexColumn(String columnName)
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
public void setName(String name)
Sets the name of the column.
- Parameters:
name
- The name
-
getColumn
Returns the indexed column.
- Returns:
- The column
-
setColumn
public void setColumn(Column column)
Sets the indexed column.
- Parameters:
column
- The column
-
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
-
setPrimaryKey
public void setPrimaryKey(boolean primaryKey)
-
isPrimaryKey
public boolean isPrimaryKey()
-
-
-
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
-
-