/** * Print the table's SQL from clause. */ public void printSQL(ExpressionSQLPrinter printer) throws IOException { printer.getWriter().write(getQualifiedNameDelimited(printer.getPlatform())); }
/** * Print the table's SQL from clause. */ public void printSQL(ExpressionSQLPrinter printer) throws IOException { printer.getWriter().write(getQualifiedNameDelimited(printer.getPlatform())); }
/** * INTERNAL: * Print SQL without adding parentheses (for DB2 outer joins). */ public void printSQLNoParens(ExpressionSQLPrinter printer) { ExpressionOperator realOperator = getPlatformOperator(printer.getPlatform()); realOperator.printDuo(this.firstChild, this.secondChild, printer); }
/** * INTERNAL: * Print SQL without adding parentheses (for DB2 outer joins). */ public void printSQLNoParens(ExpressionSQLPrinter printer) { ExpressionOperator realOperator = getPlatformOperator(printer.getPlatform()); realOperator.printDuo(this.firstChild, this.secondChild, printer); }
/** * INTERNAL: * Print SQL without adding parentheses (for DB2 outer joins). */ public void printSQLNoParens(ExpressionSQLPrinter printer) { ExpressionOperator realOperator = getPlatformOperator(printer.getPlatform()); realOperator.printDuo(this.firstChild, this.secondChild, printer); }
/** * INTERNAL: * writes the first field from each of the owned tables, used for * fine-grained pessimistic locking. */ protected void writeForUpdateOfFields(ExpressionSQLPrinter printer, SQLSelectStatement statement) { for (Iterator iterator = getForUpdateOfFields().iterator(); iterator.hasNext();) { DatabaseField field = (DatabaseField)iterator.next(); if (printer.getPlatform().shouldPrintAliasForUpdate()) { writeAlias(printer, field, statement); } else { writeField(printer, field, statement); } } }
/** * INTERNAL: * writes the first field from each of the owned tables, used for * fine-grained pessimistic locking. */ protected void writeForUpdateOfFields(ExpressionSQLPrinter printer, SQLSelectStatement statement) { for (Iterator iterator = getForUpdateOfFields().iterator(); iterator.hasNext();) { DatabaseField field = (DatabaseField)iterator.next(); if (printer.getPlatform().shouldPrintAliasForUpdate()) { writeAlias(printer, field, statement); } else { writeField(printer, field, statement); } } }
/** * INTERNAL: * writes the field for fine-grained pessimistic locking. */ protected void writeForUpdateOf(ExpressionSQLPrinter printer, SQLSelectStatement statement) { if (printer.getPlatform().shouldPrintAliasForUpdate()) { writeAlias(printer, field, statement); } else { writeField(printer, field, statement); } } }
/** * INTERNAL: * writes the field for fine-grained pessimistic locking. */ protected void writeForUpdateOf(ExpressionSQLPrinter printer, SQLSelectStatement statement) { if (printer.getPlatform().shouldPrintAliasForUpdate()) { writeAlias(printer, field, statement); } else { writeField(printer, field, statement); } } }
/** * INTERNAL: * writes the field for fine-grained pessimistic locking. */ protected void writeForUpdateOf(ExpressionSQLPrinter printer, SQLSelectStatement statement) { if (printer.getPlatform().shouldPrintAliasForUpdate()) { writeAlias(printer, field, statement); } else { writeField(printer, field, statement); } } }
/** * INTERNAL: * Print SQL */ public void printSQL(ExpressionSQLPrinter printer) { ExpressionOperator realOperator = getPlatformOperator(printer.getPlatform()); printer.printString("("); realOperator.printDuo(this.firstChild, this.secondChild, printer); printer.printString(")"); }
/** * INTERNAL: * Print SQL */ public void printSQL(ExpressionSQLPrinter printer) { ExpressionOperator realOperator = getPlatformOperator(printer.getPlatform()); printer.printString("("); realOperator.printDuo(this.firstChild, this.secondChild, printer); printer.printString(")"); }
/** * INTERNAL: * Print SQL */ public void printSQL(ExpressionSQLPrinter printer) { ListExpressionOperator platformOperator = (ListExpressionOperator)getPlatformOperator(printer.getPlatform()); platformOperator.copyTo(operator); operator.printCollection(getChildren(), printer); }
/** * INTERNAL: * Print SQL */ public void printSQL(ExpressionSQLPrinter printer) { ExpressionOperator realOperator = getPlatformOperator(printer.getPlatform()); printer.printString("("); realOperator.printDuo(this.firstChild, this.secondChild, printer); printer.printString(")"); }
protected void addFieldAliasIfNeeded(ExpressionSQLPrinter printer, DatabaseField field, SQLSelectStatement statement) { if (statement.getUseUniqueFieldAliases()){ printer.printString(" AS " + statement.generatedAlias(field.getNameDelimited(printer.getPlatform()))); } }
/** * INTERNAL: * Print SQL */ public void printSQL(ExpressionSQLPrinter printer) { ListExpressionOperator platformOperator = (ListExpressionOperator)getPlatformOperator(printer.getPlatform()); platformOperator.copyTo(operator); ((ListExpressionOperator)operator).setIsComplete(true); operator.printCollection(getChildren(), printer); }
public void printParameter(ParameterExpression expression) { try { getCall().appendTranslationParameter(getWriter(), expression, getPlatform(), getTranslationRow()); } catch (IOException exception) { throw ValidationException.fileError(exception); } }
public void printParameter(ParameterExpression expression) { try { getCall().appendTranslationParameter(getWriter(), expression, getPlatform(), getTranslationRow()); } catch (IOException exception) { throw ValidationException.fileError(exception); } }
public void printParameter(ParameterExpression expression) { try { getCall().appendTranslationParameter(getWriter(), expression, getPlatform(), getTranslationRow()); } catch (IOException exception) { throw ValidationException.fileError(exception); } }
/** * INTERNAL: * Print SQL */ public void printSQL(ExpressionSQLPrinter printer) { ListExpressionOperator platformOperator = (ListExpressionOperator)getPlatformOperator(printer.getPlatform()); platformOperator.copyTo(operator); ((ListExpressionOperator)operator).setIsComplete(true); operator.printCollection(getChildren(), printer); }