From: <fg...@us...> - 2009-02-20 19:45:54
|
Revision: 1049 http://openutils.svn.sourceforge.net/openutils/?rev=1049&view=rev Author: fgrilli Date: 2009-02-20 19:45:49 +0000 (Fri, 20 Feb 2009) Log Message: ----------- improved javadoc and commented out methods Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Restrictions.java Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Restrictions.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Restrictions.java 2009-02-20 19:28:38 UTC (rev 1048) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Restrictions.java 2009-02-20 19:45:49 UTC (rev 1049) @@ -1,6 +1,5 @@ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; - import java.util.Calendar; import java.util.Collection; @@ -53,9 +52,9 @@ * <br> * <strong>Be warned when using <em>jcr:like</em> function, as it can be very slow.</strong> <br> * <br> - * The following account of why it is so, was taken <a href= + * The following account of why it is so, was taken from <a href= * "http://www.nabble.com/Explanation-and-solutions-of-some-Jackrabbit-queries-regarding-performance-td15028655.html" - * >here</a> <br> + * >us...@ja... mailing list</a> <br> * <em> * <ul> * <li>Question: My xpath is '//*[jcr:like(@propertyName, @@ -93,13 +92,12 @@ * <br> * <strong>Be warned when using <em>jcr:like</em> function, as it can be very slow.</strong> <br> * <br> - * The following account of why it is so, was taken <a href= + * The following account of why it is so, was taken from <a href= * "http://www.nabble.com/Explanation-and-solutions-of-some-Jackrabbit-queries-regarding-performance-td15028655.html" - * >here</a> <br> + * >us...@ja... mailing list</a> <br> * <em> * <ul> - * <li>Question: My xpath is '//*[jcr:like(@propertyName, - * '%somevalue%')]' and it takes minutes to complete. + * <li>Question: My xpath is '//*[jcr:like(@propertyName, '%somevalue%')]' and it takes minutes to complete. * * <li>Answer: a jcr:like with % will be translated to a WildcardQuery lucene * query. In order to prevent extremely slow WildcardQueries, a Wildcard @@ -223,6 +221,7 @@ * @param values - must be instances of either {@link String} or {@link Number} or {@link Calendar}. * @return Criterion */ + public static Criterion in(String nodeName, Collection values) { throw new UnsupportedOperationException(); @@ -285,11 +284,10 @@ * @param types * @return Criterion */ - public static Criterion xpathRestriction(String xpath, Object[] values) - { - throw new UnsupportedOperationException(); - // return new XPathCriterion(sql, values, types); - } + /* + * public static Criterion xpathRestriction(String xpath, Object[] values) { throw new + * UnsupportedOperationException(); // return new XPathCriterion(sql, values, types); } + */ /** * Apply a constraint expressed in xpath. @@ -298,24 +296,20 @@ * @param type * @return Criterion */ - public static Criterion xpathRestriction(String xpath, Object value) - { - throw new UnsupportedOperationException(); - // return new XPathCriterion(sql, new Object[] { value }, new Type[] { - // type } ); - } + /* + * public static Criterion xpathRestriction(String xpath, Object value) { throw new UnsupportedOperationException(); + * // return new XPathCriterion(sql, new Object[] { value }, new Type[] { // type } ); } + */ /** * Apply a constraint expressed in xpath. * @param xpath * @return Criterion */ - public static Criterion xpathRestriction(String xpath) - { - throw new UnsupportedOperationException(); - // return new XPathCriterion(sql, ArrayHelper.EMPTY_OBJECT_ARRAY, - // ArrayHelper.EMPTY_TYPE_ARRAY); - } + /* + * public static Criterion xpathRestriction(String xpath) { throw new UnsupportedOperationException(); // return new + * XPathCriterion(sql, ArrayHelper.EMPTY_OBJECT_ARRAY, // ArrayHelper.EMPTY_TYPE_ARRAY); } + */ /** * Group expressions together in a single conjunction (A and B and C...) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |