You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by br...@apache.org on 2003/03/14 17:38:08 UTC

cvs commit: db-ojb/src/java/org/apache/ojb/broker/query Criteria.java

brj         2003/03/14 08:38:08

  Modified:    src/java/org/apache/ojb/broker/query Criteria.java
  Log:
  removed deprecated methods orderby() and groupby()
  
  Revision  Changes    Path
  1.22      +0 -46     db-ojb/src/java/org/apache/ojb/broker/query/Criteria.java
  
  Index: Criteria.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/Criteria.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- Criteria.java	1 Mar 2003 20:19:13 -0000	1.21
  +++ Criteria.java	14 Mar 2003 16:38:07 -0000	1.22
  @@ -571,28 +571,6 @@
   	}
   
   	/**
  -	 * Sets the single field for orderBy, order is ASCENDING
  -	 * @param  fieldName	The field name to be used
  -	 * @deprecated use #addOrderByAscending(String fieldName)
  -	 */
  -	public void orderBy(String fieldName)
  -	{
  -		orderBy(fieldName, true);
  -	}
  -
  -	/**
  -	 * Sets the single field for orderBy
  -	 * @param  fieldName	The field name to be used
  -	 * @param  sortAscending	true for ASCENDING, false for DESCENDING
  -	 * @deprecated use #addOrderByAscending(String fieldName) or #addOrderByDescending(String fieldName)
  -	 */
  -	public void orderBy(String fieldName, boolean sortAscending)
  -	{
  -		_getOrderby().clear();
  -		addOrderBy(fieldName, sortAscending);
  -	}
  -
  -	/**
   	 * Answer the orderBy of all Criteria and Sub Criteria the elements are of
   	 * class Criteria. FieldHelper
   	 * @return Collection
  @@ -894,20 +872,6 @@
   	}
   
   	/**
  -	 * Sets an array of groupby fieldNames for ReportQueries.
  -	 * @param fieldNames The groupby to set
  -	 * @deprecated use #addGroupBy(String[] fieldNames)
  -	 */
  -	public void groupBy(String[] fieldNames)
  -	{
  -		_getGroupby().clear();
  -		for (int i = 0; i < fieldNames.length; i++)
  -		{
  -			addGroupBy(fieldNames[i]);
  -		}
  -	}
  -
  -	/**
   	 * Adds an array of groupby fieldNames for ReportQueries.
   	 * @param fieldNames The groupby to set
   	 */
  @@ -919,16 +883,6 @@
   		}
   	}
   
  -	/**
  -	 * Sets the single groupby fieldName for ReportQueries.
  -	 * @param fieldName The groupby to set
  -	 * @deprecated use #addGroupBy(String fieldName)
  -	 */
  -	public void groupBy(String fieldName)
  -	{
  -		_getGroupby().clear();
  -		addGroupBy(fieldName);
  -	}
   	/**
   	 * Returns the prefetchedRelationships.
   	 * @return List