org.priha.core.locks
Class QLock.Impl

java.lang.Object
  extended by org.priha.core.locks.QLock.Impl
All Implemented Interfaces:
javax.jcr.lock.Lock
Enclosing class:
QLock

public class QLock.Impl
extends java.lang.Object
implements javax.jcr.lock.Lock

The implementation which is per Session.

Author:
jalkanen

Constructor Summary
QLock.Impl(SessionImpl session)
           
 
Method Summary
 java.lang.String getLockOwner()
           
 java.lang.String getLockToken()
           
 javax.jcr.Node getNode()
           
 QLock getQLock()
           
 boolean isDeep()
           
 boolean isLive()
           
 boolean isSessionScoped()
           
 void refresh()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QLock.Impl

public QLock.Impl(SessionImpl session)
Method Detail

getQLock

public QLock getQLock()

getLockOwner

public java.lang.String getLockOwner()
Specified by:
getLockOwner in interface javax.jcr.lock.Lock

getLockToken

public java.lang.String getLockToken()
Specified by:
getLockToken in interface javax.jcr.lock.Lock

getNode

public javax.jcr.Node getNode()
Specified by:
getNode in interface javax.jcr.lock.Lock

isDeep

public boolean isDeep()
Specified by:
isDeep in interface javax.jcr.lock.Lock

isLive

public boolean isLive()
               throws javax.jcr.RepositoryException
Specified by:
isLive in interface javax.jcr.lock.Lock
Throws:
javax.jcr.RepositoryException

isSessionScoped

public boolean isSessionScoped()
Specified by:
isSessionScoped in interface javax.jcr.lock.Lock

refresh

public void refresh()
             throws javax.jcr.lock.LockException,
                    javax.jcr.RepositoryException
Specified by:
refresh in interface javax.jcr.lock.Lock
Throws:
javax.jcr.lock.LockException
javax.jcr.RepositoryException