public class DBExpressionIndex extends DBIndex
PRIMARYKEY, STANDARD, UNIQUE
Constructor and Description |
---|
DBExpressionIndex(String name,
boolean unique,
DBColumnExpr expr)
Constructs a DBExpresionIndex
|
DBExpressionIndex(String name,
boolean unique,
DBExpr... columnExpressions)
Constructs a DBExpresionIndex
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(DBColumn col)
Checks if this index contains the column col
|
int |
getColumnPos(DBColumn col)
Gets the position of a specified DBColumn object.
|
DBDatabase |
getDatabase()
Returns the database object to which this object belongs to.
|
DBExpr[] |
getExpressions()
Returns the columnExpressions belonging to this index.
|
getColumns, getFullName, getName, getTable, getType
public DBExpressionIndex(String name, boolean unique, DBExpr... columnExpressions)
name
- the index nameunique
- true if the index has only unique values or false otherwisecolumnExpressions
- an array of one or more column expressions of the indexpublic DBExpressionIndex(String name, boolean unique, DBColumnExpr expr)
name
- the index nameunique
- true if the index has only unique values or false otherwiseexpr
- an column expressions that defines the key values for the indexpublic DBDatabase getDatabase()
DBObject
getDatabase
in class DBIndex
public DBExpr[] getExpressions()
getExpressions
in class DBIndex
public boolean contains(DBColumn col)
public int getColumnPos(DBColumn col)
getColumnPos
in class DBIndex
col
- the columnCopyright © 2008–2017 Apache Software Foundation. All rights reserved.