java.io.Externalizable
, Formatable
, java.io.Serializable
, TypedFormat
Compensation
, LogicalUndoable
, Undoable
AllocPageOperation
, BeginXact
, ChainAllocPageOperation
, CheckpointOperation
, ChecksumOperation
, CompressSpacePageOperation
, CompressSpacePageOperation10_2
, ContainerBasicOperation
, ContainerOperation
, ContainerUndoOperation
, CopyRowsOperation
, DeleteOperation
, EncryptContainerOperation
, EncryptContainerUndoOperation
, EndXact
, InitPageOperation
, InsertOperation
, InvalidatePageOperation
, LogicalPageOperation
, LogicalUndoOperation
, PageBasicOperation
, PhysicalPageOperation
, PhysicalUndoOperation
, PurgeOperation
, RemoveFileOperation
, SetReservedSpaceOperation
, UpdateFieldOperation
, UpdateOperation
public interface Loggable extends Formatable
Modifier and Type | Field | Description |
---|---|---|
static int |
ABORT |
|
static int |
BI_LOG |
|
static int |
CHECKSUM |
|
static int |
COMMIT |
|
static int |
COMPENSATION |
|
static int |
FILE_RESOURCE |
|
static int |
FIRST |
Each loggable belongs to one or more groups of similar functionality.
|
static int |
LAST |
|
static int |
PREPARE |
|
static int |
RAWSTORE |
|
static int |
XA_NEEDLOCK |
Modifier and Type | Method | Description |
---|---|---|
void |
doMe(Transaction xact,
LogInstant instant,
LimitObjectInput in) |
Apply the change indicated by this operation and optional data.
|
ByteArray |
getPreparedLog() |
The log operations are responsible to create the ByteArray, and the log
operations should write out any optional data for the change to the
ByteArray.
|
int |
group() |
Get the loggable's group value
|
boolean |
needsRedo(Transaction xact) |
Determine if the operation should be reapplied in recovery redo.
|
void |
releaseResource(Transaction xact) |
Release any resource that was acquired for doMe for rollback or
recovery redo.
|
getTypeFormatId
static final int FIRST
static final int LAST
static final int COMPENSATION
static final int BI_LOG
static final int COMMIT
static final int ABORT
static final int PREPARE
static final int XA_NEEDLOCK
static final int RAWSTORE
static final int FILE_RESOURCE
static final int CHECKSUM
void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException, java.io.IOException
The available() method of in indicates how much data can be read, i.e. how much was originally written.
xact
- the Transactioninstant
- the log instant of this operationin
- optional datajava.io.IOException
- Can be thrown by any of the methods of in.StandardException
- Standard Derby policy.ByteArray getPreparedLog() throws StandardException
StandardException
- Standard Derby policy.boolean needsRedo(Transaction xact) throws StandardException
The sequence of events in recovery redo of a Loggable operation is:
xact
- The transaction trying to redo this operationStandardException
- Standard Derby policy.releaseResource(org.apache.derby.iapi.store.raw.Transaction)
void releaseResource(Transaction xact)
int group()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.