Enum TransactionType
java.lang.Object
java.lang.Enum<TransactionType>
tech.oxfordsemantic.jrdfox.client.TransactionType
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TransactionType>
,java.lang.constant.Constable
public enum TransactionType extends java.lang.Enum<TransactionType>
Determines the type of a transaction on a data store.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description READ_ONLY
Identifies a read-only transaction.READ_WRITE
Identifies a read/write transaction. -
Method Summary
Modifier and Type Method Description static TransactionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TransactionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
READ_ONLY
Identifies a read-only transaction. Multiple read-only transactions can be associated with a data store at any given time; however, no read/write transaction can be started while a read-only transaction is active. -
READ_WRITE
Identifies a read/write transaction. Only one read/write transaction and no read-only transactions can be associated with a data store at any given point in time. Moreover, starting a read/write transaction on a data store will cause any open cursors to throwStaleCursorException
on the next call toadvance()
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-