|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.jdbc.depot.expression.FunctionExp
public class FunctionExp
An expression for a function, e.g. FLOOR(blah).
| Field Summary | |
|---|---|
protected SQLExpression[] |
_arguments
The arguments to this function |
protected String |
_function
The literal name of this function, e.g. |
| Constructor Summary | |
|---|---|
FunctionExp(String function,
SQLExpression... arguments)
Create a new FunctionExp with the given function and arguments. |
|
| Method Summary | |
|---|---|
void |
accept(ExpressionVisitor builder)
Most uses of this class have been implemented with a visitor pattern. |
void |
addClasses(Collection<Class<? extends PersistentRecord>> classSet)
Adds all persistent classes that are brought into the SQL context by this clause: FROM clauses, JOINs, UPDATEs, anything that could create a new table abbreviation. |
SQLExpression[] |
getArguments()
|
String |
getFunction()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String _function
protected SQLExpression[] _arguments
| Constructor Detail |
|---|
public FunctionExp(String function,
SQLExpression... arguments)
| Method Detail |
|---|
public void accept(ExpressionVisitor builder)
throws Exception
SQLExpressionExpressionVisitor and call this method with it.
accept in interface SQLExpressionExceptionSQLBuilderpublic void addClasses(Collection<Class<? extends PersistentRecord>> classSet)
SQLExpression
addClasses in interface SQLExpressionpublic String getFunction()
public SQLExpression[] getArguments()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||