org.eclipse.emf.cdo.common.lock
Class CDOLockUtil

java.lang.Object
  extended by org.eclipse.emf.cdo.common.lock.CDOLockUtil

public final class CDOLockUtil
extends Object

Various static methods that may help with classes related to CDO locks.

Since:
4.1

Method Summary
static String createDurableLockingID()
           
static String createDurableLockingID(int bytes)
           
static IDurableLockingManager.LockArea createLockArea(String durableLockingID)
           
static IDurableLockingManager.LockArea createLockArea(String durableLockingID, String userID, CDOBranchPoint branchPoint, boolean readOnly, Map<CDOID,IDurableLockingManager.LockGrade> locks)
           
static CDOLockChangeInfo createLockChangeInfo(long timestamp, CDOCommonView view, CDOBranch viewedBranch, CDOLockChangeInfo.Operation op, IRWLockManager.LockType lockType, CDOLockState[] cdoLockStates)
           
static CDOLockChangeInfo createLockChangeInfo(long timestamp, CDOLockOwner lockOwner, CDOBranch branch, CDOLockChangeInfo.Operation op, IRWLockManager.LockType lockType, CDOLockState[] cdoLockStates)
           
static CDOLockOwner createLockOwner(CDOCommonView view)
           
static CDOLockState createLockState(Object target)
           
static CDOLockState createLockState(RWOLockManager.LockState<Object,? extends CDOCommonView> lockState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createLockState

public static CDOLockState createLockState(Object target)

createLockState

public static CDOLockState createLockState(RWOLockManager.LockState<Object,? extends CDOCommonView> lockState)

createLockOwner

public static CDOLockOwner createLockOwner(CDOCommonView view)

createLockChangeInfo

public static CDOLockChangeInfo createLockChangeInfo(long timestamp,
                                                     CDOLockOwner lockOwner,
                                                     CDOBranch branch,
                                                     CDOLockChangeInfo.Operation op,
                                                     IRWLockManager.LockType lockType,
                                                     CDOLockState[] cdoLockStates)

createLockChangeInfo

public static CDOLockChangeInfo createLockChangeInfo(long timestamp,
                                                     CDOCommonView view,
                                                     CDOBranch viewedBranch,
                                                     CDOLockChangeInfo.Operation op,
                                                     IRWLockManager.LockType lockType,
                                                     CDOLockState[] cdoLockStates)

createLockArea

public static IDurableLockingManager.LockArea createLockArea(String durableLockingID,
                                                             String userID,
                                                             CDOBranchPoint branchPoint,
                                                             boolean readOnly,
                                                             Map<CDOID,IDurableLockingManager.LockGrade> locks)

createLockArea

public static IDurableLockingManager.LockArea createLockArea(String durableLockingID)

createDurableLockingID

public static String createDurableLockingID()

createDurableLockingID

public static String createDurableLockingID(int bytes)


Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.