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

public Class ExecuteProcedure

extends Prepared
Class Inheritance
Imports
java.util.ArrayList, org.h2.command.CommandInterface, .Prepared, org.h2.engine.Procedure, .SessionLocal, org.h2.expression.Expression, .Parameter, org.h2.result.ResultInterface, org.h2.util.Utils

This class represents the statement EXECUTE

Field Summary

Modifier and TypeField and Description
private final ArrayList<Expression>
private Procedure
Inherited from org.h2.command.Prepared:
createparametersprepareAlwayssessionsqlStatementsqlTokens

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
getType()

Implements abstract org.h2.command.Prepared.getType.

Get the command type as defined in CommandInterface

public boolean
isQuery()

Overrides org.h2.command.Prepared.isQuery.

Check if this object is a query.

public boolean
isTransactional()

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

Check if this command is transactional.

public ResultInterface
query(long
the maximum number of rows to return
limit
)

Overrides org.h2.command.Prepared.query.

Execute the query.

public ResultInterface
queryMeta()

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

Get an empty result set containing the meta data.

public void
setExpression(int
the index (0 based)
index
,
Expression
the expression
expr
)

Set the expression at the given index.

private void
public void
public long
update()

Overrides org.h2.command.Prepared.update.

Execute the statement.

Inherited from org.h2.command.Prepared:
checkCanceledcheckParameterscollectDependenciesgetCurrentRowNumbergetDatabasegetObjectIdgetParametersgetPersistedObjectIdgetPlanSQLgetPlanSQLgetSessiongetSimpleSQLgetSQLgetSQLTokensisCacheableisReadOnlyisRetryableisWithParamValuesneedRecompilepreparesetCommandsetCurrentRowNumbersetParameterListsetPersistedObjectIdsetPrepareAlwayssetRowsetSessionsetSQLsetWithParamValuestoString

Field Detail

expressionsback to summary
private final ArrayList<Expression> expressions
procedureback to summary
private Procedure procedure

Constructor Detail

ExecuteProcedureback to summary
public ExecuteProcedure(SessionLocal session)

Method Detail

getTypeback to summary
public int getType()

Implements abstract org.h2.command.Prepared.getType.

Doc from org.h2.command.Prepared.getType.

Get the command type as defined in CommandInterface

Returns:int

the statement type

Annotations
@Override
isQueryback to summary
public boolean isQuery()

Overrides org.h2.command.Prepared.isQuery.

Doc from org.h2.command.Prepared.isQuery.

Check if this object is a query.

Returns:boolean

true if it is

Annotations
@Override
isTransactionalback to summary
public 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
queryback to summary
public ResultInterface query(long limit)

Overrides org.h2.command.Prepared.query.

Doc from org.h2.command.Prepared.query.

Execute the query.

Parameters
limit:long

the maximum number of rows to return

Returns:ResultInterface

the result set

Annotations
@Override
queryMetaback to summary
public 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
setExpressionback to summary
public void setExpression(int index, Expression expr)

Set the expression at the given index.

Parameters
index:int

the index (0 based)

expr:Expression

the expression

setParametersback to summary
private void setParameters()
setProcedureback to summary
public void setProcedure(Procedure procedure)
updateback to summary
public 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