| com.steerpath.sdk.domain.repository.Repository<T> |
Abstract Repository definition.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
add(List<T> items)
Add list of items to repository.
| ||||||||||
| abstract void |
add(T item)
Add item to Repository.
| ||||||||||
| abstract T | get(Specification query) | ||||||||||
| abstract int |
getSize()
Size of the Repository i.e how many items it contains.
| ||||||||||
| abstract void |
query(Specification query, QueryCallback<T> callback)
Asynchronous query.
| ||||||||||
| abstract List<T> |
query(Specification query)
Synchronous query.
| ||||||||||
| abstract void |
remove(T item)
Remove item from the Repository.
| ||||||||||
| abstract void |
update(T item)
Replace item in Repository.
| ||||||||||
Add list of items to repository.
Add item to Repository.
Size of the Repository i.e how many items it contains.
Remove item from the Repository.
Replace item in Repository.