public abstract class BaseEntry extends java.lang.Object implements LogEntry
| Modifier and Type | Field and Description |
|---|---|
(package private) LogEntryType |
entryType |
| Constructor and Description |
|---|
BaseEntry()
Constructor to write an entry.
|
BaseEntry(java.lang.Class<?> logClass)
Constructor to read an entry.
|
| Modifier and Type | Method and Description |
|---|---|
LogEntry |
clone() |
abstract java.lang.StringBuilder |
dumpEntry(java.lang.StringBuilder sb,
boolean verbose)
Print out the contents of an entry.
|
int |
getLastLoggedSize()
By default, return zero because the last logged size is unknown.
|
LogEntryType |
getLogType() |
(package private) static java.lang.reflect.Constructor<?> |
getNoArgsConstructor(java.lang.Class<?> logClass) |
java.lang.Object |
getResolvedItem(DatabaseImpl dbImpl)
By default, this log entry is complete and does not require fetching
additional entries.
|
boolean |
isDeleted()
Returns true if this item should be counted as obsoleted when logged.
|
(package private) java.lang.Object |
newInstanceOfType() |
(package private) static java.lang.Object |
newInstanceOfType(java.lang.reflect.Constructor<?> noArgsConstructor) |
void |
postFetchInit(DatabaseImpl dbImpl) |
void |
postLogWork(LogEntryHeader header,
long justLoggedLsn)
Do any processing we need to do after logging, while under the logging
latch.
|
void |
setLogType(LogEntryType entryType)
Inform a BaseEntry instance of its corresponding LogEntryType.
|
java.lang.String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdumpRep, getDbId, getMainItem, getSize, getTransactionId, logicalEquals, readEntry, writeEntryLogEntryType entryType
BaseEntry(java.lang.Class<?> logClass)
BaseEntry()
static java.lang.reflect.Constructor<?> getNoArgsConstructor(java.lang.Class<?> logClass)
java.lang.Object newInstanceOfType()
static java.lang.Object newInstanceOfType(java.lang.reflect.Constructor<?> noArgsConstructor)
public void setLogType(LogEntryType entryType)
setLogType in interface LogEntrypublic LogEntryType getLogType()
getLogType in interface LogEntrypublic java.lang.Object getResolvedItem(DatabaseImpl dbImpl)
getResolvedItem in interface LogEntrypublic int getLastLoggedSize()
getLastLoggedSize in interface LogEntrypublic boolean isDeleted()
public void postLogWork(LogEntryHeader header, long justLoggedLsn)
postLogWork in interface LogEntryDatabaseException - from subclasses.public void postFetchInit(DatabaseImpl dbImpl)
public abstract java.lang.StringBuilder dumpEntry(java.lang.StringBuilder sb,
boolean verbose)
LogEntrypublic LogEntry clone()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2004-2012 Oracle. All rights reserved.