Class StringLength2Method
java.lang.Object
org.datanucleus.store.rdbms.sql.method.StringLength2Method
- All Implemented Interfaces:
SQLMethod
Expression handler to evaluate {stringExpression}.length() with Firebird.
Firebird v1 uses STRLEN, whereas Firebird v2 has CHAR_LENGTH.
Returns a NumericExpression
STRLEN({stringExpr}) or NumericExpression CHAR_LENGTH({stringExpr}).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExpression(SQLStatement stmt, SQLExpression expr, List<SQLExpression> args) Return the expression for this SQL function.
-
Constructor Details
-
StringLength2Method
public StringLength2Method()
-
-
Method Details
-
getExpression
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
-