User: user57  
  Date: 02/02/16 02:37:54

  Modified:    src/main/org/jboss/ejb EntityPersistenceStore.java
  Added:       src/main/org/jboss/ejb FinderResults.java
  Log:
   o Moved FinderResults to org.jboss.ejb
   o Updated all users of that class
  
  Revision  Changes    Path
  1.12      +1 -2      jboss/src/main/org/jboss/ejb/EntityPersistenceStore.java
  
  Index: EntityPersistenceStore.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/EntityPersistenceStore.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- EntityPersistenceStore.java       3 Dec 2001 23:00:16 -0000       1.11
  +++ EntityPersistenceStore.java       16 Feb 2002 10:37:54 -0000      1.12
  @@ -12,7 +12,6 @@
   import javax.ejb.RemoveException;
   
   import org.jboss.ejb.ContainerPlugin;
  -import org.jboss.util.FinderResults;
   
   /**
    * This interface is implemented by any EntityBean persistence Store.
  @@ -26,7 +25,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Rickard �berg</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Simone Bordet</a>
  - * @version $Revision: 1.11 $
  + * @version $Revision: 1.12 $
    */
   public interface EntityPersistenceStore
      extends ContainerPlugin
  
  
  
  1.1                  jboss/src/main/org/jboss/ejb/FinderResults.java
  
  Index: FinderResults.java
  ===================================================================
  package org.jboss.ejb;
  
  import java.util.Collection;
  import java.util.Iterator;
  import java.util.Map;
  
  /**
   * A collection of keys carrying additional information about the query from
   * which they came. this is used to optimize (or maybe un-deoptimize)
   * multi-finders in the CMPPersistenceManager.
   *
   * @author <a href="mailto:[EMAIL PROTECTED]";>danch</a>
   */
  public class FinderResults implements Collection {
  
     private static long nextListId = 0;
  
     private Collection keys;
     /** hold arbitrary data from the query. This is an object rather than a
      *  string so that we can better support non-relational/non-jdbc storages */
     private Object queryData;
  
     private Object finder;
  
     private Object[] queryArgs;
  
     /**
      * List id is used only in the case of read ahead on load.
      */
     private long listId;
  
     /** Constructor taking the collection of keys to hold and the query data.
      */
     public FinderResults(Collection keys, Object queryData, Object finder, Object[] 
args) {
        this.keys = keys;
        this.queryData = queryData;
        this.finder = finder;
        this.queryArgs = args;
     }
     public Collection getAllKeys() {
        return keys;
     }
     public void setKeys(Collection newKeys) {
        this.keys = newKeys;
     }
     public Object getQueryData() {
        return queryData;
     }
     public Object getFinder() {
        return finder;
     }
     public Object[] getQueryArgs() {
        return queryArgs;
     }
     public boolean isReadAheadOnLoadUsed() {
        return false;
     }
     public long getListId() {
        return listId;
     }
  
     public int size() {
        return keys.size();
     }
     public boolean isEmpty() {
        return keys.isEmpty();
     }
     public boolean contains(Object o) {
        return keys.contains(o);
     }
     public Iterator iterator() {
        return keys.iterator();
     }
     public Object[] toArray() {
        return keys.toArray();
     }
     public Object[] toArray(Object[] array) {
        return keys.toArray(array);
     }
     public boolean add(Object o) {
        return keys.add(o);
     }
     public boolean remove(Object o) {
        return keys.remove(o);
     }
     public boolean containsAll(Collection otherCollection) {
        return keys.containsAll(otherCollection);
     }
     public boolean addAll(Collection otherCollection) {
        return keys.addAll(otherCollection);
     }
     public boolean removeAll(Collection otherCollection) {
        return keys.removeAll(otherCollection);
     }
     public boolean retainAll(Collection otherCollection) {
        return keys.retainAll(otherCollection);
     }
     public void clear() {
        keys.clear();
     }
  }
  
  
  

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

Reply via email to