public interface Index extends Document, HasParent<Table>, HasDeepCopy, 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 | Method and Description |
---|---|
default Index |
deepCopy()
Returns a mutable copy of this document.
|
Stream<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
default boolean isUnique()
UNIQUE
index.
This property is editable in the GUI through reflection.
true
if this index is UNIQUE
Stream<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>>
default Index deepCopy()
HasDeepCopy
deepCopy
in interface HasDeepCopy
Copyright © 2019 Speedment, Inc.. All rights reserved.