1 package org.sapia.taskman;2 3 import org.sapia.taskman.transaction.TransactionIdFactory;4 5 /**6 * @author Yanick Duchesne7 *8 * <dl>9 * <dt><b>Copyright:</b><dd>Copyright © 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 the11 * <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 newTxId() {22 return new Integer (++_id);23 }24 25 }26