Package org.apache.jena.query
Enum TxnType
- All Implemented Interfaces:
Serializable,Comparable<TxnType>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTransaction mode:WRITE: this guarantees a WRITE will complete ifcommit()is called. -
Method Summary
Modifier and TypeMethodDescriptionstatic TxnTypeConvert aReadWritemode toTxnTypestatic ReadWriteConvert aTxnTypemode toReadWrite: "promote" not supported.static ReadWriteTranslate aTxnTypeto it's initialReadWritemode.static TxnTypepromote(Transactional.Promote promoteMode) Convert aTxnTypemode toReadWrite: "promote" not supported.static TxnTypeReturns the enum constant of this type with the specified name.static TxnType[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
READ
Transaction mode:WRITE: this guarantees a WRITE will complete ifcommit()is called. The same asbegin(ReadWrite.WRITE).READ: the transaction can not promote to WRITE,ensuring read-only access to the data. The same asbegin(ReadWrite.READ).READ_PROMOTE: the transaction will go from "read" to "write" if the dataset has not been modified but if it has, the promotion fails with exception.READ_COMMITTED_PROMOTE: Use this with care. The promotion will succeed but changes from other transactions become visible.
begin). IfREAD_PROMOTE, the dataset must not have changed; ifREAD_COMMITTED_PROMOTEany intermediate changes are visible but the application can not assume any data it has read in the transaction is the same as it was at the point the transaction started. -
WRITE
-
READ_PROMOTE
-
READ_COMMITTED_PROMOTE
-
-
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
convert
Convert aReadWritemode toTxnType -
convert
Convert aTxnTypemode toReadWrite: "promote" not supported. -
initial
Translate aTxnTypeto it's initialReadWritemode.WRITE -> WRITE,READ* -> READregardless of promotion setting. -
promote
Convert aTxnTypemode toReadWrite: "promote" not supported.
-