public class DBExpressionIndex extends DBIndex
DBIndex.DBIndexType
Constructor and Description |
---|
DBExpressionIndex(String name,
boolean unique,
DBExpr... columnExpressions)
Constructs a DBExpresionIndex
Overload for convenience
|
DBExpressionIndex(String name,
DBIndex.DBIndexType type,
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.
|
compareColumns, getColumn, getColumnCount, getColumns, getFullName, getName, getTable, getType
checkParamNull
public DBExpressionIndex(String name, DBIndex.DBIndexType type, DBExpr... columnExpressions)
name
- the index nametype
- the index typecolumnExpressions
- an array of one or more column expressions of the indexpublic final 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–2023 Apache Software Foundation. All rights reserved.