|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<DbOperationType>
com.sleepycat.je.log.entry.DbOperationType
public enum DbOperationType
DbOperationType is a persistent enum used in NameLNLogEntries. It supports replication of database operations by documenting the type of api operation which instigated the logging of a NameLN.
| Enum Constant Summary | |
|---|---|
CREATE
|
|
NONE
|
|
REMOVE
|
|
RENAME
|
|
TRUNCATE
|
|
| Method Summary | |
|---|---|
void |
dumpLog(java.lang.StringBuffer sb,
boolean verbose)
Write the object into the string buffer for log dumping. |
int |
getLogSize()
|
long |
getTransactionId()
|
boolean |
logicalEquals(Loggable other)
|
void |
readFromLog(java.nio.ByteBuffer itemBuffer,
byte entryVersion)
Initialize this object from the data in itemBuf. |
static DbOperationType |
readTypeFromLog(java.nio.ByteBuffer entryBuffer,
byte entryVersion)
|
static DbOperationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DbOperationType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
void |
writeToLog(java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DbOperationType NONE
public static final DbOperationType CREATE
public static final DbOperationType REMOVE
public static final DbOperationType TRUNCATE
public static final DbOperationType RENAME
| Method Detail |
|---|
public static DbOperationType[] values()
for (DbOperationType c : DbOperationType.values()) System.out.println(c);
public static DbOperationType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
public static DbOperationType readTypeFromLog(java.nio.ByteBuffer entryBuffer,
byte entryVersion)
public int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(java.nio.ByteBuffer logBuffer)
Loggable
writeToLog in interface LoggablelogBuffer - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(java.nio.ByteBuffer itemBuffer,
byte entryVersion)
Loggable
readFromLog in interface LoggableLoggable.readFromLog(java.nio.ByteBuffer, byte)
public void dumpLog(java.lang.StringBuffer sb,
boolean verbose)
Loggable
dumpLog in interface Loggablesb - destination string bufferverbose - if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuffer, boolean)public long getTransactionId()
getTransactionId in interface LoggableLoggable.getTransactionId()public boolean logicalEquals(Loggable other)
logicalEquals in interface LoggableLoggable.logicalEquals(com.sleepycat.je.log.Loggable)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||