User: danch   
  Date: 01/06/29 21:38:06

  Added:       src/main/org/jboss/test/readahead/interfaces
                        AddressHome.java AddressPK.java AddressRemote.java
                        CMPFindTestEntityHome.java
                        CMPFindTestEntityRemote.java
                        CMPFindTestSessionHome.java
                        CMPFindTestSessionRemote.java
  Log:
  Added tests for readahead functionality. Note that this only checks to see if they 
work: it doesn't verify that it's actually performing well
  
  Revision  Changes    Path
  1.1                  
jbosstest/src/main/org/jboss/test/readahead/interfaces/AddressHome.java
  
  Index: AddressHome.java
  ===================================================================
  package org.jboss.test.readahead.interfaces;
  
  import java.util.Collection;
  import java.rmi.RemoteException;
  import javax.ejb.EJBHome;
  import javax.ejb.CreateException;
  import javax.ejb.FinderException;
  
  /**
   * Home interface for one of the entities used in read-ahead finder tests
   * 
   * @author <a href="mailto:[EMAIL PROTECTED]";>danch (Dan Christopherson</a>
   * @version $Id: AddressHome.java,v 1.1 2001/06/30 04:38:05 danch Exp $
   * 
   * Revision:
   */
  public interface AddressHome extends EJBHome {
     public AddressRemote create(String key, String addressId, String address, 
                                 String city, String state, String zip) throws 
RemoteException, CreateException;
     public AddressRemote findByPrimaryKey(AddressPK primaryKey) throws 
RemoteException, FinderException;
     public Collection findByKey(String key) throws RemoteException, FinderException;
     public Collection findByCity(String city) throws RemoteException, FinderException;
  }
  
  
  1.1                  
jbosstest/src/main/org/jboss/test/readahead/interfaces/AddressPK.java
  
  Index: AddressPK.java
  ===================================================================
  package org.jboss.test.readahead.interfaces;
  
  import java.io.Serializable;
  
  /**
   * Primary key class for one of the entities used in read-ahead finder tests.
   * 
   * @author <a href="mailto:[EMAIL PROTECTED]";>danch (Dan Christopherson</a>
   * @version $Id: AddressPK.java,v 1.1 2001/06/30 04:38:05 danch Exp $
   * 
   * Revision:
   */
  public class AddressPK implements Serializable {
  
     public String key = "";
     public String addressId = "";
  
     public AddressPK() {
     }
  
     public AddressPK(String key, String addressId) {
        this.key = key;
        this.addressId = addressId;
     }
     public boolean equals(Object obj) {
        if (this.getClass().equals(obj.getClass())) {
           AddressPK that = (AddressPK) obj;
           return this.key.equals(that.key) && this.addressId.equals(that.addressId);
        }
        return false;
     }
     public int hashCode() {
        return key.hashCode()+addressId.hashCode();
     }
  }
  
  
  1.1                  
jbosstest/src/main/org/jboss/test/readahead/interfaces/AddressRemote.java
  
  Index: AddressRemote.java
  ===================================================================
  package org.jboss.test.readahead.interfaces;
  
  import java.rmi.RemoteException;
  import javax.ejb.EJBObject;
  
  /**
   * Remote interface for one of the entities used in read-ahead finder tests
   * 
   * @author <a href="mailto:[EMAIL PROTECTED]";>danch (Dan Christopherson</a>
   * @version $Id: AddressRemote.java,v 1.1 2001/06/30 04:38:05 danch Exp $
   * 
   * Revision:
   */
  public interface AddressRemote extends EJBObject {
     public java.lang.String getZip() throws RemoteException;
     public void setZip(java.lang.String newZip) throws RemoteException;
     public java.lang.String getState() throws RemoteException;
     public void setState(java.lang.String newState) throws RemoteException;
     public java.lang.String getCity() throws RemoteException;
     public void setCity(java.lang.String newCity) throws RemoteException;
     public void setAddress(java.lang.String newAddress) throws RemoteException;
     public java.lang.String getAddress() throws RemoteException;
     public java.lang.String getAddressId() throws RemoteException;
     public java.lang.String getKey() throws RemoteException;
     public void setAddressId(java.lang.String newAddressId) throws RemoteException;
  }
  
  
  1.1                  
jbosstest/src/main/org/jboss/test/readahead/interfaces/CMPFindTestEntityHome.java
  
  Index: CMPFindTestEntityHome.java
  ===================================================================
  package org.jboss.test.readahead.interfaces;
  
  import java.util.Collection;
  import java.rmi.RemoteException;
  import javax.ejb.EJBHome;
  import javax.ejb.CreateException;
  import javax.ejb.FinderException;
  
  /**
   * Home interface for one of the entities used in read-ahead finder tests.
   * 
   * @author <a href="mailto:[EMAIL PROTECTED]";>danch (Dan Christopherson</a>
   * @version $Id: CMPFindTestEntityHome.java,v 1.1 2001/06/30 04:38:06 danch Exp $
   * 
   * Revision:
   */
  public interface CMPFindTestEntityHome extends EJBHome {
     public CMPFindTestEntityRemote create(String key) throws RemoteException, 
CreateException;
     public CMPFindTestEntityRemote findByPrimaryKey(String primaryKey) throws 
RemoteException, FinderException;
     public Collection findAll() throws RemoteException, FinderException;
     public Collection findByCity(String city) throws RemoteException, FinderException;
  }
  
  
  1.1                  
jbosstest/src/main/org/jboss/test/readahead/interfaces/CMPFindTestEntityRemote.java
  
  Index: CMPFindTestEntityRemote.java
  ===================================================================
  package org.jboss.test.readahead.interfaces;
  
  import java.rmi.*;
  import javax.ejb.*;
  
  /**
   * REmote interface for one of the entities used in read-ahead finder tests.
   * 
   * @author <a href="mailto:[EMAIL PROTECTED]";>danch (Dan Christopherson</a>
   * @version $Id: CMPFindTestEntityRemote.java,v 1.1 2001/06/30 04:38:06 danch Exp $
   * 
   * Revision:
   */
  public interface CMPFindTestEntityRemote extends EJBObject {
     public java.lang.String getSerialNumber() throws RemoteException;
     public void setSerialNumber(java.lang.String newSerialNumber) throws 
RemoteException;
     public java.lang.String getRank() throws RemoteException;
     public void setRank(java.lang.String newRank) throws RemoteException;
     public java.lang.String getName() throws RemoteException;
     public void setName(java.lang.String newName) throws RemoteException;
     public java.lang.String getKey() throws RemoteException;
  }
  
  
  1.1                  
jbosstest/src/main/org/jboss/test/readahead/interfaces/CMPFindTestSessionHome.java
  
  Index: CMPFindTestSessionHome.java
  ===================================================================
  package org.jboss.test.readahead.interfaces;
  
  import java.rmi.RemoteException;
  import javax.ejb.EJBHome;
  import javax.ejb.CreateException;
  
  /**
   * Home interface for finder read-ahead tests
   * 
   * @author <a href="mailto:[EMAIL PROTECTED]";>danch (Dan Christopherson</a>
   * @version $Id: CMPFindTestSessionHome.java,v 1.1 2001/06/30 04:38:06 danch Exp $
   * 
   * Revision:
   */
  public interface CMPFindTestSessionHome extends EJBHome {
     public CMPFindTestSessionRemote create() throws RemoteException, CreateException;
  }
  
  
  1.1                  
jbosstest/src/main/org/jboss/test/readahead/interfaces/CMPFindTestSessionRemote.java
  
  Index: CMPFindTestSessionRemote.java
  ===================================================================
  package org.jboss.test.readahead.interfaces;
  
  import java.rmi.RemoteException;
  import javax.ejb.EJBObject;
  
  /**
   * Remote interface for session to test read-ahead finders.
   * 
   * @version $Id: CMPFindTestSessionRemote.java,v 1.1 2001/06/30 04:38:06 danch Exp $
   * 
   * Revision:
   */
  public interface CMPFindTestSessionRemote extends EJBObject {
     public void testFinder() throws RemoteException;
     public void testUpdates() throws RemoteException;
     public void testByCity() throws RemoteException;
     public void addressByCity() throws RemoteException;
     public void createTestData() throws RemoteException;
     public void removeTestData() throws RemoteException;
  }
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to