com.caucho.amber.expr.fun
Class TrimFunExpr

java.lang.Object
  extended by com.caucho.amber.expr.AbstractAmberExpr
      extended by com.caucho.amber.expr.fun.FunExpr
          extended by com.caucho.amber.expr.fun.TrimFunExpr
All Implemented Interfaces:
AmberExpr

public class TrimFunExpr
extends FunExpr

TRIM function expression


Nested Class Summary
static class TrimFunExpr.TrimSemantics
           
 
Field Summary
 
Fields inherited from interface com.caucho.amber.expr.AmberExpr
IS_INNER_JOIN, USES_DATA
 
Constructor Summary
protected TrimFunExpr(QueryParser parser, java.util.ArrayList<AmberExpr> args)
          Creates a new expression
 
Method Summary
static TrimFunExpr create(QueryParser parser, java.util.ArrayList<AmberExpr> args)
           
 void generateUpdateWhere(CharBuffer cb)
          Generates the (update) where expression.
 void generateWhere(CharBuffer cb)
          Generates the where expression.
 void setTrimChar(AmberExpr trimChar)
          Sets the trim character.
 void setTrimSemantics(TrimFunExpr.TrimSemantics trimSemantics)
          Sets the trim semantics.
 
Methods inherited from class com.caucho.amber.expr.fun.FunExpr
bindSelect, create, generateHaving, getArgs, getObject, getType, toString, usesFrom
 
Methods inherited from class com.caucho.amber.expr.AbstractAmberExpr
createBoolean, exists, exists, findItem, generateJoin, generateSelect, getCacheObject, getColumnCount, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrimFunExpr

protected TrimFunExpr(QueryParser parser,
                      java.util.ArrayList<AmberExpr> args)
Creates a new expression

Method Detail

create

public static TrimFunExpr create(QueryParser parser,
                                 java.util.ArrayList<AmberExpr> args)

setTrimChar

public void setTrimChar(AmberExpr trimChar)
Sets the trim character.


setTrimSemantics

public void setTrimSemantics(TrimFunExpr.TrimSemantics trimSemantics)
Sets the trim semantics.


generateWhere

public void generateWhere(CharBuffer cb)
Generates the where expression.

Specified by:
generateWhere in interface AmberExpr
Overrides:
generateWhere in class FunExpr

generateUpdateWhere

public void generateUpdateWhere(CharBuffer cb)
Generates the (update) where expression.

Specified by:
generateUpdateWhere in interface AmberExpr
Overrides:
generateUpdateWhere in class FunExpr