Class NumericToStringOperation
java.lang.Object
org.datanucleus.store.rdbms.sql.operation.NumericToStringOperation
- All Implemented Interfaces:
SQLOperation
Implementation of a conversion from a NumericExpression to a StringExpression.
Results in
CAST(expr AS VARCHAR(4000))The second expression argument is not used; the first arg is converted to a StringExpression.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExpression(SQLExpression expr, SQLExpression expr2) Return the expression for this SQL function.
-
Constructor Details
-
NumericToStringOperation
public NumericToStringOperation()
-
-
Method Details
-
getExpression
Description copied from interface:SQLOperationReturn the expression for this SQL function.- Specified by:
getExpressionin interfaceSQLOperation- Parameters:
expr- Left hand expressionexpr2- Right hand expression- Returns:
- The SQL expression for the operation
-