/*
 * JBoss, the OpenSource EJB server
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
 
package org.jboss.util;

import javax.ejb.EntityBean;
import javax.naming.InitialContext;

/*
 * @author <a href="mailto:michel.anke@wolmail.nl">Michel de Groot</a>
 * @version $Revision: 1.1 $
 */
public class AutoNumberEJB implements EntityBean {
	public String name;
	public Integer value; 
	
	public String ejbCreate(String name) {
		this.name = name;
		this.value = new Integer(0);

		return null;
	}
	
	public void ejbPostCreate(String name) {}
	
	public Integer getValue()  {
		return value;
	}
	
	public void setValue(Integer value)  {
		this.value = value;
	}
	
	public void ejbActivate() {}
	public void ejbPassivate() {}
	public void ejbLoad() {}
	public void ejbStore() {}
	public void ejbRemove() {}
	public void setEntityContext(javax.ejb.EntityContext ec) {}
	public void unsetEntityContext() {}
	
}