public static class BaseResources.Single<BE> extends Traversal<BE,E> implements Resources.Single
| Constructor and Description |
|---|
Single(TraversalContext<BE,Resource> context) |
| Modifier and Type | Method and Description |
|---|---|
Resources.ReadAssociate |
allChildren()
Access to all children.
|
Resources.ReadWrite |
containedChildren() |
void |
delete()
Deletes the entity.
|
Page<E> |
entities(Pager pager) |
E |
entity()
Resolves the entity and returns it.
|
Metrics.ReadAssociate |
metrics() |
Resources.Single |
parent() |
Resources.Read |
parents() |
Relationships.ReadWrite |
relationships() |
Relationships.ReadWrite |
relationships(Relationships.Direction direction) |
void |
update(U u)
Updates the entity.
|
getSingle, isApplicable, mutating, readOnlyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, entity, exists, updaterelationships, relationshipsanyExists, entitiespublic Single(TraversalContext<BE,Resource> context)
public Metrics.ReadAssociate metrics()
public Resources.ReadAssociate allChildren()
Relationships.WellKnown.isParentOf there also exists the
Relationships.WellKnown.contains relationship) cannot be disassociated
using this interface.containedChildren(), also
includes the resources bound merely by
Relationships.WellKnown.isParentOf).public Resources.ReadWrite containedChildren()
public Resources.Single parent()
parent in interface Resources.Singlepublic Resources.Read parents()
public Relationships.ReadWrite relationships()
public Relationships.ReadWrite relationships(Relationships.Direction direction)
public E entity()
throws EntityNotFoundException,
RelationNotFoundException
ResolvableToSingleentity in interface ResolvableToSingle<E extends AbstractElement<?,U>,U extends AbstractElement.Update>EntityNotFoundException - if there is no entity corresponding to the traversalRelationNotFoundException - if there is no relation corresponding to the traversalpublic void delete()
ResolvableToSingledelete in interface ResolvableToSingle<E extends AbstractElement<?,U>,U extends AbstractElement.Update>public void update(U u)
throws EntityNotFoundException,
RelationNotFoundException
ResolvableToSingleupdate in interface ResolvableToSingle<E extends AbstractElement<?,U>,U extends AbstractElement.Update>u - the update to be appliedEntityNotFoundException - if there is no entity corresponding to the traversalRelationNotFoundException - if there is no relation corresponding to the traversalpublic Page<E> entities(Pager pager)
entities in interface ResolvableToMany<E extends AbstractElement<?,U>>pager - the pager object describing the subset of the entities to returnCopyright © 2015 Red Hat, Inc.. All rights reserved.