public interface HasColumn extends Document, HasId, HasName
Document
implementations that reference another
Column
document and therefore has a findColumn()
method. If
a Document
implements this trait, it is also expected to implement
the HasName
trait.Modifier and Type | Method and Description |
---|---|
default Optional<? extends Column> |
findColumn()
Locates and returns the column referenced by the
HasId.getId()
method. |
default Column |
findColumnOrThrow()
Locates and returns the column referenced by the
HasId.getId() or throws
an Exception. |
static HasColumn |
of(Document document)
Returns a wrapper of the specified document that implements the
HasColumn trait. |
mainInterface
ancestors, children, children, get, getAsBoolean, getAsDouble, getAsInt, getAsLong, getAsString, getData, getParent, put
default Optional<? extends Column> findColumn()
HasId.getId()
method.
The column must reside as a child to the table that is an ancestor (i.g. a parent or a parent of a parent...) to this Document.
default Column findColumnOrThrow()
HasId.getId()
or throws
an Exception.
The column must reside as a child to the table that is an ancestor (i.g. a parent or a parent of a parent...) to this Document.
NoSuchElementException
- if no column existsCopyright © 2019 Speedment, Inc.. All rights reserved.