java.lang.Object
org.apache.derby.impl.store.raw.log.LogRecord
- All Implemented Interfaces:
- java.io.Externalizable, org.apache.derby.iapi.services.io.Formatable, java.io.Serializable, org.apache.derby.iapi.services.io.TypedFormat
- public class LogRecord
- extends java.lang.Object
- implements org.apache.derby.iapi.services.io.Formatable
The log record written out to disk. This log record includes:
The is a holder object that may be setup using the setValue() and re-used
rather than creating a new object for each actual log record.
The format of a log record is
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xactId
private org.apache.derby.iapi.store.raw.xact.TransactionId xactId
op
private org.apache.derby.iapi.store.raw.Loggable op
group
private int group
input
transient java.io.ObjectInput input
formatLength
private static final int formatLength
LogRecord
public LogRecord()
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Write this out.
- Specified by:
writeExternal in interface java.io.Externalizable
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Read this in
- Specified by:
readExternal in interface java.io.Externalizable
getTypeFormatId
public int getTypeFormatId()
- Return my format identifier.
- Specified by:
getTypeFormatId in interface org.apache.derby.iapi.services.io.TypedFormat
setValue
public void setValue(org.apache.derby.iapi.store.raw.xact.TransactionId xactId,
org.apache.derby.iapi.store.raw.Loggable op)
formatOverhead
public static int formatOverhead()
maxGroupStoredSize
public static int maxGroupStoredSize()
maxTransactionIdStoredSize
public static int maxTransactionIdStoredSize(org.apache.derby.iapi.store.raw.xact.TransactionId tranId)
getStoredSize
public static int getStoredSize(int group,
org.apache.derby.iapi.store.raw.xact.TransactionId xactId)
getTransactionId
public org.apache.derby.iapi.store.raw.xact.TransactionId getTransactionId()
throws java.io.IOException,
java.lang.ClassNotFoundException
getLoggable
public org.apache.derby.iapi.store.raw.Loggable getLoggable()
throws java.io.IOException,
java.lang.ClassNotFoundException
getRePreparable
public org.apache.derby.iapi.store.raw.RePreparable getRePreparable()
throws java.io.IOException,
java.lang.ClassNotFoundException
skipLoggable
public void skipLoggable()
throws org.apache.derby.iapi.error.StandardException
- Skip over the loggable. Set the input stream to point ot after the
loggable as if the entire log record has been sucked in by the log
record
getUndoable
public org.apache.derby.iapi.store.raw.Undoable getUndoable()
throws java.io.IOException,
java.lang.ClassNotFoundException
isCLR
public boolean isCLR()
isFirst
public boolean isFirst()
isComplete
public boolean isComplete()
isPrepare
public boolean isPrepare()
requiresPrepareLocks
public boolean requiresPrepareLocks()
isCommit
public boolean isCommit()
isAbort
public boolean isAbort()
group
public int group()
isChecksum
public boolean isChecksum()