|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.db.sql.Expr
com.caucho.db.sql.FunExpr
com.caucho.db.fun.BitandExpr
public class BitandExpr
| Field Summary | |
|---|---|
protected static L10N |
L
|
| Fields inherited from class com.caucho.db.sql.Expr |
|---|
FALSE, TRUE, UNKNOWN |
| Constructor Summary | |
|---|---|
BitandExpr()
|
|
BitandExpr(Expr left,
Expr right)
|
|
| Method Summary | |
|---|---|
protected void |
addArg(Expr expr)
|
Expr |
bind(Query query)
Binds the expression to the actual tables. |
double |
evalDouble(QueryContext context)
Evaluates the expression as a double. |
long |
evalLong(QueryContext context)
Evaluates the expression as a long. |
java.lang.String |
evalString(QueryContext context)
Evaluates the expression as a string. |
java.lang.Class |
getType()
Returns the expected result type of the expression. |
boolean |
isNull(QueryContext context)
Returns true for a null value. |
long |
subCost(java.util.ArrayList<FromItem> fromList)
Returns the cost based on the given FromList. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.db.sql.Expr |
|---|
cost, createOrder, evalBoolean, evalBytes, evalDate, evalEqual, evalEqual, evalGroup, evalStream, evalToBuffer, evalToBuffer, evalToResult, getIndexExpr, getName, getSQLType, getTable, getTypeCode, indexCost, indexSubCost, initGroup, isBinaryStream, isBoolean, isDouble, isLong, isNullable, isParam, isSelect, splitAnd, updateDouble, updateLong, updateString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final L10N L
| Constructor Detail |
|---|
public BitandExpr()
public BitandExpr(Expr left,
Expr right)
| Method Detail |
|---|
protected void addArg(Expr expr)
throws java.sql.SQLException
addArg in class FunExprjava.sql.SQLExceptionpublic java.lang.Class getType()
getType in class Expr
public Expr bind(Query query)
throws java.sql.SQLException
bind in class Exprjava.sql.SQLExceptionpublic long subCost(java.util.ArrayList<FromItem> fromList)
subCost in class Expr
public boolean isNull(QueryContext context)
throws java.sql.SQLException
isNull in class Exprrows - the current tuple being evaluated
java.sql.SQLException
public double evalDouble(QueryContext context)
throws java.sql.SQLException
evalDouble in class Exprrows - the current tuple being evaluated
java.sql.SQLException
public long evalLong(QueryContext context)
throws java.sql.SQLException
evalLong in class Exprrows - the current tuple being evaluated
java.sql.SQLException
public java.lang.String evalString(QueryContext context)
throws java.sql.SQLException
evalString in class Exprrows - the current tuple being evaluated
java.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||