db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/query QueryByCriteria.java
Date Mon, 08 Dec 2003 10:23:33 GMT
arminw      2003/12/08 02:23:33

  Modified:    src/java/org/apache/ojb/broker/query QueryByCriteria.java
  Log:
  fix Boolean compatibility bug
  fix javadoc
  
  Revision  Changes    Path
  1.22      +9 -15     db-ojb/src/java/org/apache/ojb/broker/query/QueryByCriteria.java
  
  Index: QueryByCriteria.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/QueryByCriteria.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- QueryByCriteria.java	6 Dec 2003 12:30:53 -0000	1.21
  +++ QueryByCriteria.java	8 Dec 2003 10:23:33 -0000	1.22
  @@ -158,9 +158,6 @@
       /**
        * Build a Query based on anObject <br>
        * all non null values are used as EqualToCriteria
  -     * @param anObject
  -     * @param distinct
  -     * @return a QueryByCriteria
        */
       public QueryByCriteria(Object anObject, boolean distinct)
       {
  @@ -170,8 +167,6 @@
       /**
        * Build a Query based on anObject <br>
        * all non null values are used as EqualToCriteria
  -     * @param anObject
  -     * @return a QueryByCriteria
        */
       public QueryByCriteria(Object anObject)
       {
  @@ -182,7 +177,6 @@
        * Build a Query based on a Class Object. This
        * Query will return all instances of the given class.
        * @param aClassToSearchFrom the class to search from
  -     * @return a QueryByCriteria returning all instances of aClassToSearchFrom
        */
       public QueryByCriteria(Class aClassToSearchFrom)
       {
  @@ -227,8 +221,8 @@
        * Without these hints SqlStatment will use the base class the
        * relationship points to ie: Article instead of CdArticle.
        *
  -     * @param the path segment ie: allArticlesInGroup
  -     * @param the Class ie: CdArticle
  +     * @param aPath the path segment ie: allArticlesInGroup
  +     * @param aClass the Class ie: CdArticle
        * @see org.apache.ojb.broker.QueryTest#testInversePathExpression()
        */
       public void addPathClass(String aPath, Class aClass)
  @@ -253,10 +247,10 @@
        * relationship points to ie: Article instead of CdArticle.
        * Using this method is the same as adding just one hint
        *
  -     * @param the path segment ie: allArticlesInGroup
  -     * @param the Class ie: CdArticle
  +     * @param aPath the path segment ie: allArticlesInGroup
  +     * @param aClass the Class ie: CdArticle
        * @see org.apache.ojb.broker.QueryTest#testInversePathExpression()
  -     * @see addPathClass()
  +     * @see #addPathClass
        */
       public void setPathClass(String aPath, Class aClass)
       {
  @@ -268,9 +262,9 @@
       /**
        * Get the a List of Class objects used as hints for a path
        *
  -     * @param the path segment ie: allArticlesInGroup
  +     * @param aPath the path segment ie: allArticlesInGroup
        * @return a List o Class objects to be used in SqlStatment
  -     * @see addPathClass()
  +     * @see #addPathClass
        * @see org.apache.ojb.broker.QueryTest#testInversePathExpression()
        */
       public List getClassesForPath(String aPath)
  @@ -304,7 +298,7 @@
        */
       public void setPathOuterJoin(String aPath)
       {
  -        getPathOuterJoin().put(aPath, Boolean.valueOf( true ));
  +        getPathOuterJoin().put(aPath, Boolean.TRUE);
       }
   
       /* (non-Javadoc)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message