public class DerbyQualifierTranslator extends TrimmingQualifierTranslator
trimFunctioncaseInsensitive, matchingObject, objectMatchTranslator, qualifier, useAliasForExpressions, waitingForEndNodeout, queryAssembler, strategy| Constructor and Description |
|---|
DerbyQualifierTranslator(QueryAssembler queryAssembler,
String trimFunction) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendExtractFunction(ASTExtract functionExpression)
Special case for extract date/time parts functions as they have many variants
|
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 |
processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr,
Expression pathExp)
Adds special handling of CHAR columns.
|
getTrimFunction, processColumn, setTrimFunctionappendLiteral, appendObjectMatch, detectObjectMatch, doAppendPart, doAppendPart, endNode, extractQualifier, finishedChild, objectNode, operandForBitwiseAnd, operandForBitwiseLeftShift, operandForBitwiseNot, operandForBitwiseOr, operandForBitwiseRightShift, operandForBitwiseXor, parenthesisNeeded, processRelTermination, setCaseInsensitive, setQualifier, setUseAliasForExpressions, startNodeappendDbPath, appendLikeEscapeCharacter, appendLiteralDirect, appendObjPath, appendPart, getDbEntity, getObjEntity, paramsDbType, processRelTermination, setForceJoinForRelationspublic DerbyQualifierTranslator(QueryAssembler queryAssembler, String trimFunction)
protected void processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr, Expression pathExp)
TrimmingQualifierTranslatorprocessColumnWithQuoteSqlIdentifiers in class TrimmingQualifierTranslatorprotected void appendFunction(ASTFunctionCall functionExpression)
QualifierTranslatorappendFunction in class QualifierTranslatorprotected void appendFunctionArg(Object value, ASTFunctionCall functionExpression) throws IOException
appendFunctionArg in class QualifierTranslatorIOExceptionprotected void appendFunctionArgDivider(ASTFunctionCall functionExpression)
QualifierTranslatorappendFunctionArgDivider in class QualifierTranslatorprotected void clearLastFunctionArgDivider(ASTFunctionCall functionExpression)
QualifierTranslatorclearLastFunctionArgDivider in class QualifierTranslatorprotected void appendExtractFunction(ASTExtract functionExpression)
QualifierTranslatorappendExtractFunction in class QualifierTranslatorCopyright © 2001–2023 Apache Cayenne. All rights reserved.