User: oberg   
  Date: 00/08/25 06:43:42

  Added:       src/main/org/jboss/test/idgen/interfaces IdCounter.java
                        IdCounterHome.java IdGenerator.java
                        IdGeneratorHome.java
  Log:
  Added perf tests and idgen
  
  Revision  Changes    Path
  1.1                  
jbosstest/src/main/org/jboss/test/idgen/interfaces/IdCounter.java
  
  Index: IdCounter.java
  ===================================================================
  /*
   * Copyright 1999 by dreamBean Software,
   * All rights reserved.
   */
  package org.jboss.test.idgen.interfaces;
  
  import java.rmi.*;
  import javax.ejb.*;
  
  /**
   *      
   *   @see <related>
   *   @author $Author: oberg $
   *   @version $Revision: 1.1 $
   */
  public interface IdCounter
     extends EJBObject
  {
     // Constants -----------------------------------------------------
      
     // Attributes ----------------------------------------------------
     
     // Static --------------------------------------------------------
  
     // Constructors --------------------------------------------------
     
     // Public --------------------------------------------------------
     public long getNext()
        throws RemoteException;
                
     public String getName()
        throws RemoteException;
  }
  
  
  
  1.1                  
jbosstest/src/main/org/jboss/test/idgen/interfaces/IdCounterHome.java
  
  Index: IdCounterHome.java
  ===================================================================
  /*
   * Copyright 1999 by dreamBean Software,
   * All rights reserved.
   */
  package org.jboss.test.idgen.interfaces;
  
  import java.util.*;
  import java.rmi.*;
  import javax.ejb.*;
  
  /**
   *      
   *   @see <related>
   *   @author $Author: oberg $
   *   @version $Revision: 1.1 $
   */
  public interface IdCounterHome
     extends EJBHome
  {
     // Constants -----------------------------------------------------
     public static final String COMP_NAME = "java:comp/env/ejb/IdCounter";
     public static final String JNDI_NAME = "idgen/IdCounter";
      
     // Attributes ----------------------------------------------------
     
     // Static --------------------------------------------------------
  
     // Constructors --------------------------------------------------
     
     // Public --------------------------------------------------------
     public IdCounter create(String beanName)
        throws RemoteException, CreateException;
     
     public IdCounter findByPrimaryKey(String beanName)
        throws RemoteException, FinderException;
        
     public Collection findAll()
        throws RemoteException;
  }
  
  
  
  1.1                  
jbosstest/src/main/org/jboss/test/idgen/interfaces/IdGenerator.java
  
  Index: IdGenerator.java
  ===================================================================
  /*
   * Copyright 1999 by dreamBean Software,
   * All rights reserved.
   */
  package org.jboss.test.idgen.interfaces;
  
  import java.rmi.*;
  import javax.ejb.*;
  import javax.naming.*;
  
  /**
   *      
   *   @see <related>
   *   @author $Author: oberg $
   *   @version $Revision: 1.1 $
   */
  public interface IdGenerator
     extends EJBObject
  {
     // Constants -----------------------------------------------------
      
     // Attributes ----------------------------------------------------
     
     // Static --------------------------------------------------------
  
     // Constructors --------------------------------------------------
     
     // Public --------------------------------------------------------
     public long getNewId(String beanName)
        throws RemoteException;
     
  }
  
  
  
  1.1                  
jbosstest/src/main/org/jboss/test/idgen/interfaces/IdGeneratorHome.java
  
  Index: IdGeneratorHome.java
  ===================================================================
  /*
   * Copyright 1999 by dreamBean Software,
   * All rights reserved.
   */
  package org.jboss.test.idgen.interfaces;
  
  import java.rmi.*;
  import javax.ejb.*;
  
  /**
   *      
   *   @see <related>
   *   @author $Author: oberg $
   *   @version $Revision: 1.1 $
   */
  public interface IdGeneratorHome
     extends EJBHome
  {
     // Constants -----------------------------------------------------
     public static final String COMP_NAME = "java:comp/env/ejb/IdGenerator";
     public static final String JNDI_NAME = "idgen/IdGenerator";
      
     // Attributes ----------------------------------------------------
     
     // Static --------------------------------------------------------
  
     // Constructors --------------------------------------------------
     
     // Public --------------------------------------------------------
     public IdGenerator create()
        throws RemoteException;
     
  }
  
  
  

Reply via email to