org.datanucleus.store.rdbms.sql.method
Class StringMatchesDerbyMethod

java.lang.Object
  extended by org.datanucleus.store.rdbms.sql.method.AbstractSQLMethod
      extended by org.datanucleus.store.rdbms.sql.method.StringMatchesMethod
          extended by org.datanucleus.store.rdbms.sql.method.StringMatchesDerbyMethod
All Implemented Interfaces:
SQLMethod

public class StringMatchesDerbyMethod
extends StringMatchesMethod

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.


Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.sql.method.AbstractSQLMethod
clr, exprFactory, LOCALISER, stmt
 
Constructor Summary
StringMatchesDerbyMethod()
           
 
Method Summary
protected  BooleanExpression getExpressionForStringExpressionInput(SQLExpression expr, SQLExpression argExpr, SQLExpression escapeExpr)
           
 
Methods inherited from class org.datanucleus.store.rdbms.sql.method.StringMatchesMethod
getBooleanLikeExpression, getExpression
 
Methods inherited from class org.datanucleus.store.rdbms.sql.method.AbstractSQLMethod
getMappingForClass, setStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringMatchesDerbyMethod

public StringMatchesDerbyMethod()
Method Detail

getExpressionForStringExpressionInput

protected BooleanExpression getExpressionForStringExpressionInput(SQLExpression expr,
                                                                  SQLExpression argExpr,
                                                                  SQLExpression escapeExpr)
Overrides:
getExpressionForStringExpressionInput in class StringMatchesMethod


Copyright © 2012. All Rights Reserved.