Class AbstractCDOLockState
java.lang.Object
org.eclipse.emf.cdo.spi.common.lock.AbstractCDOLockState
- All Implemented Interfaces:
CDOBranchProvider
,CDOIdentifiable
,CDOLockState
,CDOIDAndBranch
,InternalCDOLockState
- Since:
- 4.15
- Author:
- Eike Stepper
- No Extend
- This class is not intended to be extended by clients.
-
Field Summary
Fields inherited from interface org.eclipse.emf.cdo.common.lock.CDOLockState
DEPTH_INFINITE, DEPTH_NONE
Fields inherited from interface org.eclipse.emf.cdo.spi.common.lock.InternalCDOLockState
UNLOCKED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract CDOLockDelta
addOptionOwner
(CDOLockOwner owner) final CDOLockDelta
addOwner
(CDOLockOwner owner, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type) final void
addReadLockOwner
(CDOLockOwner owner) Deprecated.protected abstract CDOLockDelta
addReadOwner
(CDOLockOwner owner) protected abstract CDOLockDelta
addWriteOwner
(CDOLockOwner owner) static void
appendLockOwner
(StringBuilder builder, CDOLockOwner lockOwner) static void
appendLockOwner
(StringBuilder builder, CDOLockOwner lockOwner, boolean first) final CDOLockDelta[]
clearOwner
(CDOLockOwner owner) final void
dispose()
Deprecated.final boolean
final CDOBranch
final CDOID
getID()
final Object
Gets a unique identifier for the object that is locked; typically aCDOID
or aCDOIDAndBranch
, depending on whether branching support is enabled or notfinal int
hashCode()
void
protected abstract CDOLockDelta
removeOptionOwner
(CDOLockOwner owner) final boolean
removeOwner
(CDOLockOwner owner) Deprecated.final CDOLockDelta
removeOwner
(CDOLockOwner owner, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type) final boolean
removeReadLockOwner
(CDOLockOwner owner) Deprecated.protected abstract CDOLockDelta
removeReadOwner
(CDOLockOwner owner) protected abstract CDOLockDelta
removeWriteOwner
(CDOLockOwner owner) final void
setWriteLockOwner
(CDOLockOwner owner) Deprecated.final void
setWriteOptionOwner
(CDOLockOwner owner) Deprecated.final String
toString()
final void
updateFrom
(Object object, CDOLockState source) Deprecated.final void
updateFrom
(CDOLockState source) Deprecated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.emf.cdo.common.lock.CDOLockState
getReadLockOwners, getWriteLockOwner, getWriteOptionOwner, isLocked
Methods inherited from interface org.eclipse.emf.cdo.spi.common.lock.InternalCDOLockState
remapOwner
-
Field Details
-
lockedObject
-
-
Constructor Details
-
AbstractCDOLockState
-
-
Method Details
-
getLockedObject
Description copied from interface:CDOLockState
Gets a unique identifier for the object that is locked; typically aCDOID
or aCDOIDAndBranch
, depending on whether branching support is enabled or not- Specified by:
getLockedObject
in interfaceCDOLockState
- Returns:
- the identifier
-
getID
- Specified by:
getID
in interfaceCDOIdentifiable
-
remapID
- Specified by:
remapID
in interfaceInternalCDOLockState
-
getBranch
- Specified by:
getBranch
in interfaceCDOBranchProvider
- Specified by:
getBranch
in interfaceCDOIDAndBranch
-
hashCode
public final int hashCode() -
equals
-
toString
-
addOwner
public final CDOLockDelta addOwner(CDOLockOwner owner, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type) - Specified by:
addOwner
in interfaceInternalCDOLockState
-
removeOwner
public final CDOLockDelta removeOwner(CDOLockOwner owner, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type) - Specified by:
removeOwner
in interfaceInternalCDOLockState
-
clearOwner
- Specified by:
clearOwner
in interfaceInternalCDOLockState
-
addReadOwner
-
addWriteOwner
-
addOptionOwner
-
removeReadOwner
-
removeWriteOwner
-
removeOptionOwner
-
addReadLockOwner
Deprecated.- Specified by:
addReadLockOwner
in interfaceInternalCDOLockState
-
removeReadLockOwner
Deprecated.- Specified by:
removeReadLockOwner
in interfaceInternalCDOLockState
-
setWriteLockOwner
Deprecated.- Specified by:
setWriteLockOwner
in interfaceInternalCDOLockState
-
setWriteOptionOwner
Deprecated.- Specified by:
setWriteOptionOwner
in interfaceInternalCDOLockState
-
removeOwner
Deprecated.- Specified by:
removeOwner
in interfaceInternalCDOLockState
-
updateFrom
Deprecated.Description copied from interface:InternalCDOLockState
Update thelockOwners
of this lock state from the one passed in.- Specified by:
updateFrom
in interfaceInternalCDOLockState
-
updateFrom
Deprecated.- Specified by:
updateFrom
in interfaceInternalCDOLockState
-
dispose
Deprecated.- Specified by:
dispose
in interfaceInternalCDOLockState
-
appendLockOwner
-
appendLockOwner
-