com.sleepycat.je.log.entry
Interface LogEntry

All Superinterfaces:
Cloneable
All Known Subinterfaces:
NodeLogEntry
All Known Implementing Classes:
INLogEntry, LNLogEntry, SingleItemLogEntry

public interface LogEntry
extends Cloneable

A Log entry allows you to read, write and dump a database log entry. Each entry may be made up of one or more loggable items.


Method Summary
 Object clone()
           
 StringBuffer dumpEntry(StringBuffer sb, boolean verbose)
          Print out the contents of an entry.
 Object getMainItem()
           
 long getTransactionId()
           
 boolean isTransactional()
           
 void readEntry(ByteBuffer entryBuffer, int entrySize, byte entryTypeVersion, boolean readFullItem)
          Read in an log entry.
 

Method Detail

readEntry

public void readEntry(ByteBuffer entryBuffer,
                      int entrySize,
                      byte entryTypeVersion,
                      boolean readFullItem)
               throws DatabaseException
Read in an log entry.

Throws:
DatabaseException

dumpEntry

public StringBuffer dumpEntry(StringBuffer sb,
                              boolean verbose)
Print out the contents of an entry.


getMainItem

public Object getMainItem()
Returns:
the first item of the log entry

clone

public Object clone()
             throws CloneNotSupportedException
Returns:
a shallow clone.
Throws:
CloneNotSupportedException

isTransactional

public boolean isTransactional()
Returns:
true if the LogEntry is a transactional log entry type.

getTransactionId

public long getTransactionId()
Returns:
return the transaction id if this log entry is transactional, 0 otherwise.


Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.