Servertec
Persistent Object Store
1.4.1 09/04/2005

stec.pos
Class Lock

java.lang.Object
  extended by stec.pos.Lock

public final class Lock
extends java.lang.Object

Represents an item lock.

Since:
1.3.2 05/03/2004
See Also:
Locker

Method Summary
 java.lang.Object getReference()
          Returns the reference this locks is for.
 boolean isReadLock()
          Returns whether this lock represents a read lock.
 boolean isWriteLock()
          Returns whether this lock represents a write lock.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getReference

public final java.lang.Object getReference()
Returns the reference this locks is for.

Returns:
the reference this locks is for.

isReadLock

public boolean isReadLock()
Returns whether this lock represents a read lock.

Returns:
whether this lock represents a read lock.

isWriteLock

public boolean isWriteLock()
Returns whether this lock represents a write lock.

Returns:
whether this lock represents a write lock.

Servertec
Persistent Object Store
1.4.1 09/04/2005

Copyright © 2001-2005 Servertec. All rights reserved.