@ProtoAdapter(RedoSqlDmlEvent.class) public class RedoSqlDmlEventAdapter extends DmlEventAdapter
An Infinispan ProtoStream adapter to marshall RedoSqlDmlEvent instances. This class defines a factory for creating RedoSqlDmlEvent instances when hydrating records from the persisted datastore as well as field handlers to extract values to be marshalled to the protocol buffer stream. The underlying protocol buffer record consists of the following structure:
     message RedoSqlDmlEvent {
         // structure of the super type, DmlEventAdapter
         required string entry = 8;
     }
 
Author:
Chris Cranford
  • Constructor Details

    • RedoSqlDmlEventAdapter

      public RedoSqlDmlEventAdapter()
  • Method Details

    • factory

      @ProtoFactory public RedoSqlDmlEvent factory(int eventType, String scn, String tableId, String rowId, String rsId, String changeTime, LogMinerDmlEntryImpl entry, String redoSql)
      A ProtoStream factory that creates RedoSqlDmlEvent instances.
      Parameters:
      eventType - the event type
      scn - the system change number, must not be null
      tableId - the fully-qualified table name
      rowId - the Oracle row-id the change is associated with
      rsId - the Oracle rollback segment identifier
      changeTime - the time the change occurred
      entry - the parsed SQL statement entry
      redoSql - the redo sql
      Returns:
      the constructed RedoSqlDmlEvent
    • getRedoSql

      @ProtoField(number=8, required=true) public String getRedoSql(RedoSqlDmlEvent event)
      A ProtoStream handler to extract the redoSql field from the RedoSqlDmlEvent.
      Parameters:
      event - the event instance, must not be null
      Returns:
      the redo SQL statement