@java.lang.SuppressWarnings({"rawtypes", "unchecked"}) public class JpaQueryBuilder extends java.lang.Object
Builds JPA 1.0 String-based queries from the Query model
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
DELETE_CLAUSE |
|
static java.lang.String |
LOGICAL_AND |
|
static java.lang.String |
LOGICAL_OR |
|
static java.lang.String |
NOT_CLAUSE |
|
static java.lang.String |
PARAMETER_NAME_PREFIX |
|
static java.lang.String |
UPDATE_CLAUSE |
Constructor and description |
---|
JpaQueryBuilder(QueryableCriteria criteria) |
JpaQueryBuilder(PersistentEntity entity, java.util.List<Query.Criterion> criteria) |
JpaQueryBuilder(PersistentEntity entity, java.util.List<Query.Criterion> criteria, ProjectionList projectionList) |
JpaQueryBuilder(PersistentEntity entity, java.util.List<Query.Criterion> criteria, ProjectionList projectionList, java.util.List<Query.Order> orders) |
JpaQueryBuilder(PersistentEntity entity, Junction criteria) |
JpaQueryBuilder(PersistentEntity entity, Junction criteria, ProjectionList projectionList) |
JpaQueryBuilder(PersistentEntity entity, Junction criteria, ProjectionList projectionList, java.util.List<Query.Order> orders) |
Type Params | Return Type | Name and description |
---|---|---|
|
public static int |
appendCriteriaForOperator(java.lang.StringBuilder q, java.lang.String logicalName, java.lang.String name, int position, java.lang.String operator, boolean hibernateCompatible) |
|
protected void |
appendOrder(java.lang.StringBuilder queryString, java.lang.String logicalName) |
|
public JpaQueryInfo |
buildDelete() Builds a DELETE statement |
|
public JpaQueryInfo |
buildSelect() Builds SELECT statement |
|
protected static void |
buildSubQuery(java.lang.StringBuilder q, java.lang.StringBuilder whereClause, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible, QueryableCriteria subquery) |
|
public JpaQueryInfo |
buildUpdate(java.util.Map<java.lang.String, java.lang.Object> propertiesToUpdate) Builds an UPDATE statement. |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
public int |
handle(PersistentEntity entity, Criterion criterion, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible) |
|
protected static int |
handleSubQuery(PersistentEntity entity, java.lang.StringBuilder q, java.lang.StringBuilder whereClause, java.lang.String logicalName, int position, java.util.List parameters, org.springframework.core.convert.ConversionService conversionService, boolean allowJoins, boolean hibernateCompatible, SubqueryCriterion equalsAll, java.lang.String comparisonExpression) |
|
public void |
setConversionService(org.springframework.core.convert.ConversionService conversionService) |
|
public void |
setHibernateCompatible(boolean hibernateCompatible) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Builds a DELETE statement
Builds SELECT statement
Builds an UPDATE statement.
propertiesToUpdate
- THe properties to update