java.lang.Object
io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.LogMinerEventAdapter
io.debezium.connector.oracle.logminer.processor.infinispan.marshalling.XmlWriteEventAdapter

@ProtoAdapter(XmlWriteEvent.class) public class XmlWriteEventAdapter extends LogMinerEventAdapter
A LogMiner event that represents a XML_WRITE event type.
Author:
Chris Cranford
  • Constructor Details

    • XmlWriteEventAdapter

      public XmlWriteEventAdapter()
  • Method Details

    • factory

      @ProtoFactory public XmlWriteEvent factory(int eventType, String scn, String tableId, String rowId, String rsId, String changeTime, String xml, Integer length)
      A ProtoStream factory that creates XmlWriteEvent 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
      xml - the xml document
      length - the length of the document
      Returns:
      the constructed DmlEvent
    • getXml

      @ProtoField(number=7) public String getXml(XmlWriteEvent event)
      A ProtoStream handler to extract the xml field from the XmlWriteEvent.
      Parameters:
      event - the event instance, must not be null
      Returns:
      the xml
    • getLength

      @ProtoField(number=8, required=true) public Integer getLength(XmlWriteEvent event)
      A ProtoStream handler to extract the length of the XML field from the XmlWriteEvent.
      Parameters:
      event - the event instance, must not be null
      Returns:
      the length, never null