Class StringSimilarPostgresqlMethod
- java.lang.Object
-
- org.datanucleus.store.rdbms.sql.method.StringMatchesMethod
-
- org.datanucleus.store.rdbms.sql.method.StringSimilarPostgresqlMethod
-
- All Implemented Interfaces:
SQLMethod
public class StringSimilarPostgresqlMethod extends StringMatchesMethod
Support for a String.matches like functionality but using Postgresql's "SIMILAR TO" operator. This is mapped to the Java function "String.similarTo" as an extension so it is available for use. A unit test fails if trying to use it as String.matches.
-
-
Field Summary
Fields Modifier and Type Field Description static org.datanucleus.store.query.expression.Expression.DyadicOperator
OP_SIMILAR_TO
-
Constructor Summary
Constructors Constructor Description StringSimilarPostgresqlMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BooleanExpression
getBooleanLikeExpression(SQLStatement stmt, SQLExpression expr, SQLExpression regExpr, SQLExpression escapeExpr)
protected BooleanExpression
getExpressionForStringExpressionInput(SQLStatement stmt, SQLExpression expr, SQLExpression regExpr, SQLExpression escapeExpr)
-
Methods inherited from class org.datanucleus.store.rdbms.sql.method.StringMatchesMethod
getExpression
-
-
-
-
Method Detail
-
getExpressionForStringExpressionInput
protected BooleanExpression getExpressionForStringExpressionInput(SQLStatement stmt, SQLExpression expr, SQLExpression regExpr, SQLExpression escapeExpr)
- Overrides:
getExpressionForStringExpressionInput
in classStringMatchesMethod
-
getBooleanLikeExpression
protected BooleanExpression getBooleanLikeExpression(SQLStatement stmt, SQLExpression expr, SQLExpression regExpr, SQLExpression escapeExpr)
- Overrides:
getBooleanLikeExpression
in classStringMatchesMethod
-
-