org.datanucleus.store.rdbms.sql.operation
Class NumericToStringOperation
java.lang.Object
org.datanucleus.store.rdbms.sql.operation.AbstractSQLOperation
org.datanucleus.store.rdbms.sql.operation.NumericToStringOperation
- All Implemented Interfaces:
- SQLOperation
public class NumericToStringOperation
- extends AbstractSQLOperation
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumericToStringOperation
public NumericToStringOperation()
getExpression
public SQLExpression getExpression(SQLExpression expr,
SQLExpression expr2)
- Description copied from interface:
SQLOperation
- Return the expression for this SQL function.
- Parameters:
expr - Left hand expressionexpr2 - Right hand expression
- Returns:
- The SQL expression for the operation
Copyright © 2012. All Rights Reserved.