Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

public Class MergeConstantAction

extends Object
implements ConstantAction, Formatable
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.services.io.Formatable, org.apache.derby.iapi.services.io.TypedFormat, java.io.Externalizable, java.io.Serializable, org.apache.derby.iapi.sql.execute.ConstantAction
Imports
java.io.ObjectOutput, .ObjectInput, .IOException, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.util.ArrayUtil, org.apache.derby.iapi.services.io.Formatable, .StoredFormatIds, org.apache.derby.iapi.sql.Activation, org.apache.derby.iapi.sql.execute.ConstantAction, org.apache.derby.shared.common.sanity.SanityManager

Describes the execution machinery needed to evaluate a MERGE statement.

Field Summary

Modifier and TypeField and Description
private MatchingClauseConstantAction[]
private static final int
FIRST_VERSION

Serial version produced by the serialver utility.

Constructor Summary

AccessConstructor and Description
public
MergeConstantAction()

0-arg constructor needed by Formatable machinery

public
MergeConstantAction(ConstantAction[]
Constant actions for WHEN [ NOT ] MATCHED clauses.
matchingClauses
)

Construct from thin air.

Method Summary

Modifier and TypeMethod and Description
public void
executeConstantAction(Activation
The execution environment for this constant action.
activation
)

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

Run the ConstantAction.

public MatchingClauseConstantAction
getMatchingClause(int idx)

Get the ith (0-based) matching clause

public int

Returns:

the formatID of this class
getTypeFormatId
()

Implements org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

Get the formatID which corresponds to this class.

public int
matchingClauseCount()

Get the number of matching clauses

public void
readExternal(ObjectInput
read this.
in
)

Implements java.io.Externalizable.readExternal.

Read this object from a stream of stored objects.

public void
writeExternal(ObjectOutput
write bytes here.
out
)

Implements java.io.Externalizable.writeExternal.

Write this object to a stream of stored objects.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_matchingClausesback to summary
private MatchingClauseConstantAction[] _matchingClauses
FIRST_VERSIONback to summary
private static final int FIRST_VERSION

Serial version produced by the serialver utility. Needed in order to make serialization work reliably across different compilers.

Constructor Detail

MergeConstantActionback to summary
public MergeConstantAction()

0-arg constructor needed by Formatable machinery

MergeConstantActionback to summary
public MergeConstantAction(ConstantAction[] matchingClauses)

Construct from thin air.

Parameters
matchingClauses:ConstantAction[]

Constant actions for WHEN [ NOT ] MATCHED clauses.

Method Detail

executeConstantActionback to summary
public void executeConstantAction(Activation activation) throws StandardException

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

Doc from org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

Run the ConstantAction.

Parameters
activation:Activation

The execution environment for this constant action.

Exceptions
StandardException:
Thrown on failure
getMatchingClauseback to summary
public MatchingClauseConstantAction getMatchingClause(int idx)

Get the ith (0-based) matching clause

getTypeFormatIdback to summary
public int getTypeFormatId()

Implements org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

Get the formatID which corresponds to this class.

Returns:int

the formatID of this class

matchingClauseCountback to summary
public int matchingClauseCount()

Get the number of matching clauses

readExternalback to summary
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException

Implements java.io.Externalizable.readExternal.

Read this object from a stream of stored objects.

Parameters
in:ObjectInput

read this.

Exceptions
IOException:
thrown on error
ClassNotFoundException:
thrown on error
writeExternalback to summary
public void writeExternal(ObjectOutput out) throws IOException

Implements java.io.Externalizable.writeExternal.

Write this object to a stream of stored objects.

Parameters
out:ObjectOutput

write bytes here.

Exceptions
IOException:
thrown on error