public interface CrudReadService extends Serializable
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)
Call this using the same parameters as in
find(java.lang.String, java.util.List, java.lang.Integer, java.lang.Integer, java.lang.Class)
to get to know the total number of results |
int |
countDynamic(List<Param> params,
Class type)
Call this using the same parameters as in findDynamic to get to know the total number of results
|
<T extends Serializable> |
find(Serializable id,
Class<T> type) |
<T extends Serializable> |
find(String namedQuery,
List<Param> params,
Integer first,
Integer max,
Class<T> type) |
<T extends Serializable> |
findAll(Class<T> type) |
<T extends Serializable> |
findDynamic(Integer first,
Integer pageSize,
Map<String,CrudReadService.SORTORDER> sort,
List<Param> params,
Class<T> type) |
<T extends Serializable> |
findNative(String namedNativeQuery,
List<Param> params,
Integer first,
Integer max,
Class<T> type) |
<T extends Serializable> |
findOne(String namedQuery,
List<Param> params,
Class<T> type)
return one result or null, multiple results throws an exception
|
int |
getDefaultPageSize()
Return a default page size when no max is given, negative value means no limit
|
int getDefaultPageSize()
<T extends Serializable> T find(Serializable id, Class<T> type)
<T extends Serializable> List<T> findAll(Class<T> type)
<T extends Serializable> List<T> findDynamic(Integer first, Integer pageSize, Map<String,CrudReadService.SORTORDER> sort, List<Param> params, Class<T> type)
T - first - defaults to 0pageSize - defaults to getDefaultPageSize()sort - params - type - int countDynamic(List<Param> params, Class type)
params - type - <T extends Serializable> List<T> find(String namedQuery, List<Param> params, Integer first, Integer max, Class<T> type)
T - namedQuery - params - first - defaults to 0pageSize - defaults to getDefaultPageSize()type - <T extends Serializable> List<T> findNative(String namedNativeQuery, List<Param> params, Integer first, Integer max, Class<T> type)
T - namedNativeQuery - params - first - defaults to 0pageSize - defaults to getDefaultPageSize()type - int count(String namedQuery, List<Param> params)
find(java.lang.String, java.util.List, java.lang.Integer, java.lang.Integer, java.lang.Class)
to get to know the total number of resultsnamedQuery - params - <T extends Serializable> T findOne(String namedQuery, List<Param> params, Class<T> type)
T - namedQuery - params - type - Copyright © 2018 Fryske Akademy. All rights reserved.