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, setColumns
getColumnIdentifier, getColumnName, getIdentifier, getName, getQualifiedPath, getSchemaIdentifier, getSchemaName, getTable, getTableIdentifier, getTableName, isDeferred, setColumnIdentifier, setColumnName, setDeferred, setIdentifier, setName, setSchemaIdentifier, setSchemaName, setTableIdentifier, setTableName, toString
public Index()
@Deprecated 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()
Constraint
isLogical
in class Constraint
@Deprecated public String getFullName()
Constraint
getFullName
in class Constraint
public DBIdentifier getFullIdentifier()
getFullIdentifier
in class Constraint
public boolean equalsIndex(Index idx)
public int getRefCount()
public void ref()
public void deref()
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.