com.samskivert.jdbc.depot.expression
Class LiteralExp
java.lang.Object
com.samskivert.jdbc.depot.expression.LiteralExp
- All Implemented Interfaces:
- SQLExpression
public class LiteralExp
- extends Object
- implements SQLExpression
An expression for things we don't support natively, e.g. COUNT(*).
|
Field Summary |
protected String |
_text
The literal text of this expression, e.g. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_text
protected String _text
- The literal text of this expression, e.g. COUNT(*)
LiteralExp
public LiteralExp(String text)
accept
public void accept(ExpressionVisitor builder)
throws Exception
- Description copied from interface:
SQLExpression
- Most uses of this class have been implemented with a visitor pattern. Create your own
ExpressionVisitor and call this method with it.
- Specified by:
accept in interface SQLExpression
- Throws:
Exception- See Also:
SQLBuilder
addClasses
public void addClasses(Collection<Class<? extends PersistentRecord>> classSet)
- Description copied from interface:
SQLExpression
- 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. This method
should recurse into any subordinate state that may in turn bring in new classes so that
sub-queries work correctly.
- Specified by:
addClasses in interface SQLExpression
getText
public String getText()
Copyright © 2000-2008 Michael Bayne.
All Rights Reserved.