Package com.im.ijcs.api.ddl
Interface Operation
-
- All Superinterfaces:
java.io.Serializable
public interface Operation extends java.io.Serializable
Defines an operation to perform through this service. First create one or more operations then execute them usingexecute(InvocationDescription, DFFeedback)
. Comments: - this approach is generic and could be extended to DML operations. - this can potentially support undo operations, by having canUndo() and undo() methods
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
execute(InvocationDescription desc, com.im.commons.progress.DFFeedback feedback)
Executes the operation.java.lang.String
getOperationId()
java.lang.String
getSchemaId()
Gets the ID of the schema.
-
-
-
Method Detail
-
execute
void execute(InvocationDescription desc, com.im.commons.progress.DFFeedback feedback)
Executes the operation. All changes that need to be applied to the model must be added to the invocation description- Parameters:
desc
- The description of the outcomes of the operation that need to be applied to the model.feedback
- The feedback for reporting operation progress, etc.
-
getOperationId
java.lang.String getOperationId()
- Returns:
- A unique ID for this operation instance
-
getSchemaId
java.lang.String getSchemaId()
Gets the ID of the schema.- Returns:
- The schema ID
-
-