public enum DbOperationType extends java.lang.Enum<DbOperationType> implements Loggable
| Enum Constant and Description |
|---|
CREATE |
NONE |
REMOVE |
RENAME |
TRUNCATE |
UPDATE_CONFIG |
| Modifier and Type | Method and Description |
|---|---|
void |
dumpLog(java.lang.StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
int |
getLogSize() |
long |
getTransactionId() |
static boolean |
isWriteConfigType(DbOperationType opType)
Return true if this databaes operation type needs to write
DatabaseConfig.
|
boolean |
logicalEquals(Loggable other) |
void |
readFromLog(java.nio.ByteBuffer itemBuffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
static DbOperationType |
readTypeFromLog(java.nio.ByteBuffer entryBuffer,
int 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.
|
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
public static final DbOperationType UPDATE_CONFIG
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 namejava.lang.NullPointerException - if the argument is nullpublic static DbOperationType readTypeFromLog(java.nio.ByteBuffer entryBuffer, int entryVersion)
public int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(java.nio.ByteBuffer logBuffer)
LoggablewriteToLog in interface LoggablelogBuffer - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)public void readFromLog(java.nio.ByteBuffer itemBuffer,
int entryVersion)
LoggablereadFromLog in interface LoggableLoggable.readFromLog(java.nio.ByteBuffer, int)public void dumpLog(java.lang.StringBuilder sb,
boolean verbose)
LoggabledumpLog in interface Loggablesb - destination string bufferverbose - if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuilder, boolean)public long getTransactionId()
getTransactionId in interface LoggableLoggable.getTransactionId()public boolean logicalEquals(Loggable other)
logicalEquals in interface LoggableLoggable.logicalEquals(com.sleepycat.je.log.Loggable)public static boolean isWriteConfigType(DbOperationType opType)
Copyright (c) 2004-2012 Oracle. All rights reserved.