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/query QueryFactory.java
Date Sat, 15 Mar 2003 15:47:03 GMT
brj         2003/03/15 07:47:03

  Modified:    src/java/org/apache/ojb/broker/query QueryFactory.java
  Log:
  Query refactoring
  
  Revision  Changes    Path
  1.12      +11 -14    db-ojb/src/java/org/apache/ojb/broker/query/QueryFactory.java
  
  Index: QueryFactory.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/QueryFactory.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- QueryFactory.java	24 Dec 2002 13:17:10 -0000	1.11
  +++ QueryFactory.java	15 Mar 2003 15:47:03 -0000	1.12
  @@ -118,9 +118,9 @@
        * @param classToSearchFrom
        * @param criteria
        * @param distinct
  -     * @return
  +     * @return QueryByCriteria
        */
  -    public static Query newQuery(Class classToSearchFrom, Criteria criteria, boolean distinct)
  +    public static QueryByCriteria newQuery(Class classToSearchFrom, Criteria criteria,
boolean distinct)
       {
           criteria = addCriteriaForOjbConcreteClasses(getRepository().getDescriptorFor(classToSearchFrom),
criteria);
           return new QueryByCriteria(classToSearchFrom, criteria, distinct);
  @@ -130,9 +130,9 @@
        * Method declaration
        * @param classToSearchFrom
        * @param criteria
  -     * @return
  +     * @return QueryByCriteria
        */
  -    public static Query newQuery(Class classToSearchFrom, Criteria criteria)
  +    public static QueryByCriteria newQuery(Class classToSearchFrom, Criteria criteria)
       {
           return newQuery(classToSearchFrom, criteria, false);
       }
  @@ -155,9 +155,9 @@
        * @param tables
        * @param criteria
        * @param distinct
  -     * @return
  +     * @return QueryByMtoNCriteria
        */
  -    public static Query newQuery(Class classToSearchFrom, String indirectionTable, Criteria
criteria, boolean distinct)
  +    public static QueryByMtoNCriteria newQuery(Class classToSearchFrom, String indirectionTable,
Criteria criteria, boolean distinct)
       {
           criteria = addCriteriaForOjbConcreteClasses(getRepository().getDescriptorFor(classToSearchFrom),
criteria);
           return new QueryByMtoNCriteria(classToSearchFrom, indirectionTable, criteria, distinct);
  @@ -167,9 +167,9 @@
        * @param classToSearchFrom
        * @param tables
        * @param criteria
  -     * @return
  +     * @return QueryByCriteria
        */
  -    public static Query newQuery(Class classToSearchFrom, String indirectionTable, Criteria
criteria)
  +    public static QueryByCriteria newQuery(Class classToSearchFrom, String indirectionTable,
Criteria criteria)
       {
           criteria = addCriteriaForOjbConcreteClasses(getRepository().getDescriptorFor(classToSearchFrom),
criteria);
           return new QueryByMtoNCriteria(classToSearchFrom, indirectionTable, criteria);
  @@ -179,13 +179,10 @@
        * Factory method for QueryBySQL
        * @param classToSearchFrom
        * @param the SQL Statement
  -     * @return
  +     * @return QueryBySQL
        */
  -    public static Query newQuery(Class classToSearchFrom, String anSqlStatement)
  +    public static QueryBySQL newQuery(Class classToSearchFrom, String anSqlStatement)
       {
  -        /**
  -         * should add criteria here.
  -         */
           return new QueryBySQL(classToSearchFrom, anSqlStatement);
       }
   
  
  
  

Mime
View raw message