addOperation() throws Exception

Adds the database operation to the current event, either the <tran> element or the <dbEvent> element. If the event type exists and already contains an operation, addOperation()throws Exception 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 SQL operation, such as insert, update, delete, or exec.
  • schemaName – the target table.