@Component(value="cuba_DataServiceQueryBuilder")
@Scope(value="prototype")
public class DataServiceQueryBuilder
extends java.lang.Object
Query
instance to use in DataService.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Constructor and Description |
---|
DataServiceQueryBuilder() |
Modifier and Type | Method and Description |
---|---|
Query |
getQuery(EntityManager em) |
void |
init(java.lang.String queryString,
java.util.Map<java.lang.String,java.lang.Object> queryParams,
java.lang.String[] noConversionParams,
java.lang.Object id,
java.lang.String entityName) |
static java.lang.String |
printQuery(java.lang.String query) |
void |
restrictByPreviousResults(java.util.UUID sessionId,
int queryKey) |
void |
setSingleResult(boolean singleResult) |
public static final java.lang.String NAME
public void init(@Nullable java.lang.String queryString, java.util.Map<java.lang.String,java.lang.Object> queryParams, java.lang.String[] noConversionParams, @Nullable java.lang.Object id, java.lang.String entityName)
public void setSingleResult(boolean singleResult)
public void restrictByPreviousResults(java.util.UUID sessionId, int queryKey)
public Query getQuery(EntityManager em)
public static java.lang.String printQuery(java.lang.String query)