com.caucho.amber.expr.fun
Class LocateFunExpr

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

public class LocateFunExpr
extends FunExpr

LOCATE function expression


Field Summary
 
Fields inherited from interface com.caucho.amber.expr.AmberExpr
IS_INNER_JOIN, USES_DATA
 
Constructor Summary
protected LocateFunExpr(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.
 java.lang.Object getObject(AmberConnection aConn, java.sql.ResultSet rs, int index)
          Returns the object for the expr.
 
Methods inherited from class com.caucho.amber.expr.fun.FunExpr
bindSelect, create, generateHaving, getArgs, 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

LocateFunExpr

protected LocateFunExpr(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

getObject

public java.lang.Object getObject(AmberConnection aConn,
                                  java.sql.ResultSet rs,
                                  int index)
                           throws java.sql.SQLException
Returns the object for the expr.

Specified by:
getObject in interface AmberExpr
Overrides:
getObject in class FunExpr
Throws:
java.sql.SQLException