|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DbType>
com.sleepycat.je.dbi.DbType
public enum DbType
Classifies all databases as specific internal databases or user databases. This can be thought of as a substitute for having DatabaseImpl subclasses for different types of databases. It also identifies each internal database by name.
Enum Constant Summary | |
---|---|
ID
|
|
NAME
|
|
REP_GROUP
|
|
SYNC
|
|
USER
|
|
UTILIZATION
|
|
VLSN_MAP
|
Method Summary | |
---|---|
LN |
createDeletedLN(EnvironmentImpl envImpl)
Creates a deleted LN for use in an optimization in CursorImpl.delete. |
LN |
createUpdatedLN(EnvironmentImpl envImpl,
byte[] newData)
Creates an updated LN for use in an optimization in CursorImpl.putCurrentAlreadyLatchedAndLocked. |
String |
getInternalName()
Returns the DB name for an internal DB type. |
boolean |
isInternal()
Returns true if this is an internal DB, or false if it is a user DB. |
boolean |
mayCreateDeletedLN()
Returns true if createDeletedLN may be called. |
boolean |
mayCreateUpdatedLN()
Returns true if createUpdatedLN may be called. |
static DbType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DbType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
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 DbType ID
public static final DbType NAME
public static final DbType UTILIZATION
public static final DbType REP_GROUP
public static final DbType VLSN_MAP
public static final DbType SYNC
public static final DbType USER
Method Detail |
---|
public static DbType[] values()
for (DbType c : DbType.values()) System.out.println(c);
public static DbType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean isInternal()
public String getInternalName()
EnvironmentFailureException
- if this is not an internal DB type.public boolean mayCreateUpdatedLN()
public LN createUpdatedLN(EnvironmentImpl envImpl, byte[] newData)
EnvironmentFailureException
- if this is not allowed.public boolean mayCreateDeletedLN()
public LN createDeletedLN(EnvironmentImpl envImpl)
EnvironmentFailureException
- if this is not allowed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |