public class IndexColumn extends Object
Modifier and Type | Field and Description |
---|---|
Column |
column
The column, or null if not set.
|
String |
columnName
The column name.
|
int |
sortType
The sort type.
|
Constructor and Description |
---|
IndexColumn() |
Modifier and Type | Method and Description |
---|---|
String |
getSQL()
Get the SQL snippet for this index column.
|
static void |
mapColumns(IndexColumn[] indexColumns,
Table table)
Map the columns using the column names and the specified table.
|
static IndexColumn[] |
wrap(Column[] columns)
Create an array of index columns from a list of columns.
|
public String columnName
public Column column
public int sortType
public String getSQL()
public static IndexColumn[] wrap(Column[] columns)
columns
- the column listpublic static void mapColumns(IndexColumn[] indexColumns, Table table)
indexColumns
- the column list with column names settable
- the table from where to map the column names to columnsCopyright © 2012 JBoss by Red Hat. All Rights Reserved.