Class ModificationQuerySpecification<T>
java.lang.Object
com.blazebit.persistence.impl.query.CustomQuerySpecification<T>
com.blazebit.persistence.impl.query.ModificationQuerySpecification<T>
- All Implemented Interfaces:
QuerySpecification<T>
- Direct Known Subclasses:
CollectionInsertModificationQuerySpecification,DeleteModificationQuerySpecification,UpdateModificationQuerySpecification
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final javax.persistence.Queryprotected final Map<DbmsModificationState,String> protected final booleanprotected final ReturningObjectBuilder<T>protected javax.persistence.Queryprotected final String[]Fields inherited from class com.blazebit.persistence.impl.query.CustomQuerySpecification
addedCtes, baseQuery, countPrefix, countWrapperExampleQuery, ctes, dbmsDialect, dirty, em, entityFunctionNodes, extendedQuerySupport, keyRestrictedLeftJoinAliases, limit, listParameters, offset, parameters, participatingQueries, queryPlanCacheEnabled, recursive, serviceProvider, shouldRenderCtes, sql, statementType -
Constructor Summary
ConstructorsConstructorDescriptionModificationQuerySpecification(AbstractCommonQueryBuilder<?, ?, ?, ?, ?> commonQueryBuilder, javax.persistence.Query baseQuery, javax.persistence.Query exampleQuery, Collection<? extends javax.persistence.Parameter<?>> parameters, Set<String> parameterListNames, List<String> keyRestrictedLeftJoinAliases, List<EntityFunctionNode> entityFunctionNodes, boolean recursive, List<CTENode> ctes, boolean shouldRenderCteNodes, boolean isEmbedded, String[] returningColumns, ReturningObjectBuilder<T> objectBuilder, Map<DbmsModificationState, String> includedModificationStates, Map<String, String> returningAttributeBindingMap, boolean queryPlanCacheEnabled) -
Method Summary
Modifier and TypeMethodDescriptioncreateModificationPlan(int firstResult, int maxResults) createSelectPlan(int firstResult, int maxResults) javax.persistence.Queryprotected voidMethods inherited from class com.blazebit.persistence.impl.query.CustomQuerySpecification
applyCtes, applyExtendedSql, applySqlTransformations, getAddedCtes, getParameters, getParticipatingQueries, getSql, onCollectionParameterChange
-
Field Details
-
exampleQuery
protected final javax.persistence.Query exampleQuery -
isEmbedded
protected final boolean isEmbedded -
returningColumns
-
includedModificationStates
-
returningAttributeBindingMap
-
objectBuilder
-
query
protected javax.persistence.Query query
-
-
Constructor Details
-
ModificationQuerySpecification
public ModificationQuerySpecification(AbstractCommonQueryBuilder<?, ?, ?, ?, ?> commonQueryBuilder, javax.persistence.Query baseQuery, javax.persistence.Query exampleQuery, Collection<? extends javax.persistence.Parameter<?>> parameters, Set<String> parameterListNames, List<String> keyRestrictedLeftJoinAliases, List<EntityFunctionNode> entityFunctionNodes, boolean recursive, List<CTENode> ctes, boolean shouldRenderCteNodes, boolean isEmbedded, String[] returningColumns, ReturningObjectBuilder<T> objectBuilder, Map<DbmsModificationState, String> includedModificationStates, Map<String, String> returningAttributeBindingMap, boolean queryPlanCacheEnabled)
-
-
Method Details
-
createModificationPlan
- Specified by:
createModificationPlanin interfaceQuerySpecification<T>- Overrides:
createModificationPlanin classCustomQuerySpecification<T>
-
createSelectPlan
- Specified by:
createSelectPlanin interfaceQuerySpecification<T>- Overrides:
createSelectPlanin classCustomQuerySpecification<T>
-
getBaseQuery
public javax.persistence.Query getBaseQuery()- Specified by:
getBaseQueryin interfaceQuerySpecification<T>- Overrides:
getBaseQueryin classCustomQuerySpecification<T>
-
initialize
protected void initialize()- Overrides:
initializein classCustomQuerySpecification<T>
-