public interface OrderRepository
| Modifier and Type | Method and Description |
|---|---|
long |
count()
Returns the number of entities available.
|
void |
delete(Long id)
Deletes the entity with the given id.
|
void |
delete(Order entity)
Deletes a given entity.
|
void |
deleteAll()
Deletes all entities managed by the repository.
|
boolean |
exists(Long id)
Returns whether an entity with the given id exists.
|
Map<Long,Order> |
findAll()
Returns all instances of the type.
|
Order |
findOne(Long id)
Retrieves an entity by its id.
|
<S extends Order> |
save(S entity)
Saves a given entity.
|
<S extends Order> S save(S entity)
S - generic typeentity - that is savedOrder findOne(Long id)
id - must not be null.IllegalArgumentException - if id is nullboolean exists(Long id)
id - must not be null.IllegalArgumentException - if id is nulllong count()
void delete(Long id)
id - must not be null.IllegalArgumentException - in case the given id is nullvoid delete(Order entity)
entity - order entityIllegalArgumentException - in case the given entity is null.void deleteAll()
Copyright © 2020. All rights reserved.