public class DBIndex extends DBObject
| Modifier and Type | Field and Description |
|---|---|
static int |
PRIMARYKEY
SQL Primary key index
|
static int |
STANDARD
SQL Standard index
|
static int |
UNIQUE
SQL Unique index
|
| Constructor and Description |
|---|
DBIndex(String name,
int type,
DBColumn[] columns)
Constructs a DBIndex object set the specified parameters to this object.
|
| 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.
|
DBColumn[] |
getColumns()
Returns the columns belonging to this index.
|
DBDatabase |
getDatabase()
Returns the database object to which this object belongs to.
|
DBExpr[] |
getExpressions()
Returns the columnExpressions belonging to this index.
|
String |
getFullName()
Returns the full qualified table name.
|
String |
getName()
Returns the primary key name.
|
DBTable |
getTable()
returns the table this index belongs to.
|
int |
getType()
Returns the index type.
|
public static final int STANDARD
public static final int UNIQUE
public static final int PRIMARYKEY
public DBTable getTable()
public DBDatabase getDatabase()
DBObjectgetDatabase in class DBObjectpublic String getName()
public DBColumn[] getColumns()
public DBExpr[] getExpressions()
public String getFullName()
public int getType()
PRIMARYKEY, UNIQUE, STANDARD)public boolean contains(DBColumn col)
col - the columnpublic int getColumnPos(DBColumn col)
col - the columnCopyright © 2008–2018 Apache Software Foundation. All rights reserved.