addColumn function

Adds a column to the index.

Syntax
IndexSchema IndexSchema.addColumn(
  String column_name,
  byte sort_order
) throws ULjException
Parameters
  • column_name   The name of the column to add. The specified column must be a column of the table on which this index is being created.

  • sort_order   A constant determining the sort order. Must be IndexSchema.ASCENDING or IndexSchema.DESCENDING.

Remarks

The order that columns are added to the index determines the sorts precedence. The first column has highest precedence.

Returns

This IndexSchema with the added column.