Class StringSubstring3Method
- java.lang.Object
-
- org.datanucleus.store.rdbms.sql.method.StringSubstring3Method
-
- All Implemented Interfaces:
SQLMethod
public class StringSubstring3Method extends Object implements SQLMethod
Method for evaluating {strExpr}.substring(numExpr1 [,numExpr2]). Returns a StrignExpression that equates toSUBSTR(strExpr, numExpr1+1)
when no end position provided.SUBSTR(strExpr, numExpr1+1, numExpr2-numExpr1)
when end position provided.
-
-
Constructor Summary
Constructors Constructor Description StringSubstring3Method()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLExpressiongetExpression(SQLStatement stmt, SQLExpression expr, List<SQLExpression> args)Return the expression for this SQL function.
-
-
-
Method Detail
-
getExpression
public SQLExpression getExpression(SQLStatement stmt, SQLExpression expr, List<SQLExpression> args)
Description copied from interface:SQLMethodReturn the expression for this SQL function.- Specified by:
getExpressionin interfaceSQLMethod- Parameters:
stmt- SQLStatement that this expression is forexpr- The expression that it is invoked onargs- Arguments passed in- Returns:
- The SQL expression using the SQL function
-
-