org.apache.lenya.transaction
Class Lock

java.lang.Object
  extended by org.apache.lenya.transaction.Lock

public class Lock
extends java.lang.Object

A lock on a transactionable.

Version:
$Id: Lock.java 473861 2006-11-12 03:51:14Z gregor $

Constructor Summary
protected Lock(int version)
          Ctor.
 
Method Summary
 int getVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lock

protected Lock(int version)
Ctor.

Parameters:
version - The version of the transactionable when it was locked.
Method Detail

getVersion

public int getVersion()
Returns:
The version number.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.