public interface DataBaseRestServiceTemplate<T,ID extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
com.gwtplatform.dispatch.rest.shared.RestAction<Void> |
delete(ID pid)
Deletes the entity with the given id.
|
com.gwtplatform.dispatch.rest.shared.RestAction<Void> |
deleteAll()
Deletes all entities managed by the repository.
|
com.gwtplatform.dispatch.rest.shared.RestAction<Iterable<T>> |
findAll()
Returns all instances of the type.
|
com.gwtplatform.dispatch.rest.shared.RestAction<T> |
findOne(ID pid)
Retrieves an entity by its id.
|
com.gwtplatform.dispatch.rest.shared.RestAction<Iterable<T>> |
save(Iterable<T> pentities)
Saves all given entities.
|
com.gwtplatform.dispatch.rest.shared.RestAction<T> |
save(T pentity)
Saves a given entity.
|
com.gwtplatform.dispatch.rest.shared.RestAction<T> save(T pentity)
pentity - to savecom.gwtplatform.dispatch.rest.shared.RestAction<Iterable<T>> save(Iterable<T> pentities)
pentities - list of entities to saveIllegalArgumentException - in case the given entity is null.com.gwtplatform.dispatch.rest.shared.RestAction<T> findOne(ID pid)
pid - must not be null.IllegalArgumentException - if id is nullcom.gwtplatform.dispatch.rest.shared.RestAction<Iterable<T>> findAll()
com.gwtplatform.dispatch.rest.shared.RestAction<Void> delete(ID pid)
pid - must not be null.IllegalArgumentException - in case the given id is nullcom.gwtplatform.dispatch.rest.shared.RestAction<Void> deleteAll()
Copyright © 2015–2018. All rights reserved.