org.datanucleus.store.rdbms.sql.method
Class StringTrimMethod
java.lang.Object
org.datanucleus.store.rdbms.sql.method.AbstractSQLMethod
org.datanucleus.store.rdbms.sql.method.SimpleStringMethod
org.datanucleus.store.rdbms.sql.method.StringTrimMethod
- All Implemented Interfaces:
- SQLMethod
public class StringTrimMethod
- extends SimpleStringMethod
Expression handler to invoke the SQL TRIM function.
For use in evaluating StringExpression.trim() where the RDBMS supports this function.
Returns a StringExpression "TRIM({stringExpr})".
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringTrimMethod
public StringTrimMethod()
getFunctionName
protected String getFunctionName()
- Specified by:
getFunctionName in class SimpleStringMethod
getExpression
public SQLExpression getExpression(SQLExpression expr,
List args)
- Description copied from interface:
SQLMethod
- Return the expression for this SQL function.
- Specified by:
getExpression in interface SQLMethod- Overrides:
getExpression in class SimpleStringMethod
- Parameters:
expr - The expression that it is invoked onargs - Arguments passed in
- Returns:
- The SQL expression using the SQL function
Copyright © 2012. All Rights Reserved.