KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > taskman > DefaultTxIdFactory


1 package org.sapia.taskman;
2
3 import org.sapia.taskman.transaction.TransactionIdFactory;
4
5 /**
6  * @author Yanick Duchesne
7  *
8  * <dl>
9  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2004 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
10  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
11  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
12  * </dl>
13  */

14 public class DefaultTxIdFactory implements TransactionIdFactory{
15   
16   int _id;
17   
18   /**
19    * @see org.sapia.taskman.transaction.TransactionIdFactory#newTxId()
20    */

21   public Object JavaDoc newTxId() {
22     return new Integer JavaDoc(++_id);
23   }
24
25 }
26
Popular Tags