| Package | Description |
|---|---|
| org.fryske_akademy.jpa |
Interfaces classes to support working with entities, most notably an entity interface, a Param class with support
for syntax in values and value conversion and a JpqlBuilder that facilitates building (dynamic) queries.
|
| org.fryske_akademy.services |
This package contains interfaces and base classes for the development of crud (EJB/CDI) beans.
|
| Modifier and Type | Method and Description |
|---|---|
List<Param> |
Param.Builder.build()
usefull if for example you need to add parameters yielded by a diffently configured builder
|
static List<Param> |
Param.one(String key,
Object value)
|
static List<Param> |
Param.one(String propertyPath,
String key,
Object value)
|
static List<Param> |
Param.one(String propertyPath,
String key,
Object value,
boolean syntaxSupport,
Param.Builder.WildcardMapping wildcardMapping,
boolean caseInsensitive)
|
static List<Param> |
Param.one(String key,
String value,
com.vectorprint.StringConverter converter)
|
| Modifier and Type | Method and Description |
|---|---|
void |
JpqlBuilderImpl.setParam(javax.persistence.Query q,
Param param)
Fills parameters prepared in
JpqlBuilderImpl.setWhereParams(javax.persistence.Query, java.util.List), if the type of the field in the query is a Short or an Integer and the
paramValue is a String, it is converted accordingly. |
void |
JpqlBuilder.setParam(javax.persistence.Query q,
Param param)
Set the value of a jpql parameter prepared in
JpqlBuilder.whereCondition(Param) |
String |
JpqlBuilderImpl.whereCondition(Param param)
builds a where condition, prepares query parameters later filled in
JpqlBuilderImpl.setWhereParams(javax.persistence.Query, java.util.List). |
String |
JpqlBuilder.whereCondition(Param param)
builds a where condition
|
| Modifier and Type | Method and Description |
|---|---|
void |
Param.Builder.addParam(List<Param> p) |
void |
JpqlBuilderImpl.setWhereParams(javax.persistence.Query q,
List<Param> params)
Calls
JpqlBuilderImpl.setParam(Query, Param) for each filter. |
void |
JpqlBuilder.setWhereParams(javax.persistence.Query q,
List<Param> params)
Fills parameters created in
JpqlBuilder.whereCondition(Param) |
String |
JpqlBuilderImpl.whereClause(List<Param> params)
builds a where clause, calls
JpqlBuilderImpl.whereCondition(Param)
for every entry. |
String |
JpqlBuilder.whereClause(List<Param> params)
builds a where clause
|
| Modifier and Type | Method and Description |
|---|---|
int |
AbstractCrudService.count(String namedQuery,
List<Param> params) |
int |
CrudReadService.count(String namedQuery,
List<Param> params)
Call this using the same parameters as in
CrudReadService.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 |
AbstractCrudService.countDynamic(List<Param> params,
Class type) |
int |
CrudReadService.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> List<T> |
AbstractCrudService.find(String namedQuery,
List<Param> params,
Integer first,
Integer max,
Class<T> type) |
<T> List<T> |
CrudReadService.find(String namedQuery,
List<Param> params,
Integer first,
Integer max,
Class<T> type) |
<T> List<T> |
AbstractCrudService.findDynamic(Integer first,
Integer max,
Map<String,CrudReadService.SORTORDER> sort,
List<Param> params,
Class<T> type) |
<T> List<T> |
CrudReadService.findDynamic(Integer first,
Integer max,
Map<String,CrudReadService.SORTORDER> sort,
List<Param> params,
Class<T> type) |
<T> List<T> |
AbstractCrudService.findNative(String namedNativeQuery,
List<Param> params,
Integer first,
Integer max,
Class<T> type) |
<T> List<T> |
CrudReadService.findNative(String namedNativeQuery,
List<Param> params,
Integer first,
Integer max,
Class<T> type) |
<T> T |
AbstractCrudService.findOne(String namedQuery,
List<Param> params,
Class<T> type) |
<T> T |
CrudReadService.findOne(String namedQuery,
List<Param> params,
Class<T> type)
return one result or null, multiple results throws an exception
|
<T> Stream<T> |
AbstractCrudService.stream(String namedQuery,
List<Param> params,
Integer first,
Integer max,
Class<T> type) |
<T> Stream<T> |
CrudReadService.stream(String namedQuery,
List<Param> params,
Integer first,
Integer max,
Class<T> type) |
<T> Stream<T> |
AbstractCrudService.streamDynamic(Integer first,
Integer max,
Map<String,CrudReadService.SORTORDER> sort,
List<Param> params,
Class<T> type) |
<T> Stream<T> |
CrudReadService.streamDynamic(Integer first,
Integer max,
Map<String,CrudReadService.SORTORDER> sort,
List<Param> params,
Class<T> type) |
<T> Stream<T> |
AbstractCrudService.streamNative(String namedNativeQuery,
List<Param> params,
Integer first,
Integer max,
Class<T> type) |
<T> Stream<T> |
CrudReadService.streamNative(String namedNativeQuery,
List<Param> params,
Integer first,
Integer max,
Class<T> type) |
Copyright © 2018–2019 Fryske Akademy. All rights reserved.