public class Index extends LocalConstraint
DatabaseMetaData.| Constructor and Description |
|---|
Index()
Default constructor.
|
Index(DBIdentifier name,
Table table) |
Index(String name,
Table table)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deref() |
boolean |
equalsIndex(Index idx)
Indexes are equal if they have the same name, the same columns, and
are both unique/not unique.
|
DBIdentifier |
getFullIdentifier() |
String |
getFullName()
Deprecated.
|
int |
getRefCount() |
boolean |
isLogical()
Return whether this constraint is a logical constraint only; i.e.
|
boolean |
isUnique()
Return true if this is a UNIQUE index.
|
void |
ref() |
void |
setUnique(boolean unique)
Set whether this is a UNIQUE index.
|
addColumn, columnsMatch, containsColumn, derefColumns, equalsLocalConstraint, getColumns, refColumns, removeColumn, setColumnsgetColumnIdentifier, getColumnName, getIdentifier, getName, getQualifiedPath, getSchemaIdentifier, getSchemaName, getTable, getTableIdentifier, getTableName, isDeferred, setColumnIdentifier, setColumnName, setDeferred, setIdentifier, setName, setSchemaIdentifier, setSchemaName, setTableIdentifier, setTableName, toStringpublic Index()
public Index(String name, Table table)
name - the name of the indextable - the table of the indexpublic Index(DBIdentifier name, Table table)
public boolean isUnique()
public void setUnique(boolean unique)
public boolean isLogical()
ConstraintisLogical in class Constraintpublic String getFullName()
ConstraintgetFullName in class Constraintpublic DBIdentifier getFullIdentifier()
getFullIdentifier in class Constraintpublic boolean equalsIndex(Index idx)
public int getRefCount()
public void ref()
public void deref()
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.