public interface Index extends Document, HasParent<Table>, HasEnabled, HasId, HasName, HasChildren, HasMainInterface, HasMutator<IndexMutator<? extends Index>>
Document
that represents an index instance in the database.
An Index
is located inside a Table
and can have
multiple IndexColumns
as children.Modifier and Type | Field and Description |
---|---|
static String |
INDEX_COLUMNS |
static String |
UNIQUE |
ENABLED, ENABLED_DEFAULT
Modifier and Type | Method and Description |
---|---|
Stream<? extends IndexColumn> |
indexColumns()
Creates a stream of index columns located in this document.
|
default boolean |
isUnique()
Returns whether or not this index is an
UNIQUE index. |
default Class<Index> |
mainInterface()
Returns the
Class of the interface of this node. |
default IndexMutator<? extends Index> |
mutator()
Returns a
DocumentMutator for this Document. |
getParent, getParentOrThrow
isEnabled, of, test
ancestors, children, children, get, getAsBoolean, getAsDouble, getAsInt, getAsLong, getAsString, getData, put
defaultNameFor
static final String UNIQUE
static final String INDEX_COLUMNS
default boolean isUnique()
UNIQUE
index.
This property is editable in the GUI through reflection.
true
if this index is UNIQUE
Stream<? extends IndexColumn> indexColumns()
default Class<Index> mainInterface()
HasMainInterface
Class
of the interface of this node.
This should not be overridden by implementing classes!
mainInterface
in interface HasMainInterface
default IndexMutator<? extends Index> mutator()
HasMutator
DocumentMutator
for this Document. A DocumentMutator
allows a Document to be updated in a type safe way.mutator
in interface HasMutator<IndexMutator<? extends Index>>
Copyright © 2017 Speedment, Inc.. All rights reserved.