com.caucho.amber.expr.fun
Class LengthFunExpr

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.LengthFunExpr
All Implemented Interfaces:
AmberExpr

public class LengthFunExpr
extends FunExpr

LENGTH function expression


Field Summary
 
Fields inherited from interface com.caucho.amber.expr.AmberExpr
IS_INNER_JOIN, USES_DATA
 
Constructor Summary
protected LengthFunExpr(QueryParser parser, java.util.ArrayList<AmberExpr> args)
          Creates a new expression
 
Method Summary
static FunExpr 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.
 
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

LengthFunExpr

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

Method Detail

create

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

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