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 ar...@apache.org on 2007/10/03 00:08:53 UTC

svn commit: r581412 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryByIdentity.java

Author: arminw
Date: Tue Oct  2 15:08:52 2007
New Revision: 581412

URL: http://svn.apache.org/viewvc?rev=581412&view=rev
Log:
javadoc

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryByIdentity.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryByIdentity.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryByIdentity.java?rev=581412&r1=581411&r2=581412&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryByIdentity.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryByIdentity.java Tue Oct  2 15:08:52 2007
@@ -42,24 +42,23 @@
  * </code>
  * <br/>
  * This Class can also handle working with OJB Identity objects:
- * <i>"find the article with Identity xyz"</i> could be represnted as<br/>
+ * <i>"find the article with Identity xyz"</i> can be performed by<br/>
  * <br/>
  * <code>
  * Article example = new Article();<br/>
  * example.setId(7);<br/>
  * Identity xyz = broker.serviceIdentity().buildIdentity(example);<br/>
  * Query qry = new QueryByIdentity(xyz);<br/>
- * Collection col = broker.getObjectByQuery(qry);<br/>
+ * Article result = (Article) broker.getObjectByQuery(qry);<br/>
  * </code>
  * <br/>
- * But in this case a smarter solution will be<br/>
+ * A smarter solution (with less overhead) will be<br/>
  * <br/>
  * <code>
  * Identity xyz = broker.serviceIdentity().buildIdentity(Article.class, new Integer(7));<br/>
- * Collection col = broker.getObjectByIdentity(xyz);<br/>
+ * Article result = (Article) broker.getObjectByIdentity(xyz);<br/>
  * </code>
  *
- * @author <a href="mailto:thma@apache.org">Thomas Mahler<a>
  * @version $Id$
  */
 public class QueryByIdentity extends AbstractQueryImpl



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