db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/query LikeCriteria.java
Date Tue, 06 Jul 2004 21:49:31 GMT
tomdz       2004/07/06 14:49:31

  Modified:    src/java/org/apache/ojb/broker/query LikeCriteria.java
  Log:
  Replaced undocumented type constraint (second constructor arg must be a String though it
is declared as Object) by call to toString
  
  Revision  Changes    Path
  1.12      +3 -3      db-ojb/src/java/org/apache/ojb/broker/query/LikeCriteria.java
  
  Index: LikeCriteria.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/LikeCriteria.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- LikeCriteria.java	25 Jun 2004 13:11:35 -0000	1.11
  +++ LikeCriteria.java	6 Jul 2004 21:49:31 -0000	1.12
  @@ -42,7 +42,7 @@
   	 */
   	public LikeCriteria(Object anAttribute, Object aValue, String aClause, String anAlias)
   	{
  -		super(anAttribute, generateSQLSearchPattern((String) aValue), aClause, anAlias);
  +		super(anAttribute, generateSQLSearchPattern(aValue.toString()), aClause, anAlias);
   	}
   
   	/**
  @@ -53,7 +53,7 @@
   	 */
   	public LikeCriteria(Object anAttribute, Object aValue, String aClause, UserAlias anAlias)
   	{
  -		super(anAttribute, generateSQLSearchPattern((String) aValue), aClause, anAlias);
  +		super(anAttribute, generateSQLSearchPattern(aValue.toString()), aClause, anAlias);
   	}
   
       /**
  
  
  

---------------------------------------------------------------------
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