org.eclipse.emf.cdo.common.lock

## Class CDOLockUtil

- java.lang.Object
- - org.eclipse.emf.cdo.common.lock.CDOLockUtil

-     public final class CDOLockUtil
      extends java.lang.Object

  Various static methods that may help with classes related to CDO locks.
  Since:
    4.1
  Author:
    Caspar De Groot

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static CDOLockState` | `copyLockState(CDOLockState lockState)`
    `static java.lang.String` | `createDurableLockingID()`
    `static java.lang.String` | `createDurableLockingID(int bytes)`
    `static IDurableLockingManager.LockArea` | `createLockArea(java.lang.String durableLockingID)`
    `static IDurableLockingManager.LockArea` | `createLockArea(java.lang.String durableLockingID, java.lang.String userID, CDOBranchPoint branchPoint, boolean readOnly, java.util.Map<CDOID,IDurableLockingManager.LockGrade> locks)`
    `static CDOLockChangeInfo` | `createLockChangeInfo()`
    `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(java.lang.Object target)`
    `static CDOLockState` | `createLockState(RWOLockManager.LockState<java.lang.Object,? extends CDOCommonView> lockState)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### copyLockState

          public static CDOLockState copyLockState(CDOLockState lockState)

    - #### createLockState

          public static CDOLockState createLockState(java.lang.Object target)

    - #### createLockState

          public static CDOLockState createLockState(RWOLockManager.LockState<java.lang.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()

    - #### 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(java.lang.String durableLockingID,
                                                                       java.lang.String userID,
                                                                       CDOBranchPoint branchPoint,
                                                                       boolean readOnly,
                                                                       java.util.Map<CDOID,IDurableLockingManager.LockGrade> locks)

    - #### createLockArea

          public static IDurableLockingManager.LockArea createLockArea(java.lang.String durableLockingID)

    - #### createDurableLockingID

          public static java.lang.String createDurableLockingID()

    - #### createDurableLockingID

          public static java.lang.String createDurableLockingID(int bytes)

Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html