public class UpdateQuery extends AbstractDMLQuery
_buildOnly, _containsQuery, _convertResultToArray, _executor, _operationID, _projectionTemplate, _queryResultType, _tablesData, expTree, isPrepared, preparedValues, queryColumns, rownum, securityInterceptor, tables, valueMap
Constructor and Description |
---|
UpdateQuery() |
Modifier and Type | Method and Description |
---|---|
void |
addUpdateColumn(UpdateColumn updateColumn)
Adds a column name to the update columns list of the update query.
|
UpdateQuery |
clone() |
ResponsePacket |
executeOnSpace(ISpaceProxy space,
Transaction txn)
Will execute this query on the space and return a ResponsePacket
|
BatchResponsePacket |
executePreparedValuesBatch(ISpaceProxy space,
Transaction transaction,
GPreparedStatement.PreparedValuesCollection preparedValuesCollection)
Executes a query with batched prepared values.
|
List<UpdateColumn> |
getUpdatedColumns()
Gets the update columns list of the update query.
|
boolean |
isByUid() |
boolean |
isForceUnderTransaction()
Gets whether this query is forced to be executed under transaction.
|
void |
setByUid(boolean byUid) |
void |
setSelfIncrementedUpdateColumn(boolean selfIncrementedUpdateColumn)
Sets whether the query contains an update column which is self incremented.
|
void |
setUpdatedValues(List<LiteralNode> values) |
addColumn, addTableWithAlias, assignParameters, build, buildTemplates, containsSubQueries, executeSubQueries, filterByRownum, getBuilder, getExplainPlan, getExpTree, getIfExists, getMinEntriesToWaitFor, getOperationID, getPreparedValues, getProjectionTemplate, getQueryColumnByAlias, getQueryColumns, getQueryResultType, getReadModifier, getRouting, getRownum, getRownumLimit, getSecurityInterceptor, getSession, getTableByAlias, getTableData, getTableData, getTableName, getTablesData, getTablesNames, getTemplatePacketIfExists, getTimeout, getTypeInfo, isBuildOnly, isContainsQuery, isConvertResultToArray, isDirtyState, isJoined, isPrepared, isReturnResult, isSelectQuery, prepare, readExternal, setBuildOnly, setContainsQuery, setContainsSubQueries, setConvertResultToArray, setExplainPlan, setExpTree, setIfExists, setMaxResults, setMinEntriesToWaitFor, setOperationID, setPrepared, setPreparedValues, setProjectionTemplate, setQueryResultType, setReadModifier, setReturnResult, setRouting, setRownum, setSecurityInterceptor, setSession, setTableName, setTemplatePreparedValues, setTimeout, validateBuiltTemplates, validateQuery, validateQuery, writeExternal
public ResponsePacket executeOnSpace(ISpaceProxy space, Transaction txn) throws SQLException
Query
SQLException
public void setUpdatedValues(List<LiteralNode> values)
public boolean isByUid()
public void setByUid(boolean byUid)
byUid
- The byUid to set.public UpdateQuery clone()
clone
in class AbstractDMLQuery
public void addUpdateColumn(UpdateColumn updateColumn)
public List<UpdateColumn> getUpdatedColumns()
public void setSelfIncrementedUpdateColumn(boolean selfIncrementedUpdateColumn)
public boolean isForceUnderTransaction()
isForceUnderTransaction
in interface Query
isForceUnderTransaction
in class AbstractDMLQuery
public BatchResponsePacket executePreparedValuesBatch(ISpaceProxy space, Transaction transaction, GPreparedStatement.PreparedValuesCollection preparedValuesCollection) throws SQLException
AbstractDMLQuery
executePreparedValuesBatch
in class AbstractDMLQuery
SQLException
Copyright © GigaSpaces.