public class TemplateParameter<ExpressionType> extends LeafExpression<ExpressionType> implements QueryExpression<ExpressionType>
QueryExpression
that represents a parameter in an expression template. Querying the database with a
statement containing such an expresion will result in an exception. It solely marks a point in an expression tree,
where the replacement of a template will be inserted.Constructor and Description |
---|
TemplateParameter(Class<ExpressionType> expressionTypeClass,
String parameterName) |
Modifier and Type | Method and Description |
---|---|
void |
asQueryLanguage(QueryTextGenerator queryTextGenerator,
StringBuilder builder) |
QueryExpression<ExpressionType> |
copy() |
String |
getParameterName() |
int |
queryStringSizeGuess(QueryTextGenerator queryTextGenerator) |
String |
toString() |
appendQueryParameters, getExpressionType, listDescendantsOfType, listParentsOfDescendantsOfType, precedence
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendQueryParameters, getExpressionType, listDescendantsOfType, listParentsOfDescendantsOfType, precedence
public TemplateParameter(Class<ExpressionType> expressionTypeClass, String parameterName)
public void asQueryLanguage(QueryTextGenerator queryTextGenerator, StringBuilder builder)
asQueryLanguage
in interface QueryExpression<ExpressionType>
public int queryStringSizeGuess(QueryTextGenerator queryTextGenerator)
queryStringSizeGuess
in interface QueryExpression<ExpressionType>
public QueryExpression<ExpressionType> copy()
copy
in interface QueryExpression<ExpressionType>
public String getParameterName()
Copyright © 2016 SAPERION AG. All rights reserved.