Class JpqlExecutionRequest
java.lang.Object
io.jmix.aitools.dataload.execution.JpqlExecutionRequest
Input for
JpqlExecutionService: a JPQL query together with everything needed to run it.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJpqlExecutionRequest(String userText, String jpql, List<JpqlExecutionParameter> parameters, @Nullable List<String> resultProperties, @Nullable Integer maxResults, @Nullable Integer firstResult) -
Method Summary
Modifier and TypeMethodDescription@Nullable IntegerReturns the requested row offset.getJpql()Returns the JPQL query to execute.@Nullable IntegerReturns the requested maximum number of rows.Returns the query parameters.Returns the properties to select for each result row.Returns the original user request in natural language.voidsetFirstResult(@Nullable Integer firstResult) voidvoidsetMaxResults(@Nullable Integer maxResults) voidsetParameters(@Nullable List<JpqlExecutionParameter> parameters) voidsetResultProperties(@Nullable List<String> resultProperties) voidsetUserText(String userText)
-
Field Details
-
userText
-
jpql
-
parameters
-
resultProperties
-
maxResults
-
firstResult
-
-
Constructor Details
-
JpqlExecutionRequest
public JpqlExecutionRequest() -
JpqlExecutionRequest
public JpqlExecutionRequest(String userText, String jpql, List<JpqlExecutionParameter> parameters, @Nullable List<String> resultProperties, @Nullable Integer maxResults, @Nullable Integer firstResult) - Parameters:
userText- original user request in natural languagejpql- JPQL query to executeparameters- query parametersresultProperties- properties to select, ornullfor nonemaxResults- maximum number of rows, ornullfor the configured defaultfirstResult- row offset, ornullfor no offset
-
-
Method Details
-
getUserText
Returns the original user request in natural language.- Returns:
- user request text
-
setUserText
-
getJpql
Returns the JPQL query to execute.- Returns:
- JPQL query
-
setJpql
-
getParameters
Returns the query parameters.- Returns:
- query parameters, never
null
-
setParameters
-
getResultProperties
Returns the properties to select for each result row.- Returns:
- result properties, never
null
-
setResultProperties
-
getMaxResults
Returns the requested maximum number of rows.- Returns:
- maximum number of rows, or
nullfor the configured default
-
setMaxResults
-
getFirstResult
Returns the requested row offset.- Returns:
- row offset, or
nullfor no offset
-
setFirstResult
-