Modifier and Type | Method and Description |
---|---|
SQLSelectStatement |
InheritancePolicy.buildClassIndicatorSelectStatement(ObjectLevelReadQuery query)
INTERNAL:
Return a select statement that will be used to query the class indicators required to query.
|
SQLSelectStatement |
InheritancePolicy.buildViewSelectStatement(ObjectLevelReadQuery query)
INTERNAL:
Build a select statement for all subclasses on the view using the same
selection criteria as the query.
|
Modifier and Type | Method and Description |
---|---|
void |
InheritancePolicy.appendWithAllSubclassesExpression(SQLSelectStatement selectStatement)
INTERNAL:
Append the branch with all subclasses expression to the statement.
|
Modifier and Type | Field and Description |
---|---|
protected SQLSelectStatement |
ExpressionBuilder.statement |
Modifier and Type | Method and Description |
---|---|
SQLSelectStatement |
ExpressionBuilder.getStatement()
INTERNAL:
Return the statement that expression is for.
|
Modifier and Type | Method and Description |
---|---|
void |
ExpressionBuilder.setStatement(SQLSelectStatement statement)
INTERNAL:
Set the statement that expression is for.
|
protected void |
Expression.writeField(ExpressionSQLPrinter printer,
DatabaseField field,
SQLSelectStatement statement)
INTERNAL:
Append the field name to the writer.
|
void |
Expression.writeFields(ExpressionSQLPrinter printer,
Vector newFields,
SQLSelectStatement statement)
INTERNAL:
called from SQLSelectStatement.writeFieldsFromExpression(...)
|
Modifier and Type | Field and Description |
---|---|
protected SQLSelectStatement |
SQLSelectStatement.parentStatement
Used for subselects.
|
protected SQLSelectStatement |
ExpressionIterator.statement
Some iterations require a statement.
|
protected SQLSelectStatement |
ExpressionNormalizer.statement
The statement being normalized.
|
Modifier and Type | Method and Description |
---|---|
SQLSelectStatement |
SQLSelectStatement.getParentStatement()
Return the parent statement if using subselects.
|
SQLSelectStatement |
ExpressionIterator.getStatement() |
SQLSelectStatement |
ExpressionNormalizer.getStatement() |
Modifier and Type | Method and Description |
---|---|
void |
ForUpdateOfClause.printSQL(ExpressionSQLPrinter printer,
SQLSelectStatement statement)
INTERNAL:
Prints the as of clause for an expression inside of the FROM clause.
|
void |
ForUpdateClause.printSQL(ExpressionSQLPrinter printer,
SQLSelectStatement statement)
INTERNAL:
Prints the as of clause for an expression inside of the FROM clause.
|
void |
SQLSelectStatement.setParentStatement(SQLSelectStatement parentStatement)
Set the parent statement if using subselects.
|
void |
ExpressionIterator.setStatement(SQLSelectStatement statement) |
void |
ExpressionNormalizer.setStatement(SQLSelectStatement statement) |
void |
FieldExpression.writeFields(ExpressionSQLPrinter printer,
Vector newFields,
SQLSelectStatement statement)
INTERNAL: called from SQLSelectStatement.writeFieldsFromExpression(...)
|
void |
ConstantExpression.writeFields(ExpressionSQLPrinter printer,
Vector newFields,
SQLSelectStatement statement)
INTERNAL:
Append the constant value into the printer
|
void |
ParameterExpression.writeFields(ExpressionSQLPrinter printer,
Vector newFields,
SQLSelectStatement statement)
INTERNAL:
Append the parameter into the printer.
|
void |
FunctionExpression.writeFields(ExpressionSQLPrinter printer,
Vector newFields,
SQLSelectStatement statement)
INTERNAL: called from SQLSelectStatement.writeFieldsFromExpression(...)
|
protected void |
ObjectExpression.writeForUpdateOfFields(ExpressionSQLPrinter printer,
SQLSelectStatement statement)
INTERNAL:
writes the first field from each of the owned tables, used for
fine-grained pessimistic locking.
|
Constructor and Description |
---|
ExpressionNormalizer(SQLSelectStatement statement) |
Modifier and Type | Method and Description |
---|---|
SQLSelectStatement |
ExpressionQueryMechanism.buildBaseSelectStatement(boolean isSubSelect,
Dictionary clonedExpressions)
Return the appropriate select statement containing the fields in the table.
|
protected SQLSelectStatement |
ExpressionQueryMechanism.buildConcreteSelectStatement()
Return the appropriate select statement containing the fields in the table.
|
protected SQLSelectStatement |
ExpressionQueryMechanism.buildNormalSelectStatement()
Return the appropriate select statement containing the fields in the table.
|
protected SQLSelectStatement |
ExpressionQueryMechanism.buildReportQuerySelectStatement(boolean isSubSelect)
Return the appropriate select statement containing the fields in the table.
|
protected SQLSelectStatement |
ExpressionQueryMechanism.buildReportQuerySelectStatement(boolean isSubSelect,
boolean useCustomaryInheritanceExpression,
Expression inheritanceExpression)
Customary inheritance expression is required for DeleteAllQuery and UpdateAllQuery preparation.
|
protected SQLSelectStatement |
ExpressionQueryMechanism.buildSelectStatementForDoesExist(DatabaseField field)
Return the appropriate select statement to perform a does exist check
|
protected SQLSelectStatement |
ExpressionQueryMechanism.createSQLSelectStatementForAssignedExpressionForUpdateAll(Expression value) |
protected SQLSelectStatement |
ExpressionQueryMechanism.createSQLSelectStatementForModifyAll(Expression whereClause) |
protected SQLSelectStatement |
ExpressionQueryMechanism.createSQLSelectStatementForModifyAll(Expression whereClause,
Expression inheritanceExpression) |
protected SQLSelectStatement |
ExpressionQueryMechanism.createSQLSelectStatementForModifyAll(Expression whereClause,
Expression inheritanceExpression,
ClassDescriptor desc) |
protected SQLSelectStatement |
ExpressionQueryMechanism.createSQLSelectStatementForModifyAll(Expression whereClause,
Expression inheritanceExpression,
ClassDescriptor desc,
boolean useCustomaryInheritanceExpression) |
protected SQLSelectStatement |
ExpressionQueryMechanism.createSQLSelectStatementForModifyAllForTempTable(HashMap databaseFieldsToValues) |
protected SQLSelectStatement |
ExpressionQueryMechanism.createSQLSelectStatementForUpdateAllForOracleAnonymousBlock(HashMap tables_databaseFieldsToValues) |
Modifier and Type | Method and Description |
---|---|
Vector |
ExpressionQueryMechanism.aliasPresetFields(SQLSelectStatement statement)
If the fields in the statement have breen pre-set, e.g.
|
protected SQLDeleteStatement |
ExpressionQueryMechanism.buildDeleteAllStatement(DatabaseTable table,
Expression inheritanceExpression,
SQLCall selectCallForExist,
SQLSelectStatement selectStatementForExist,
SQLCall selectCallForNotExist,
SQLSelectStatement selectStatementForNotExist,
Collection primaryKeyFields)
Return the appropriate delete statement
Passing of a call/ statement pair is used because the same pair
may be used several times.
|
protected SQLDeleteStatement |
ExpressionQueryMechanism.buildDeleteAllStatementForMapping(SQLCall selectCallForExist,
SQLSelectStatement selectStatementForExist,
Vector sourceFields,
Vector targetFields) |
protected Vector |
ExpressionQueryMechanism.buildDeleteAllStatementsForMappings(SQLCall selectCallForExist,
SQLSelectStatement selectStatementForExist,
boolean dontCheckDescriptor)
Create SQLDeleteAllStatements for mappings that may be responsible for references
to the objects to be deleted
in the tables NOT mapped to any class: ManyToManyMapping and DirectCollectionMapping
NOTE: A similar pattern also used in method buildDeleteAllStatementsForMappingsWithTempTable():
if you are updating this method consider applying a similar update to that method as well.
|
protected SQLUpdateAllStatement |
ExpressionQueryMechanism.buildUpdateAllStatement(DatabaseTable table,
HashMap databaseFieldsToValues,
SQLCall selectCallForExist,
SQLSelectStatement selectStatementForExist,
Collection primaryKeyFields) |
void |
ExpressionQueryMechanism.extractStatementFromItem(ReportItem item,
IdentityHashtable clonedExpressions,
SQLSelectStatement selectStatement,
Vector fieldExpressions) |
protected static String |
ExpressionQueryMechanism.getAliasTableName(SQLSelectStatement selectStatement,
DatabaseTable table) |
Vector |
ExpressionQueryMechanism.getSelectionFields(SQLSelectStatement statement,
boolean includeAllSubclassFields)
Return the fields required in the select clause.
|
Copyright © 2023. All rights reserved.