public class FirebirdQualifierTranslator extends QualifierTranslator
caseInsensitive, matchingObject, objectMatchTranslator, qualifier, useAliasForExpressions, waitingForEndNode
out, queryAssembler, strategy
Constructor and Description |
---|
FirebirdQualifierTranslator(QueryAssembler queryAssembler) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendFunction(ASTFunctionCall functionExpression)
Append function name to result SQL
Override this method to rename or skip function if generic name isn't supported on target DB.
|
protected void |
appendFunctionArg(Object value,
ASTFunctionCall functionExpression)
A little bit ugly code that wraps String scalars to CAST(? AS VARCHAR(length))
because otherwise derby don't know what type will be at the placeholder and
use LONG VARCHAR that isn't comparable what leads to statement preparation failure.
|
protected void |
appendFunctionArgDivider(ASTFunctionCall functionExpression)
Append divider between function arguments.
|
protected void |
clearLastFunctionArgDivider(ASTFunctionCall functionExpression)
Clear last divider as we currently don't now position of argument until parent element is ended.
|
protected void |
doAppendPart(Expression rootNode)
Translates query qualifier to SQL WHERE clause.
|
appendLiteral, appendObjectMatch, detectObjectMatch, doAppendPart, endNode, extractQualifier, finishedChild, objectNode, operandForBitwiseAnd, operandForBitwiseLeftShift, operandForBitwiseNot, operandForBitwiseOr, operandForBitwiseRightShift, operandForBitwiseXor, parenthesisNeeded, processRelTermination, setCaseInsensitive, setQualifier, setUseAliasForExpressions, startNode
appendDbPath, appendLikeEscapeCharacter, appendLiteralDirect, appendObjPath, appendPart, getDbEntity, getObjEntity, paramsDbType, processColumn, processColumnWithQuoteSqlIdentifiers, processRelTermination
public FirebirdQualifierTranslator(QueryAssembler queryAssembler)
protected void doAppendPart(Expression rootNode)
QualifierTranslator
doAppendPart
in class QualifierTranslator
protected void appendFunction(ASTFunctionCall functionExpression)
QualifierTranslator
appendFunction
in class QualifierTranslator
protected void appendFunctionArg(Object value, ASTFunctionCall functionExpression) throws IOException
appendFunctionArg
in class QualifierTranslator
IOException
protected void appendFunctionArgDivider(ASTFunctionCall functionExpression)
QualifierTranslator
appendFunctionArgDivider
in class QualifierTranslator
protected void clearLastFunctionArgDivider(ASTFunctionCall functionExpression)
QualifierTranslator
clearLastFunctionArgDivider
in class QualifierTranslator
Copyright © 2001–2017 Apache Cayenne. All rights reserved.