public static class SocketBackend.BackendRepository extends Object implements Repository
logger
Constructor and Description |
---|
BackendRepository() |
Modifier and Type | Method and Description |
---|---|
<T> long |
count(Class<T> clazz,
Criteria criteria) |
<T> int |
delete(Class<T> clazz,
Criteria criteria) |
<T> void |
delete(T object) |
<T> List<T> |
find(Class<T> clazz,
Query query) |
<T> Object |
insert(T object) |
<T> T |
read(Class<T> clazz,
Object id) |
<T> void |
update(T object) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public <T> T read(Class<T> clazz, Object id)
read
in interface Repository
public <T> List<T> find(Class<T> clazz, Query query)
find
in interface Repository
public <T> long count(Class<T> clazz, Criteria criteria)
count
in interface Repository
public <T> Object insert(T object)
insert
in interface Repository
public <T> void update(T object)
update
in interface Repository
public <T> void delete(T object)
delete
in interface Repository
public <T> int delete(Class<T> clazz, Criteria criteria)
delete
in interface Repository
Copyright © 2019. All rights reserved.