RETURN
- type of return value. (should extend Serializable, but thats
not enforced by 'extends Serializable' because signatures of methods
get complicated by that and Void-Transactions would not be possible
because Void is not Serializable!)@FunctionalInterface public interface Transaction<RETURN> extends Serializable
Modifier and Type | Method and Description |
---|---|
default <T> long |
count(Class<T> clazz,
Criteria criteria) |
default <T> void |
delete(Class<T> clazz,
Criteria criteria) |
RETURN |
execute()
The invocation method for the backend.
|
default <T> List<T> |
find(Class<T> clazz,
Query query) |
default <T> Object |
insert(T object) |
default <T> T |
read(Class<T> clazz,
Object id) |
default Repository |
repository() |
default <T> void |
update(T object) |
RETURN execute()
default Repository repository()
default <T> Object insert(T object)
default <T> void update(T object)
Copyright © 2019. All rights reserved.