| Modifier and Type | Field and Description |
|---|---|
int |
minAffectedRows |
static String |
UPDATE_VERSION_COL_PROPERTY
Name of the USE_BATCH property.
|
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 |
|---|
UpdateStatement(DBVendorType vendorType,
UpdateQueryPlan plan,
boolean batch) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(org.netbeans.modules.dbschema.ColumnElement columnElement,
Object value) |
protected void |
addConstraint(org.netbeans.modules.dbschema.ColumnElement columnElement,
LocalFieldDesc lf,
Object value)
Batch helper method.
|
void |
addForeignConstraints(int action,
ForeignFieldDesc f,
SQLStateManager sm) |
void |
addLocalConstraints(int action,
ForeignFieldDesc f,
SQLStateManager sm) |
void |
addVersionColumn(org.netbeans.modules.dbschema.ColumnElement versionColumn) |
void |
bindInputColumns(DBStatement s,
UpdateObjectDescImpl updateDesc) |
boolean |
exceedsBatchThreshold(Transaction tran) |
protected void |
generateStatementText()
Generates the SQL text for the query described by this object.
|
DBStatement |
getDBStatement(Transaction tran,
Connection conn)
Returns the cached db statement for the specified connection.
|
String |
getFormattedSQLText(UpdateObjectDescImpl updateDesc)
Gets formatted sql text corrsponding to this statement object.
|
QueryPlan |
getQueryPlan()
Get QueryPlan for this statement
|
boolean |
isConstraintAdded() |
void |
markConstraintAdded() |
protected void |
processConstraintValue(ConstraintValue node,
StringBuffer result)
Redefines processConstraintValue in order to skip the creation of
an InputValue in the case of batch.
|
DBStatement |
removeDBStatement(Transaction tran)
Removes the db statement for the specified connection from the cache
and closes this statement.
|
addColumnRef, addConstraint, addQueryTable, addSecondaryTableStatement, appendQuotedText, appendTableText, bindInputValues, clone, findQueryTable, formatSqlText, generateColumnText, generateInputValueForConstraintValueNode, getAction, getColumnRef, getColumnRefs, getFormattedSQLText, getOriginalPlan, getQueryTables, getSecondaryTableStatements, getText, getVendorType, getWhereText, infixOperator, operationFormat, postfixOperator, prefixOperator, processConstraintParamIndex, processConstraints, processIrregularOperation, processRootConstraint, setActionpublic int minAffectedRows
public static final String UPDATE_VERSION_COL_PROPERTY
public UpdateStatement(DBVendorType vendorType, UpdateQueryPlan plan, boolean batch)
public void addColumn(org.netbeans.modules.dbschema.ColumnElement columnElement,
Object value)
protected void addConstraint(org.netbeans.modules.dbschema.ColumnElement columnElement,
LocalFieldDesc lf,
Object value)
public boolean isConstraintAdded()
public void markConstraintAdded()
public QueryPlan getQueryPlan()
StatementgetQueryPlan in class Statementprotected void generateStatementText()
StatementgenerateStatementText in class Statementpublic void addLocalConstraints(int action,
ForeignFieldDesc f,
SQLStateManager sm)
public void addForeignConstraints(int action,
ForeignFieldDesc f,
SQLStateManager sm)
protected void processConstraintValue(ConstraintValue node, StringBuffer result)
processConstraintValue in class Statementpublic DBStatement getDBStatement(Transaction tran, Connection conn) throws SQLException
tran - the transactionconn - the connectionSQLExceptionpublic boolean exceedsBatchThreshold(Transaction tran)
public DBStatement removeDBStatement(Transaction tran)
tran - the transactionpublic void bindInputColumns(DBStatement s, UpdateObjectDescImpl updateDesc) throws SQLException
SQLExceptionpublic String getFormattedSQLText(UpdateObjectDescImpl updateDesc)
updateDesc - the updateDesc.public void addVersionColumn(org.netbeans.modules.dbschema.ColumnElement versionColumn)
Copyright © 2017. All rights reserved.