Class StringSubstring5Method
- java.lang.Object
-
- org.datanucleus.store.rdbms.sql.method.StringSubstring5Method
-
- All Implemented Interfaces:
SQLMethod
public class StringSubstring5Method extends Object implements SQLMethod
Method for evaluating {strExpr}.substring(numExpr1 [,numExpr2]). Returns a StringExpression that equates toSUBSTRING(strExpr FROM CAST(numExpr1+1 AS INTEGER))
when no end position provided.SUBSTRING(strExpr FROM CAST(numExpr1+1 AS INTEGER) FOR CAST(numExpr2-numExpr1 AS INTEGER))
when end position provided.
-
-
Constructor Summary
Constructors Constructor Description StringSubstring5Method()
-
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
-
-