Package com.tailf.cdb
Enum Class CdbDBType
- All Implemented Interfaces:
Serializable
,Comparable<CdbDBType>
,Constable
Database types specified when setting up CDB sessions
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptioncreate a read/write session towards the operational dbcreate a read session toward the running database as it was before the current transaction was committed.create a session towards the running dbcreate a session towards the startup db -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CDB_RUNNING
create a session towards the running db -
CDB_STARTUP
create a session towards the startup db -
CDB_OPERATIONAL
create a read/write session towards the operational db -
CDB_PRE_COMMIT_RUNNING
create a read session toward the running database as it was before the current transaction was committed. This is only possible between a notification read by CdbSubscription.read() and the final call of CdbSubscription.sync()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
-