T
- Type of an entityID
- Type of Identifier of an entity@Deprecated public interface ResourceRepository<T,ID extends java.io.Serializable> extends Repository
Modifier and Type | Method and Description |
---|---|
void |
delete(ID id)
Deprecated.
Removes a document identified by id legacy.
|
java.lang.Iterable<T> |
findAll(java.lang.Iterable<ID> ids,
QueryParams queryParams)
Deprecated.
Search for resources constrained by a list of identifiers.
|
java.lang.Iterable<T> |
findAll(QueryParams queryParams)
Deprecated.
Search for all of the resources.
|
T |
findOne(ID id,
QueryParams queryParams)
Deprecated.
Search one document with a given ID.
|
<S extends T> |
save(S entity)
Deprecated.
Saves a document.
|
T findOne(ID id, QueryParams queryParams)
ResourceNotFoundException
exception should be thrown.id
- an identifier of the documentqueryParams
- parameters sent along with the requestjava.lang.Iterable<T> findAll(QueryParams queryParams)
QueryParams
can be used if necessary. If no
resources can be found, an empty Iterable
or null must be returned.queryParams
- parameters send with the requestjava.lang.Iterable<T> findAll(java.lang.Iterable<ID> ids, QueryParams queryParams)
QueryParams
can be used if
necessary. If no resources can be found, an empty Iterable
or null must be returned.ids
- an Iterable
of passed document identifiersqueryParams
- parameters send with the request<S extends T> S save(S entity)
S
- type of the documententity
- document to be savedvoid delete(ID id)
id
- identified of the document to be removed