Class OVersionRecordConflictStrategy
java.lang.Object
com.orientechnologies.orient.core.conflict.OVersionRecordConflictStrategy
- All Implemented Interfaces:
ORecordConflictStrategy
- Direct Known Subclasses:
OAutoMergeRecordConflictStrategy,OContentRecordConflictStrategy
Default strategy that checks the record version number: if the current update has a version
different than stored one, then a OConcurrentModificationException is thrown.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckVersions(ORecordId rid, int iRecordVersion, int iDatabaseVersion) getName()byte[]onUpdate(OStorage storage, byte iRecordType, ORecordId rid, int iRecordVersion, byte[] iRecordContent, AtomicInteger iDatabaseVersion)
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
OVersionRecordConflictStrategy
public OVersionRecordConflictStrategy()
-
-
Method Details
-
onUpdate
public byte[] onUpdate(OStorage storage, byte iRecordType, ORecordId rid, int iRecordVersion, byte[] iRecordContent, AtomicInteger iDatabaseVersion) - Specified by:
onUpdatein interfaceORecordConflictStrategy
-
getName
- Specified by:
getNamein interfaceORecordConflictStrategy
-
checkVersions
-