Top Description Fields Methods
org.apache.derby.iapi.sql.execute

public Interface ConstantAction

Known Direct Implementers
org.apache.derby.impl.sql.execute.DDLConstantAction, org.apache.derby.impl.sql.execute.GrantRevokeConstantAction, org.apache.derby.impl.sql.execute.LockTableConstantAction, org.apache.derby.impl.sql.execute.MatchingClauseConstantAction, org.apache.derby.impl.sql.execute.MergeConstantAction, org.apache.derby.impl.sql.execute.SetRoleConstantAction, org.apache.derby.impl.sql.execute.SetSchemaConstantAction, org.apache.derby.impl.sql.execute.SetTransactionIsolationConstantAction, org.apache.derby.impl.sql.execute.WriteCursorConstantAction
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.sql.Activation, org.apache.derby.catalog.UUID

This interface describes actions that are ALWAYS performed for a Statement at Execution time. For instance, it is used for DDL statements to describe what they should stuff into the catalogs.

An object satisfying this interface is put into the PreparedStatement and run at Execution time. Thus ConstantActions may be shared across threads and must not store connection/thread specific information in any instance field.

Field Summary

Modifier and TypeField and Description
public static final int
WHEN_MATCHED_THEN_DELETE

clauseType for WHEN MATCHED ...

public static final int
WHEN_MATCHED_THEN_UPDATE

clauseType for WHEN MATCHED ...

public static final int
WHEN_NOT_MATCHED_THEN_INSERT

clauseType for WHEN NOT MATCHED ...

Method Summary

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

Run the ConstantAction.

Field Detail

WHEN_MATCHED_THEN_DELETEback to summary
public static final int WHEN_MATCHED_THEN_DELETE

clauseType for WHEN MATCHED ... THEN DELETE

WHEN_MATCHED_THEN_UPDATEback to summary
public static final int WHEN_MATCHED_THEN_UPDATE

clauseType for WHEN MATCHED ... THEN UPDATE

WHEN_NOT_MATCHED_THEN_INSERTback to summary
public static final int WHEN_NOT_MATCHED_THEN_INSERT

clauseType for WHEN NOT MATCHED ... THEN INSERT

Method Detail

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

Run the ConstantAction.

Parameters
activation:Activation

The execution environment for this constant action.

Exceptions
StandardException:
Thrown on failure