public class SelectStatement extends Statement
columns, inputDesc, messages, OP_BINOP_MASK, OP_FUNC_MASK, OP_INFIX_MASK, OP_IRREGULAR_MASK, OP_ORDERBY_MASK, OP_OTHER_MASK, OP_PARAM_MASK, OP_PAREN_MASK, OP_PCOUNT_MASK, OP_POSTFIX_MASK, OP_PREFIX_MASK, OP_WHERE_MASK, secondaryTableStatements, statementText, tableList, vendorType| Constructor and Description |
|---|
SelectStatement(DBVendorType vendorType,
SelectQueryPlan plan) |
| Modifier and Type | Method and Description |
|---|---|
ColumnRef |
addColumn(org.netbeans.modules.dbschema.ColumnElement columnElement,
QueryTable queryTable) |
void |
appendTableText(StringBuilder text,
QueryTable table) |
void |
bindInputValues(DBStatement s,
ValueFetcher parameters)
Binds input valus corrsponding to this
Statement object to
database statement s. |
void |
copyColumns(SelectStatement sourceStatement) |
protected StringBuilder |
generateColumnText() |
protected void |
generateStatementText()
Generates the SQL text for the query described by this object.
|
String |
getFormattedSQLText(ValueFetcher parameters)
Gets formatted sql text corrsponding to this statement object.
|
protected String |
getJoinOperator(int operation)
Returns join operator for specified operation.
|
QueryPlan |
getQueryPlan()
Get QueryPlan for this statement
|
boolean |
isColumnTypeDefinitionNeeded()
Determines if Column Type definition is needed for this statement.
|
boolean |
isJoined() |
protected boolean |
isUpdateLockRequired(QueryTable table) |
void |
markJoined() |
protected void |
processIrregularOperation(ConstraintOperation opNode,
int opCode,
List stack,
StringBuilder result) |
protected void |
processRootConstraint(ConstraintOperation opNode,
List stack,
StringBuilder whereText)
Processes Order By constraints and calls the super class
method for all other constrains.
|
addColumnRef, addConstraint, addQueryTable, addSecondaryTableStatement, appendQuotedText, bindInputValues, clone, findQueryTable, formatSqlText, generateColumnText, generateInputValueForConstraintValueNode, getAction, getColumnRef, getColumnRefs, getFormattedSQLText, getOriginalPlan, getQueryTables, getSecondaryTableStatements, getText, getVendorType, getWhereText, infixOperator, operationFormat, postfixOperator, prefixOperator, processConstraintParamIndex, processConstraints, processConstraintValue, setActionpublic SelectStatement(DBVendorType vendorType, SelectQueryPlan plan)
public boolean isJoined()
public void markJoined()
public ColumnRef addColumn(org.netbeans.modules.dbschema.ColumnElement columnElement, QueryTable queryTable)
public void copyColumns(SelectStatement sourceStatement)
protected boolean isUpdateLockRequired(QueryTable table)
public void appendTableText(StringBuilder text, QueryTable table)
appendTableText in class Statementpublic boolean isColumnTypeDefinitionNeeded()
public QueryPlan getQueryPlan()
StatementgetQueryPlan in class Statementprotected void generateStatementText()
StatementgenerateStatementText in class Statementprotected StringBuilder generateColumnText()
protected void processRootConstraint(ConstraintOperation opNode, List stack, StringBuilder whereText)
processRootConstraint in class Statementprotected void processIrregularOperation(ConstraintOperation opNode, int opCode, List stack, StringBuilder result)
processIrregularOperation in class Statementprotected String getJoinOperator(int operation)
operation - The join operation. Should be one of
ActionDesc.OP_EQUIJOIN, ActionDesc.OP_LEFTJOIN or ActionDesc.OP_RIGHTJOIN.public void bindInputValues(DBStatement s, ValueFetcher parameters) throws SQLException
Statement object to
database statement s.s - The database statement.parameters - If an InputValue to be bound is a parameter, the actual
value is contained in this.SQLExceptionpublic String getFormattedSQLText(ValueFetcher parameters)
parameters - The input paramters to this statement.Copyright © 2019. All rights reserved.