X
- The concrete builder typepublic interface ModificationCriteriaBuilder<X extends ModificationCriteriaBuilder<X>> extends Executable, CommonQueryBuilder<X>, BaseModificationCriteriaBuilder<X>, CTEBuilder<X>
Modifier and Type | Method and Description |
---|---|
<T> ReturningResult<T> |
executeWithReturning(ReturningObjectBuilder<T> objectBuilder)
Executes the modification query and returns an object consisting of the attributes applied by the object builder.
|
ReturningResult<javax.persistence.Tuple> |
executeWithReturning(String... attributes)
Executes the modification query and returns the given attributes as tuples.
|
<T> ReturningResult<T> |
executeWithReturning(String attribute,
Class<T> type)
Executes the modification query and returns the given attribute with the specified type.
|
From |
getRoot()
Returns the query root.
|
<T> javax.persistence.TypedQuery<ReturningResult<T>> |
getWithReturningQuery(ReturningObjectBuilder<T> objectBuilder)
Creates a query that contains the modification query and returns an object consisting of the attributes applied by the object builder.
|
javax.persistence.TypedQuery<ReturningResult<javax.persistence.Tuple>> |
getWithReturningQuery(String... attributes)
Creates a query that contains the modification query and returns the given attributes as tuples.
|
<T> javax.persistence.TypedQuery<ReturningResult<T>> |
getWithReturningQuery(String attribute,
Class<T> type)
Creates a query that contains the modification query and returns the given attribute with the specified type.
|
executeUpdate, getQuery, getQueryString
getCriteriaBuilderFactory, getMetamodel, isCacheable, registerMacro, setCacheable, setProperties, setProperty
getService
getProperties, getProperty
containsParameter, getParameter, getParameters, getParameterValue, isParameterSet, setParameter, setParameter, setParameter, setParameterType
setWhereExpression, setWhereExpressionSubqueries, whereOr
where, whereCase, whereExists, whereExists, whereNotExists, whereNotExists, whereSimpleCase, whereSubqueries, whereSubquery, whereSubquery, whereSubquery, whereSubquery
with, withRecursive, withReturning, withStartSet
From getRoot()
ReturningResult<javax.persistence.Tuple> executeWithReturning(String... attributes)
attributes
- The attributes of a changed entity to return<T> ReturningResult<T> executeWithReturning(String attribute, Class<T> type)
T
- The result type of the attributeattribute
- The attribute of a changed entity to returntype
- The type of the attribute<T> ReturningResult<T> executeWithReturning(ReturningObjectBuilder<T> objectBuilder)
T
- The type of the object constructed by the object builderobjectBuilder
- The object builder that applies attributes and constructs the result objectsjavax.persistence.TypedQuery<ReturningResult<javax.persistence.Tuple>> getWithReturningQuery(String... attributes)
attributes
- The attributes of a changed entity to return<T> javax.persistence.TypedQuery<ReturningResult<T>> getWithReturningQuery(String attribute, Class<T> type)
T
- The result type of the attributeattribute
- The attribute of a changed entity to returntype
- The type of the attribute<T> javax.persistence.TypedQuery<ReturningResult<T>> getWithReturningQuery(ReturningObjectBuilder<T> objectBuilder)
T
- The type of the object constructed by the object builderobjectBuilder
- The object builder that applies attributes and constructs the result objectsCopyright © 2014–2018 Blazebit. All rights reserved.