Undoable
| Modifier and Type | Field and Description |
|---|---|
| private ContainerKey |
| Access | Constructor and Description |
|---|---|
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | doMe(Transaction
transaction doing the operation. tran, LogInstant log instant for this operation. instant, LimitObjectInput unused by this log operation. in)Implements org. Containers are not encryped on a redo. |
| public Compensation | generateUndo(Transaction
the transaction doing the compensating tran, LimitObjectInput optional input; not used by this operation. in)Implements org. Generate a Compensation (EncryptContainerUndoOperation) that will rollback the changes made to the container during container encryption. |
| public ByteArray | getPreparedLog()
Implements org. the default for prepared log is always null for all the operations that don't have optionalData. |
| public int | getTypeFormatId()
Implements org. Return my format identifier. |
| public int | group()
Implements org. A space operation is a RAWSTORE log record |
| public boolean | Returns: true, if this operation needs to be redone during recovery.the transaction that is doing the rollback xact)Implements org. Check if this operation needs to be redone during recovery redo. |
| public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public void | releaseResource(Transaction tran)
Implements org. Release any resource that was acquired for doMe for rollback or recovery redo. |
| public String | |
| public void | undoMe(Transaction
the transaction that is undoing this operation tran)Undo of encrytpion of the container. |
| public void | writeExternal(ObjectOutput
the stream to write the object to out)Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| containerId | back to summary |
|---|---|
| private ContainerKey containerId | |
| EncryptContainerOperation | back to summary |
|---|---|
| protected EncryptContainerOperation(RawContainerHandle hdl) throws StandardException | |
| EncryptContainerOperation | back to summary |
|---|---|
| public EncryptContainerOperation() | |
| doMe | back to summary |
|---|---|
| public final void doMe(Transaction tran, LogInstant instant, LimitObjectInput in) throws StandardException Implements org. Containers are not encryped on a redo. Nothing to do in this method.
| |
| generateUndo | back to summary |
|---|---|
| public Compensation generateUndo(Transaction tran, LimitObjectInput in) throws StandardException Implements org. Generate a Compensation (EncryptContainerUndoOperation) that will rollback the changes made to the container during container encryption.
| |
| getPreparedLog | back to summary |
|---|---|
| public ByteArray getPreparedLog() Implements org. 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 Operation has no optional data to write out | |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Implements org. Return my format identifier.
| |
| group | back to summary |
|---|---|
| public int group() Implements org. A space operation is a RAWSTORE log record | |
| needsRedo | back to summary |
|---|---|
| public boolean needsRedo(Transaction xact) throws StandardException Implements org. Check if this operation needs to be redone during recovery redo. Returns true if this op should be redone during recovery redo,
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Doc from java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| releaseResource | back to summary |
|---|---|
| public void releaseResource(Transaction tran) Implements org. Doc from org. 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. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. debug
| |
| undoMe | back to summary |
|---|---|
| public void undoMe(Transaction tran) throws StandardException Undo of encrytpion of the container. Original version of the container that existed before the start of the database encryption is put back.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |