public class ParameterDefinition<Type> extends LeafExpression<Type> implements QueryExpression<Type>
QueryExpression
that is a query parameter with a simple value. The name of
the parameter may be omitted. In this case a unique parameter name will be generated and the parameter may not be
referenced anywhere else in the query.Modifier and Type | Field and Description |
---|---|
protected Type |
parameterValue |
Constructor and Description |
---|
ParameterDefinition(String parameterName,
Type parameterValue) |
ParameterDefinition(Type parameterValue) |
Modifier and Type | Method and Description |
---|---|
void |
appendQueryParameters(QueryTextGenerator queryTextGenerator,
Map<String,Object> parameterValues) |
void |
asQueryLanguage(QueryTextGenerator queryTextGenerator,
StringBuilder builder) |
QueryExpression<Type> |
copy() |
String |
getParameterName() |
int |
queryStringSizeGuess(QueryTextGenerator queryTextGenerator) |
getExpressionType, listDescendantsOfType, listParentsOfDescendantsOfType, precedence
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExpressionType, listDescendantsOfType, listParentsOfDescendantsOfType, precedence
protected final Type parameterValue
public ParameterDefinition(Type parameterValue)
public void asQueryLanguage(QueryTextGenerator queryTextGenerator, StringBuilder builder)
asQueryLanguage
in interface QueryExpression<Type>
public void appendQueryParameters(QueryTextGenerator queryTextGenerator, Map<String,Object> parameterValues)
appendQueryParameters
in interface QueryExpression<Type>
appendQueryParameters
in class LeafExpression<Type>
public int queryStringSizeGuess(QueryTextGenerator queryTextGenerator)
queryStringSizeGuess
in interface QueryExpression<Type>
public QueryExpression<Type> copy()
copy
in interface QueryExpression<Type>
public String getParameterName()
Copyright © 2016 SAPERION AG. All rights reserved.