Package org.datanucleus.api.jpa.criteria
Class CriteriaDeleteImpl<T>
- java.lang.Object
-
- org.datanucleus.api.jpa.criteria.CriteriaDeleteImpl<T>
-
- All Implemented Interfaces:
Serializable
,javax.persistence.criteria.CommonAbstractCriteria
,javax.persistence.criteria.CriteriaDelete<T>
public class CriteriaDeleteImpl<T> extends Object implements javax.persistence.criteria.CriteriaDelete<T>, Serializable
Implementation of a Criteria Delete query.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CriteriaDeleteImpl(CriteriaBuilderImpl cb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
discardCompiled()
javax.persistence.criteria.Root<T>
from(Class<T> cls)
javax.persistence.criteria.Root<T>
from(javax.persistence.metamodel.EntityType<T> type)
org.datanucleus.store.query.compiler.QueryCompilation
getCompilation(org.datanucleus.metadata.MetaDataManager mmgr, org.datanucleus.ClassLoaderResolver clr)
Accessor for the generic compilation that this criteria query equates to.org.datanucleus.store.query.compiler.QueryCompilation
getCompilation(org.datanucleus.metadata.MetaDataManager mmgr, org.datanucleus.ClassLoaderResolver clr, org.datanucleus.store.query.compiler.SymbolTable parentSymtbl)
Accessor for the generic compilation that this criteria query equates to.javax.persistence.criteria.Predicate
getRestriction()
javax.persistence.criteria.Root<T>
getRoot()
<U> javax.persistence.criteria.Subquery<U>
subquery(Class<U> cls)
String
toString()
Method to return a single-string representation of the criteria delete query in JPQL.javax.persistence.criteria.CriteriaDelete<T>
where(javax.persistence.criteria.Expression<Boolean> expr)
javax.persistence.criteria.CriteriaDelete<T>
where(javax.persistence.criteria.Predicate... exprs)
-
-
-
Constructor Detail
-
CriteriaDeleteImpl
public CriteriaDeleteImpl(CriteriaBuilderImpl cb)
-
-
Method Detail
-
getRestriction
public javax.persistence.criteria.Predicate getRestriction()
- Specified by:
getRestriction
in interfacejavax.persistence.criteria.CommonAbstractCriteria
-
subquery
public <U> javax.persistence.criteria.Subquery<U> subquery(Class<U> cls)
- Specified by:
subquery
in interfacejavax.persistence.criteria.CommonAbstractCriteria
-
from
public javax.persistence.criteria.Root<T> from(Class<T> cls)
- Specified by:
from
in interfacejavax.persistence.criteria.CriteriaDelete<T>
-
from
public javax.persistence.criteria.Root<T> from(javax.persistence.metamodel.EntityType<T> type)
- Specified by:
from
in interfacejavax.persistence.criteria.CriteriaDelete<T>
-
getRoot
public javax.persistence.criteria.Root<T> getRoot()
- Specified by:
getRoot
in interfacejavax.persistence.criteria.CriteriaDelete<T>
-
where
public javax.persistence.criteria.CriteriaDelete<T> where(javax.persistence.criteria.Expression<Boolean> expr)
- Specified by:
where
in interfacejavax.persistence.criteria.CriteriaDelete<T>
-
where
public javax.persistence.criteria.CriteriaDelete<T> where(javax.persistence.criteria.Predicate... exprs)
- Specified by:
where
in interfacejavax.persistence.criteria.CriteriaDelete<T>
-
discardCompiled
protected void discardCompiled()
-
getCompilation
public org.datanucleus.store.query.compiler.QueryCompilation getCompilation(org.datanucleus.metadata.MetaDataManager mmgr, org.datanucleus.ClassLoaderResolver clr)
Accessor for the generic compilation that this criteria query equates to.- Parameters:
mmgr
- MetaData managerclr
- ClassLoader resolver- Returns:
- The generic compilation
-
getCompilation
public org.datanucleus.store.query.compiler.QueryCompilation getCompilation(org.datanucleus.metadata.MetaDataManager mmgr, org.datanucleus.ClassLoaderResolver clr, org.datanucleus.store.query.compiler.SymbolTable parentSymtbl)
Accessor for the generic compilation that this criteria query equates to.- Parameters:
mmgr
- Metadata managerclr
- ClassLoader resolverparentSymtbl
- Parent symbol table (when this is a subquery)- Returns:
- The generic compilation
-
-