/*
 * JBoss, the OpenSource J2EE webOS
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package org.jboss.test.idgen.ejb;

import java.io.ObjectStreamException;
import java.rmi.RemoteException;
import javax.ejb.CreateException;

/**
 *      
 *   @author Rickard Oberg
 *   @author $Author: starksm $
 *   @version $Revision: 1.2.26.2 $
 */
public class IdCounterBeanCMP
   extends IdCounterBean
{
   public String name;
   public long currentValue;
   
   public long getCurrentValue()
   {
        return currentValue;
   }
    
   public void setCurrentValue(long current)
   {
    this.currentValue = current;
   }
   
   public String getName()
   {
    return name;
   }
    
   public void setName(String beanName)
   {
    this.name = beanName;
   }
   
   public String ejbCreate(String name) 
      throws RemoteException, CreateException
   { 
      setName(name);
      currentValue = 0;
        
      return null;
   }
   
   public void ejbPostCreate(String name) 
      throws RemoteException, CreateException
   { 
   }
}