Class StringMatchesDerbyMethod
java.lang.Object
org.datanucleus.store.rdbms.sql.method.StringMatchesMethod
org.datanucleus.store.rdbms.sql.method.StringMatchesDerbyMethod
- All Implemented Interfaces:
SQLMethod
Expression handler to evaluate {stringExpression}.matches(StringExpression) for Derby.
Adds its own handling of the case of "{StringExpression} LIKE {StringExpression}" case
using a Java function NUCLEUS_MATCHES in the datastore since Derby doesn't support "LIKE".
Note that any input escape character is ignored.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BooleanExpression
getExpressionForStringExpressionInput
(SQLStatement stmt, SQLExpression expr, SQLExpression argExpr, SQLExpression escapeExpr) Methods inherited from class org.datanucleus.store.rdbms.sql.method.StringMatchesMethod
getBooleanLikeExpression, getExpression
-
Constructor Details
-
StringMatchesDerbyMethod
public StringMatchesDerbyMethod()
-
-
Method Details
-
getExpressionForStringExpressionInput
protected BooleanExpression getExpressionForStringExpressionInput(SQLStatement stmt, SQLExpression expr, SQLExpression argExpr, SQLExpression escapeExpr) - Overrides:
getExpressionForStringExpressionInput
in classStringMatchesMethod
-