Top Description Fields Constructors Methods
org.h2.command.dml

public abstract Class DataChangeStatement

extends Prepared
Class Inheritance
Known Direct Subclasses
org.h2.command.dml.FilteredDataChangeStatement, org.h2.command.dml.MergeUsing, org.h2.command.dml.CommandWithValues
Imports
org.h2.command.Prepared, org.h2.engine.SessionLocal, org.h2.result.ResultInterface, .ResultTarget, org.h2.table.DataChangeDeltaTable.ResultOption, .Table

Data change statement.

Field Summary

Modifier and TypeField and Description
private boolean
Inherited from org.h2.command.Prepared:
createparametersprepareAlwayssessionsqlStatementsqlTokens

Constructor Summary

AccessConstructor and Description
protected
DataChangeStatement(SessionLocal
the session
session
)

Creates new instance of DataChangeStatement.

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract void
public abstract String

Returns:

the short name of this statement.
getStatementName
()

Return the name of this statement.

public abstract Table

Returns:

the target table
getTable
()

Return the target table.

public boolean
public final boolean
isTransactional()

Implements abstract org.h2.command.Prepared.isTransactional.

Check if this command is transactional.

public final void
prepare()

Overrides org.h2.command.Prepared.prepare.

Prepare this statement.

public final ResultInterface
queryMeta()

Implements abstract org.h2.command.Prepared.queryMeta.

Get an empty result set containing the meta data.

public final long
update()

Overrides org.h2.command.Prepared.update.

Execute the statement.

public abstract long

Returns:

the update count
update
(ResultTarget
target result
deltaChangeCollector
,
DataChangeDeltaTable.ResultOption
collection mode
deltaChangeCollectionMode
)

Execute the statement with specified delta change collector and collection mode.

Inherited from org.h2.command.Prepared:
checkCanceledcheckParameterscollectDependenciesgetCurrentRowNumbergetDatabasegetObjectIdgetParametersgetPersistedObjectIdgetPlanSQLgetPlanSQLgetSessiongetSimpleSQLgetSQLgetSQLTokensgetTypeisQueryisReadOnlyisRetryableisWithParamValuesneedRecompilequerysetCommandsetCurrentRowNumbersetParameterListsetPersistedObjectIdsetPrepareAlwayssetRowsetSessionsetSQLsetWithParamValuestoString

Field Detail

isPreparedback to summary
private boolean isPrepared

Constructor Detail

DataChangeStatementback to summary
protected DataChangeStatement(SessionLocal session)

Creates new instance of DataChangeStatement.

Parameters
session:SessionLocal

the session

Method Detail

doPrepareback to summary
pack-priv abstract void doPrepare()
getStatementNameback to summary
public abstract String getStatementName()

Return the name of this statement.

Returns:String

the short name of this statement.

getTableback to summary
public abstract Table getTable()

Return the target table.

Returns:Table

the target table

isCacheableback to summary
public boolean isCacheable()

Overrides org.h2.command.Prepared.isCacheable.

Annotations
@Override
isTransactionalback to summary
public final boolean isTransactional()

Implements abstract org.h2.command.Prepared.isTransactional.

Doc from org.h2.command.Prepared.isTransactional.

Check if this command is transactional. If it is not, then it forces the current transaction to commit.

Returns:boolean

true if it is

Annotations
@Override
prepareback to summary
public final void prepare()

Overrides org.h2.command.Prepared.prepare.

Doc from org.h2.command.Prepared.prepare.

Prepare this statement.

Annotations
@Override
queryMetaback to summary
public final ResultInterface queryMeta()

Implements abstract org.h2.command.Prepared.queryMeta.

Doc from org.h2.command.Prepared.queryMeta.

Get an empty result set containing the meta data.

Returns:ResultInterface

the result set

Annotations
@Override
updateback to summary
public final long update()

Overrides org.h2.command.Prepared.update.

Doc from org.h2.command.Prepared.update.

Execute the statement.

Returns:long

the update count

Annotations
@Override
updateback to summary
public abstract long update(ResultTarget deltaChangeCollector, DataChangeDeltaTable.ResultOption deltaChangeCollectionMode)

Execute the statement with specified delta change collector and collection mode.

Parameters
deltaChangeCollector:ResultTarget

target result

deltaChangeCollectionMode:DataChangeDeltaTable.ResultOption

collection mode

Returns:long

the update count