addOperation() throws Exception

Description

Adds the database operation to the current event, either <tran> element or <dbEvent> element. If the event type exists and it already contains an operation, it returns null. Otherwise, it returns a String, the Element of the current operation.

syntax

org.dom4j.Element addOperation(java.lang.String operName,                                java.lang.String schemaName) 

Parameters

operName – The name of the SQL operation, such as insert, update, delete, exec.

schemaName – The name of the target table.