Class TruncateEventAdapter

    • Constructor Detail

      • TruncateEventAdapter

        public TruncateEventAdapter()
    • Method Detail

      • factory

        @ProtoFactory
        public TruncateEvent factory​(int eventType,
                                     String scn,
                                     String tableId,
                                     String rowId,
                                     String rsId,
                                     String changeTime,
                                     LogMinerDmlEntryImpl entry)
        A ProtoStream factory that creates TruncateEvent 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
        Returns:
        the constructed DmlEvent
      • getEntry

        @ProtoField(number=7,
                    required=true)
        public LogMinerDmlEntryImpl getEntry​(TruncateEvent event)
        A ProtoStream handler to extract the entry field from the TruncateEvent.
        Parameters:
        event - the event instance, must not be null
        Returns:
        the LogMinerDmlEntryImpl instance