Interface IsolationLevel
- All Superinterfaces:
TransactionSetting
- All Known Implementing Classes:
IsolationLevels
A Transaction Isolation Level. Default levels supported by RDF4J are provided by
IsolationLevels, third-party
triplestore implementors may choose to add additional IsolationLevel implementations if their triplestore's isolation
contract is different from what is provided by default.- Author:
- Jeen Broekstra
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringShared constant for theTransactionSettingname used for isolation levels. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetName()The globally unique transaction settings name.default StringgetValue()The value for this transaction setting.booleanisCompatibleWith(IsolationLevel otherLevel) Verifies if this transaction isolation level is compatible with the supplied other isolation level - that is, if this transaction isolation level offers at least the same guarantees as the other level.
-
Field Details
-
NAME
Shared constant for theTransactionSettingname used for isolation levels.
-
-
Method Details
-
isCompatibleWith
Verifies if this transaction isolation level is compatible with the supplied other isolation level - that is, if this transaction isolation level offers at least the same guarantees as the other level. By definition, every transaction isolation level is compatible with itself.- Parameters:
otherLevel- an other isolation level to check compatibility against.- Returns:
- true iff this isolation level is compatible with the supplied other isolation level, false otherwise.
-
getName
Description copied from interface:TransactionSettingThe globally unique transaction settings name. Warning: do not use double underscore (__) in the name.- Specified by:
getNamein interfaceTransactionSetting- Returns:
- the name of this setting, typically its canonical class name
-
getValue
Description copied from interface:TransactionSettingThe value for this transaction setting.- Specified by:
getValuein interfaceTransactionSetting- Returns:
- a string representation of the value
-