Package org.alfresco.repo.domain.locks
Class LockDetails
- java.lang.Object
-
- org.alfresco.repo.domain.locks.LockDetails
-
public class LockDetails extends Object
Class to contain details regarding a lock. A lock is specific to a given qualified name. For any given lock, there may exist an EXCLUSIVE lock or several SHARED locks.- Since:
- 3.2
- Author:
- Derek Hulley
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLockDetails.LockTypeThe type of lock
-
Constructor Summary
Constructors Constructor Description LockDetails(String txnId, QName lockQName, LockDetails.LockType lockType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QNamegetLockQName()LockDetails.LockTypegetLockType()StringgetTxnId()
-
-
-
Constructor Detail
-
LockDetails
public LockDetails(String txnId, QName lockQName, LockDetails.LockType lockType)
- Parameters:
txnId- the transaction holding the locklockQName- the qualified name of the locklockType- the type of lock
-
-
Method Detail
-
getTxnId
public String getTxnId()
- Returns:
- Returns the transaction holding the lock
-
getLockQName
public QName getLockQName()
- Returns:
- Returns the qualified name of the lock
-
getLockType
public LockDetails.LockType getLockType()
- Returns:
- Returns the lock type
-
-