Package org.minimalj.repository
Interface Repository
- All Known Subinterfaces:
TransactionalRepository
- All Known Implementing Classes:
SocketBackend.BackendRepository
,SqlRepository
public interface Repository
The common interface of all types of repositories. Note that specific implementations
can have more methods. See for example the
execute
methods in SqlRepository.
A repository may use an arbitrary class for id fields. But it must be able to handle
reads and finds with ids converted to a String.-
Field Summary
Fields Modifier and Type Field Description static java.util.logging.Logger
logger
-
Method Summary
Modifier and Type Method Description <T> long
count(java.lang.Class<T> clazz, Criteria criteria)
static Repository
create(Model model)
<T> int
delete(java.lang.Class<T> clazz, Criteria criteria)
<T> void
delete(T object)
<T> java.util.List<T>
find(java.lang.Class<T> clazz, Query query)
<T> java.lang.Object
insert(T object)
<T> T
read(java.lang.Class<T> clazz, java.lang.Object id)
<T> void
update(T object)