db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r1697086 - /db/jdo/trunk/api/src/java/javax/jdo/query/StringExpression.java
Date Sat, 22 Aug 2015 12:56:42 GMT
Author: andyj
Date: Sat Aug 22 12:56:41 2015
New Revision: 1697086

URL: http://svn.apache.org/r1697086
Log:
JDO-746 Add StringExpression.matches

Modified:
    db/jdo/trunk/api/src/java/javax/jdo/query/StringExpression.java

Modified: db/jdo/trunk/api/src/java/javax/jdo/query/StringExpression.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/query/StringExpression.java?rev=1697086&r1=1697085&r2=1697086&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/query/StringExpression.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/query/StringExpression.java Sat Aug 22 12:56:41 2015
@@ -125,6 +125,20 @@ public interface StringExpression extend
     NumericExpression<Integer> length();
 
     /**
+     * Method to return an expression for whether this string expression matches the provided
expression.
+     * @param expr The expression to match against
+     * @return Whether this expression matches the provided expression
+     */
+    BooleanExpression matches(StringExpression expr);
+
+    /**
+     * Method to return an expression for whether this string expression matches the provided
string.
+     * @param str String literal to match against
+     * @return Whether this expression matches the provided string
+     */
+    BooleanExpression matches(String str);
+
+    /**
      * Method returning an expression for whether this string expression starts with the
passed string expression.
      * @param expr The expression that it starts with.
      * @return Whether it starts with the other string



Mime
View raw message