Class EncryptContainerUndoOperation

    • Constructor Detail

      • EncryptContainerUndoOperation

        public EncryptContainerUndoOperation​(EncryptContainerOperation op)
        Set up a Encrypt Container undo operation during run time rollback
        Parameters:
        op - Encrypt contaner operatation that is to be undone.
      • EncryptContainerUndoOperation

        public EncryptContainerUndoOperation()
    • Method Detail

      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException - cannot read log record from log stream
        java.lang.ClassNotFoundException - cannot read ByteArray object
      • getTypeFormatId

        public int getTypeFormatId()
        Return my format identifier.
        Specified by:
        getTypeFormatId in interface TypedFormat
        Returns:
        The identifier. (A UUID stuffed in an array of 16 bytes).
      • getPreparedLog

        public ByteArray getPreparedLog()
        the default for prepared log is always null for all the operations that don't have optionalData. If an operation has optional data, the operation need to prepare the optional data for this method. Encrypt Conatainer Undo Operation has no optional data to write out
        Specified by:
        getPreparedLog in interface Loggable
      • releaseResource

        public void releaseResource​(Transaction xact)
        Description copied from interface: Loggable
        Release any resource that was acquired for doMe for rollback or recovery redo. This resource is acquired in either generateUndo (if this is a compensation operation during run time rollback or recovery rollback) or in needsRedo (if this is during recovery redo). The run time transaction context should have all the resource already acquird for run time roll forward, so there is no need to releaseResource during run time roll forward. This method must be safe to be called multiple times.
        Specified by:
        releaseResource in interface Loggable
      • group

        public int group()
        Description copied from interface: Loggable
        Get the loggable's group value
        Specified by:
        group in interface Loggable
      • toString

        public java.lang.String toString()
        DEBUG: Print self.
        Overrides:
        toString in class java.lang.Object