protected static class EmptyInventory.SingleBase<E extends Entity<?,?>,Update> extends Object implements ResolvableToSingle<E,Update>
| Constructor and Description |
|---|
SingleBase(Class<E> entityType) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes the entity.
|
E |
entity()
Resolves the entity and returns it.
|
void |
update(Update update)
Updates the entity.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexistspublic E entity() throws EntityNotFoundException, RelationNotFoundException
ResolvableToSingleentity in interface ResolvableToSingle<E extends Entity<?,?>,Update>EntityNotFoundException - if there is no entity corresponding to the traversalRelationNotFoundException - if there is no relation corresponding to the traversalpublic void update(Update update) throws EntityNotFoundException, RelationNotFoundException
ResolvableToSingleupdate in interface ResolvableToSingle<E extends Entity<?,?>,Update>update - the update to be appliedEntityNotFoundException - 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 Entity<?,?>,Update>Copyright © 2015 Red Hat, Inc.. All rights reserved.