db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer QueryCustomizer.java QueryCustomizerDefaultImpl.java
Date Wed, 19 Mar 2003 18:07:57 GMT
brj         2003/03/19 10:07:57

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        QueryCustomizer.java
                        QueryCustomizerDefaultImpl.java
  Log:
  Query refactoring
  
  Revision  Changes    Path
  1.2       +3 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/QueryCustomizer.java
  
  Index: QueryCustomizer.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/QueryCustomizer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- QueryCustomizer.java	26 Feb 2003 19:46:13 -0000	1.1
  +++ QueryCustomizer.java	19 Mar 2003 18:07:56 -0000	1.2
  @@ -58,6 +58,7 @@
   import org.apache.ojb.broker.metadata.AttributeContainer;
   import org.apache.ojb.broker.metadata.CollectionDescriptor;
   import org.apache.ojb.broker.query.Query;
  +import org.apache.ojb.broker.query.QueryByCriteria;
   
   /**
    * Interface for QueryCustomizer in CollectionDescriptor
  @@ -86,5 +87,5 @@
        * @param aQuery the original 1:n-Query
        * @return Query the customized 1:n-Query
        */
  -    public Query customizeQuery(Object anObject, PersistenceBroker aBroker, CollectionDescriptor
aCod, Query aQuery);
  +    public Query customizeQuery(Object anObject, PersistenceBroker aBroker, CollectionDescriptor
aCod, QueryByCriteria aQuery);
   }
  
  
  
  1.2       +3 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/QueryCustomizerDefaultImpl.java
  
  Index: QueryCustomizerDefaultImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/QueryCustomizerDefaultImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- QueryCustomizerDefaultImpl.java	26 Feb 2003 19:46:13 -0000	1.1
  +++ QueryCustomizerDefaultImpl.java	19 Mar 2003 18:07:56 -0000	1.2
  @@ -60,6 +60,7 @@
   import org.apache.ojb.broker.PersistenceBroker;
   import org.apache.ojb.broker.metadata.CollectionDescriptor;
   import org.apache.ojb.broker.query.Query;
  +import org.apache.ojb.broker.query.QueryByCriteria;
   
   /**
    * Default Implementation of QueryCustomizer. 
  @@ -85,7 +86,7 @@
        * 
        * @see org.apache.ojb.broker.accesslayer.QueryCustomizer#customizeQuery(java.lang.Object,
org.apache.ojb.broker.PersistenceBroker, org.apache.ojb.broker.metadata.CollectionDescriptor,
org.apache.ojb.broker.query.Query)
        */
  -    public Query customizeQuery(Object anObject, PersistenceBroker aBroker, CollectionDescriptor
aCod, Query aQuery)
  +    public Query customizeQuery(Object anObject, PersistenceBroker aBroker, CollectionDescriptor
aCod, QueryByCriteria aQuery)
       {
           return aQuery;
       }
  
  
  

Mime
View raw message