org.datanucleus.jpa.criteria
Class PredicateImpl
java.lang.Object
org.datanucleus.jpa.criteria.ExpressionImpl<java.lang.Boolean>
org.datanucleus.jpa.criteria.PredicateImpl
- All Implemented Interfaces:
- javax.persistence.criteria.Expression<java.lang.Boolean>, javax.persistence.criteria.Predicate, javax.persistence.criteria.Selection<java.lang.Boolean>, javax.persistence.TupleElement<java.lang.Boolean>
public class PredicateImpl
- extends ExpressionImpl<java.lang.Boolean>
- implements javax.persistence.criteria.Predicate
Implementation of JPA2 Criteria "Predicate".
| Nested classes/interfaces inherited from interface javax.persistence.criteria.Predicate |
javax.persistence.criteria.Predicate.BooleanOperator |
|
Field Summary |
protected java.util.List<javax.persistence.criteria.Predicate> |
exprs
|
|
Method Summary |
PredicateImpl |
append(javax.persistence.criteria.Predicate pred)
Convenience method to add on the supplied predicate to this one |
java.util.List<javax.persistence.criteria.Expression<java.lang.Boolean>> |
getExpressions()
|
javax.persistence.criteria.Predicate.BooleanOperator |
getOperator()
|
org.datanucleus.query.expression.Expression |
getQueryExpression()
Accessor for the underlying DataNucleus query expression for this predicate. |
boolean |
isNegated()
|
javax.persistence.criteria.Predicate |
not()
|
java.lang.String |
toString()
Method to print out the predicate as it would appear in JPQL single-string form. |
| Methods inherited from class org.datanucleus.jpa.criteria.ExpressionImpl |
alias, as, getAlias, getCompoundSelectionItems, getJavaType, in, in, in, in, isCompoundSelection, isNotNull, isNull |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.persistence.criteria.Expression |
as, in, in, in, in, isNotNull, isNull |
| Methods inherited from interface javax.persistence.criteria.Selection |
alias, getCompoundSelectionItems, isCompoundSelection |
| Methods inherited from interface javax.persistence.TupleElement |
getAlias, getJavaType |
exprs
protected final java.util.List<javax.persistence.criteria.Predicate> exprs
PredicateImpl
public PredicateImpl()
PredicateImpl
public PredicateImpl(javax.persistence.criteria.Predicate.BooleanOperator op)
not
public javax.persistence.criteria.Predicate not()
- Specified by:
not in interface javax.persistence.criteria.Predicate
getExpressions
public java.util.List<javax.persistence.criteria.Expression<java.lang.Boolean>> getExpressions()
- Specified by:
getExpressions in interface javax.persistence.criteria.Predicate
getOperator
public javax.persistence.criteria.Predicate.BooleanOperator getOperator()
- Specified by:
getOperator in interface javax.persistence.criteria.Predicate
isNegated
public boolean isNegated()
- Specified by:
isNegated in interface javax.persistence.criteria.Predicate
append
public PredicateImpl append(javax.persistence.criteria.Predicate pred)
- Convenience method to add on the supplied predicate to this one
- Parameters:
pred - The supplied predicate to append to this
- Returns:
- The resultant predicate
getQueryExpression
public org.datanucleus.query.expression.Expression getQueryExpression()
- Accessor for the underlying DataNucleus query expression for this predicate.
- Overrides:
getQueryExpression in class ExpressionImpl<java.lang.Boolean>
- Returns:
- The DataNucleus query expression
toString
public java.lang.String toString()
- Method to print out the predicate as it would appear in JPQL single-string form.
- Overrides:
toString in class ExpressionImpl<java.lang.Boolean>
- Returns:
- The JPQL single string form of this predicate
Copyright © 2011. All Rights Reserved.