Class ParameterExpressionImpl<T>
java.lang.Object
cz.cvut.kbss.jopa.query.criteria.SelectionImpl<Y>
cz.cvut.kbss.jopa.query.criteria.expressions.AbstractExpression<T>
cz.cvut.kbss.jopa.query.criteria.expressions.ParameterExpressionImpl<T>
- All Implemented Interfaces:
Expression<T>,ParameterExpression<T>,Selection<T>,Parameter<T>,TupleElement<T>
public class ParameterExpressionImpl<T>
extends AbstractExpression<T>
implements ParameterExpression<T>
-
Field Summary
Fields inherited from class cz.cvut.kbss.jopa.query.criteria.expressions.AbstractExpression
cb, negatedFields inherited from class cz.cvut.kbss.jopa.query.criteria.SelectionImpl
type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Return the parameter name, or null if the parameter is not a named parameter or no name has been assigned.Return the Java type of the parameter.Return the parameter position, or null if the parameter is not a positional parameter.inthashCode()voidsetExpressionToQuery(StringBuilder query, CriteriaParameterFiller parameterFiller) voidsetNameIfUnnamed(String name) Methods inherited from class cz.cvut.kbss.jopa.query.criteria.expressions.AbstractExpression
in, in, isNegated, negateMethods inherited from class cz.cvut.kbss.jopa.query.criteria.SelectionImpl
getAlias, getCompoundedSelectionItems, getJavaType, isCompoundedSelectionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cz.cvut.kbss.jopa.model.query.criteria.Expression
in, inMethods inherited from interface cz.cvut.kbss.jopa.model.query.criteria.Selection
getCompoundedSelectionItems, isCompoundedSelectionMethods inherited from interface cz.cvut.kbss.jopa.model.query.TupleElement
getAlias, getJavaType
-
Constructor Details
-
ParameterExpressionImpl
-
-
Method Details
-
setNameIfUnnamed
-
getName
Description copied from interface:ParameterReturn the parameter name, or null if the parameter is not a named parameter or no name has been assigned. -
getPosition
Description copied from interface:ParameterReturn the parameter position, or null if the parameter is not a positional parameter.- Specified by:
getPositionin interfaceParameter<T>- Returns:
- position of parameter
-
getParameterType
Description copied from interface:ParameterReturn the Java type of the parameter. Values bound to the parameter must be assignable to this type. This method is required to be supported for criteria queries only. Applications that use this method for Java Persistence query language queries and native queries will not be portable.- Specified by:
getParameterTypein interfaceParameter<T>- Returns:
- the Java type of the parameter
-
setExpressionToQuery
- Specified by:
setExpressionToQueryin classAbstractExpression<T>
-
equals
-
hashCode
public int hashCode()
-