public class DB2QualifierTranslator extends TrimmingQualifierTranslator
trimFunctioncaseInsensitive, matchingObject, objectMatchTranslator, qualifier, useAliasForExpressions, waitingForEndNodeout, queryAssembler, strategy| Constructor and Description |
|---|
DB2QualifierTranslator(QueryAssembler queryAssembler,
String trimFunction) |
| 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 |
appendFunctionArgDivider(ASTFunctionCall functionExpression)
Append divider between function arguments.
|
protected void |
appendLiteralDirect(Object val,
DbAttribute attr,
Expression parentExpression)
Appends SQL code to the query buffer to handle
val as a
parameter to the PreparedStatement being built. |
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, setTrimFunctionappendFunctionArg, appendLiteral, appendObjectMatch, detectObjectMatch, doAppendPart, doAppendPart, endNode, extractQualifier, finishedChild, objectNode, operandForBitwiseAnd, operandForBitwiseLeftShift, operandForBitwiseNot, operandForBitwiseOr, operandForBitwiseRightShift, operandForBitwiseXor, parenthesisNeeded, processRelTermination, setCaseInsensitive, setQualifier, setUseAliasForExpressions, startNodeappendDbPath, appendLikeEscapeCharacter, appendObjPath, appendPart, getDbEntity, getObjEntity, paramsDbType, processRelTerminationpublic DB2QualifierTranslator(QueryAssembler queryAssembler, String trimFunction)
protected void appendLiteralDirect(Object val, DbAttribute attr, Expression parentExpression) throws IOException
QueryAssemblerHelperval as a
parameter to the PreparedStatement being built. Adds val
into QueryAssembler parameter list.appendLiteralDirect in class QueryAssemblerHelperIOExceptionprotected void processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr, Expression pathExp)
TrimmingQualifierTranslatorprocessColumnWithQuoteSqlIdentifiers in class TrimmingQualifierTranslatorprotected void appendFunction(ASTFunctionCall functionExpression)
QualifierTranslatorappendFunction in class QualifierTranslatorprotected void appendFunctionArgDivider(ASTFunctionCall functionExpression)
QualifierTranslatorappendFunctionArgDivider in class QualifierTranslatorprotected void clearLastFunctionArgDivider(ASTFunctionCall functionExpression)
QualifierTranslatorclearLastFunctionArgDivider in class QualifierTranslatorCopyright © 2001–2017 Apache Cayenne. All rights reserved.