com.iplanet.jato.model
Interface ModelExecutionContext

All Known Subinterfaces:
DatasetModelExecutionContext, SQLModelExecutionContext
All Known Implementing Classes:
ModelExecutionContextBase

public interface ModelExecutionContext

Allows developers to customize the execution of an ExecutingModel . This base interface allows developers to provide the name of the operation that should be performed. It also provides some standard operation names for the most common types of operations.

Version:
JATO/1.2.2 $Id: ModelExecutionContext.java,v 1.8 2002/03/16 03:26:31 todd Exp $

Field Summary
static java.lang.String OPERATION_DELETE
          When provided as the operation name for the context, indicates that a delete operation should be performed
static java.lang.String OPERATION_EXECUTE
          When provided as the operation name for the context, indicates that a general execute operation should be performed
static java.lang.String OPERATION_INSERT
          When provided as the operation name for the context, indicates that an insert operation should be performed
static java.lang.String OPERATION_RETRIEVE
          When provided as the operation name for the context, indicates that a retrieve operation should be performed
static java.lang.String OPERATION_UPDATE
          When provided as the operation name for the context, indicates that an update operation should be performed
 
Method Summary
 java.lang.String getOperationName()
          Return the name of the operation that should be performed.
 

Field Detail

OPERATION_RETRIEVE

public static final java.lang.String OPERATION_RETRIEVE
When provided as the operation name for the context, indicates that a retrieve operation should be performed

OPERATION_UPDATE

public static final java.lang.String OPERATION_UPDATE
When provided as the operation name for the context, indicates that an update operation should be performed

OPERATION_INSERT

public static final java.lang.String OPERATION_INSERT
When provided as the operation name for the context, indicates that an insert operation should be performed

OPERATION_DELETE

public static final java.lang.String OPERATION_DELETE
When provided as the operation name for the context, indicates that a delete operation should be performed

OPERATION_EXECUTE

public static final java.lang.String OPERATION_EXECUTE
When provided as the operation name for the context, indicates that a general execute operation should be performed
Method Detail

getOperationName

public java.lang.String getOperationName()
Return the name of the operation that should be performed. In general, if an execution context is provided to an executing model's execute() method, this method must return an operation name appropriate to that model (though some models may use different semantics).
Returns:
The name of the operation to perform