|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.query.AbstractQueryExecuterFactory net.sf.jasperreports.engine.query.JRJpaQueryExecuterFactory
public class JRJpaQueryExecuterFactory
Java Persistence API query executer factory for EJBQL queries.
The factory createsJRJpaQueryExecuter
query executers.
Field Summary | |
---|---|
static java.lang.String |
PARAMETER_JPA_ENTITY_MANAGER
Built-in parameter holding the value of the javax.persistence.EntityManager to be used for creating the query. |
static java.lang.String |
PARAMETER_JPA_QUERY_HINTS_MAP
Built-in parameter (optional) holding the value of the query hints map. |
static java.lang.String |
PROPERTY_JPA_QUERY_HINT_PREFIX
Property specifying the prefix for EJBQL query hints. |
static java.lang.String |
PROPERTY_JPA_QUERY_PAGE_SIZE
Property specifying the number of result rows to be retrieved at once. |
static java.lang.String |
QUERY_LANGUAGE_EJBQL
EJBQL query language. |
Fields inherited from interface net.sf.jasperreports.engine.query.QueryExecuterFactory |
---|
QUERY_EXECUTER_FACTORY_PREFIX |
Constructor Summary | |
---|---|
JRJpaQueryExecuterFactory()
|
Method Summary | |
---|---|
JRQueryExecuter |
createQueryExecuter(JasperReportsContext jasperReportsContext,
JRDataset dataset,
java.util.Map<java.lang.String,? extends JRValueParameter> parameters)
Creates a query executer. |
java.lang.Object[] |
getBuiltinParameters()
Returns the built-in parameters associated with this query type. |
boolean |
supportsQueryParameterType(java.lang.String className)
Returns true for all parameter types. |
Methods inherited from class net.sf.jasperreports.engine.query.AbstractQueryExecuterFactory |
---|
createQueryExecuter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String QUERY_LANGUAGE_EJBQL
public static final java.lang.String PARAMETER_JPA_ENTITY_MANAGER
javax.persistence.EntityManager
to be used for creating the query.
public static final java.lang.String PARAMETER_JPA_QUERY_HINTS_MAP
public static final java.lang.String PROPERTY_JPA_QUERY_PAGE_SIZE
javax.persistence.Query.setFirstResult()
and javax.persistence.Query.setMaxResults()
.
By default, all the rows are retrieved (no result pagination is performed).
public static final java.lang.String PROPERTY_JPA_QUERY_HINT_PREFIX
Constructor Detail |
---|
public JRJpaQueryExecuterFactory()
Method Detail |
---|
public java.lang.Object[] getBuiltinParameters()
QueryExecuterFactory
{"Param1", String.class, "Param2", "List.class"}
).
public JRQueryExecuter createQueryExecuter(JasperReportsContext jasperReportsContext, JRDataset dataset, java.util.Map<java.lang.String,? extends JRValueParameter> parameters) throws JRException
QueryExecuterFactory
jasperReportsContext
- the JasperReportsContextdataset
- the dataset containing the query, fields, etcparameters
- map of value parameters (instances of JRValueParameter
)
indexed by name
JRException
public boolean supportsQueryParameterType(java.lang.String className)
true
for all parameter types.
className
- the value class name of the parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |