From: <fg...@us...> - 2009-02-20 19:28:47
|
Revision: 1048 http://openutils.svn.sourceforge.net/openutils/?rev=1048&view=rev Author: fgrilli Date: 2009-02-20 19:28:38 +0000 (Fri, 20 Feb 2009) Log Message: ----------- imporved javadoc and commented out method Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java 2009-02-20 17:43:14 UTC (rev 1047) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java 2009-02-20 19:28:38 UTC (rev 1048) @@ -28,13 +28,10 @@ * Order.desc("@jcr:score()")).list(); * </pre> * - * will be translated (if an xpath Criteria implementation is chosen) into the following xpath statement + * will be translated into the following xpath statement * * <pre> - * // dogs//*[((jcr:contains(@name, 'Nana')) and (@weight>10.0) and (@birthDate >= - * // xs:dateTime('2004-01-01T00:00:00.000+00:00') and @birthDate <= - * // xs:dateTime('2008-12-01T23:59:59.000+00:00')))] order by @jcr:score() - * // descending + * //dogs//*[((jcr:contains(@name, 'Nana')) and (@weight>10.0) and (@birthDate >=xs:dateTime('2004-01-01T00:00:00.000+00:00') and @birthDate <=xs:dateTime('2008-12-01T23:59:59.000+00:00')))] order by @jcr:score() descending * </pre> * * This API is blatantly inspired by and respectfully borrows code from Hibernate's Criteria API. <br> @@ -79,12 +76,13 @@ */ public Criteria setFirstResult(int firstResult); - /** + /* * Set a timeout for the underlying query. * @param timeout The timeout value to apply. * @return this (for method chaining) FIXME is it possible in JCR? - */ - public Criteria setTimeout(int timeout); + * + public Criteria setTimeout(int timeout); + */ /** * Get the results. <strong>The implementation should guarantee the caller that the returned Collection is never This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |