public interface CrudReadService
CrudReadService.SORTORDER,
Param| Modifier and Type | Interface and Description |
|---|---|
static class |
CrudReadService.SORTORDER |
| Modifier and Type | Method and Description |
|---|---|
int |
count(String namedQuery,
List<Param> params)
|
int |
countDynamic(List<Param> params,
Class type) |
<T extends EntityInterface> |
find(Serializable id,
Class<T> type) |
<T extends EntityInterface> |
find(String namedQuery,
List<Param> params,
Integer first,
Integer max,
Class<T> type) |
<T extends EntityInterface> |
findAll(Class<T> type) |
<T extends EntityInterface> |
findDynamic(Integer first,
Integer pageSize,
Map<String,CrudReadService.SORTORDER> sort,
List<Param> params,
Class<T> type) |
<T extends EntityInterface> |
findNative(String namedNativeQuery,
List<Param> params,
Integer first,
Integer max,
Class<T> type) |
<T extends EntityInterface> |
findOne(String namedQuery,
List<Param> params,
Class<T> type)
return one result or null, multiple results throws an exception
|
<T extends EntityInterface> |
getRevision(Number n,
Class<T> type)
get historical data for a certain revision
|
<T extends EntityInterface> |
getRevisionInfo(T entity,
Integer max,
Class<T> type)
return a list holding revision information, newest come first
|
<T extends EntityInterface> |
getRevisionNumbers(Object id,
Class<T> type)
return list of revision numbers, first is the oldest
|
<T extends EntityInterface> T find(Serializable id, Class<T> type)
<T extends EntityInterface> List<T> findAll(Class<T> type)
<T extends EntityInterface> List<T> findDynamic(Integer first, Integer pageSize, Map<String,CrudReadService.SORTORDER> sort, List<Param> params, Class<T> type)
<T extends EntityInterface> List<T> find(String namedQuery, List<Param> params, Integer first, Integer max, Class<T> type)
<T extends EntityInterface> List<T> findNative(String namedNativeQuery, List<Param> params, Integer first, Integer max, Class<T> type)
int count(String namedQuery, List<Param> params)
find(java.lang.String, java.util.List, java.lang.Integer, java.lang.Integer, java.lang.Class) or
findNative(java.lang.String, java.util.List, java.lang.Integer, java.lang.Integer, java.lang.Class).namedQuery - params - <T extends EntityInterface> T findOne(String namedQuery, List<Param> params, Class<T> type)
T - namedQuery - params - type - <T extends EntityInterface> List<Number> getRevisionNumbers(Object id, Class<T> type)
id - <T extends EntityInterface> T getRevision(Number n, Class<T> type)
T - n - type - <T extends EntityInterface> List<RevInfo<T>> getRevisionInfo(T entity, Integer max, Class<T> type)
T - entity - max - the maximum to number of results to return, defaults to 5type - Copyright © 2018 Fryske Akademy. All rights reserved.