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.
|
Object |
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, getExpTree, getIfExists, getMinEntriesToWaitFor, getOperationID, getPreparedValues, getProjectionTemplate, getQueryColumns, getQueryResultType, getReadModifier, getRouting, getRownum, getRownumLimit, getSecurityInterceptor, getSession, getTableByAlias, getTableData, getTableData, getTableName, getTablesData, getTimeout, getTypeInfo, isBuildOnly, isContainsQuery, isConvertResultToArray, isDirtyState, isJoined, isPrepared, isReturnResult, isSelectQuery, prepare, setBuildOnly, setContainsQuery, setContainsSubQueries, setConvertResultToArray, setExpTree, setIfExists, setMaxResults, setMinEntriesToWaitFor, setOperationID, setPrepared, setPreparedValues, setProjectionTemplate, setQueryResultType, setReadModifier, setReturnResult, setRouting, setRownum, setSecurityInterceptor, setSession, setTableName, setTemplatePreparedValues, setTimeout, validateBuiltTemplates, validateQuery
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 Object 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.