Class FilteredDataChangeStatement
java.lang.Object
org.h2.command.Prepared
org.h2.command.dml.DataChangeStatement
org.h2.command.dml.FilteredDataChangeStatement
Data change statement with WHERE criteria and possibly limited number of
rows.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ExpressionThe WHERE criteria.(package private) ExpressionThe expression with optional maximum number of rows.(package private) TableFilterThe target table filter.Fields inherited from class Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens -
Constructor Summary
ConstructorsConstructorDescriptionFilteredDataChangeStatement(SessionLocal session) Creates new instance of FilteredDataChangeStatement. -
Method Summary
Modifier and TypeMethodDescription(package private) final voidappendFilterCondition(StringBuilder builder, int sqlFlags) final Expressionfinal TablegetTable()Return the target table.final TableFilter(package private) final booleannextRow(long limitRows, long count) final voidsetCondition(Expression condition) voidsetFetch(Expression fetch) final voidsetTableFilter(TableFilter tableFilter) Methods inherited from class DataChangeStatement
getStatementName, isCacheable, isTransactional, queryMeta, update, updateMethods inherited from class Prepared
checkCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, getType, isQuery, isReadOnly, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, toString
-
Field Details
-
condition
Expression conditionThe WHERE criteria. -
targetTableFilter
TableFilter targetTableFilterThe target table filter. -
fetchExpr
Expression fetchExprThe expression with optional maximum number of rows.
-
-
Constructor Details
-
FilteredDataChangeStatement
FilteredDataChangeStatement(SessionLocal session) Creates new instance of FilteredDataChangeStatement.- Parameters:
session- the session
-
-
Method Details
-
getTable
Description copied from class:DataChangeStatementReturn the target table.- Specified by:
getTablein classDataChangeStatement- Returns:
- the target table
-
setTableFilter
-
getTableFilter
-
setCondition
-
getCondition
-
setFetch
-
nextRow
final boolean nextRow(long limitRows, long count) -
appendFilterCondition
-