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 QueryByIdentity.java
Date Thu, 13 Jan 2005 15:58:49 GMT
arminw      2005/01/13 07:58:49

  Modified:    src/java/org/apache/ojb/broker/query Tag: OJB_1_0_RELEASE
                        QueryByIdentity.java
  Log:
  fix javadoc
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.9.2.1   +25 -17    db-ojb/src/java/org/apache/ojb/broker/query/QueryByIdentity.java
  
  Index: QueryByIdentity.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/QueryByIdentity.java,v
  retrieving revision 1.9
  retrieving revision 1.9.2.1
  diff -u -r1.9 -r1.9.2.1
  --- QueryByIdentity.java	4 Apr 2004 23:53:36 -0000	1.9
  +++ QueryByIdentity.java	13 Jan 2005 15:58:48 -0000	1.9.2.1
  @@ -18,24 +18,32 @@
   import org.apache.ojb.broker.Identity;
   
   /**
  - * represents a search by identity.
  - * "find the article with id 7"
  - * could be represented as:
  - *
  - * Article example = new Article();
  - * example.setId(7);
  - * Query qry = new QueryByIdentity(example);
  - *
  - * The PersistenceBroker can retrieve Objects by examples as follows:
  - *
  - * PersistenceBroker broker = PersistenceBrokerFactory.createPersistenceBroker();
  - * Collection col = broker.getObjectByQuery(qry);
  + * Represents a search by identity.
  + * <i>"find the article with id 7"</i>
  + * could be represented as:<br/>
  + * <br/>
    *
  + * <code>
  + * Article example = new Article();<br/>
  + * example.setId(7);<br/>
  + * Query qry = new QueryByIdentity(example);<br/>
  + * </code>
  + * <br/>
  + * The PersistenceBroker can retrieve Objects by examples as follows:<br/>
  + * <br/>
  + * <code>
  + * PersistenceBroker broker = PersistenceBrokerFactory.createPersistenceBroker();<br/>
  + * Collection col = broker.getObjectByQuery(qry);<br/>
  + * </code>
  + * <br/>
    * This Class can also handle working with OJB Identity objects:
  - * "find the article with Identity xyz" could be represnted as
  - * Identity xyz = new Identity(example);
  - * Query qry = new QueryByIdentity(xyz);
  - *
  + * <i>"find the article with Identity xyz"</i> could be represnted as<br/>
  + * <br/>
  + * <code>
  + * Identity xyz = new Identity(example);<br/>
  + * Query qry = new QueryByIdentity(xyz);<br/>
  + * </code>
  + * 
    * @author <a href="mailto:thma@apache.org">Thomas Mahler<a>
    * @version $Id$
    */
  
  
  

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