org.apache.cayenne.access.jdbc
Class BindEqualDirective
java.lang.Object
   org.apache.velocity.runtime.directive.Directive
org.apache.velocity.runtime.directive.Directive
       org.apache.cayenne.access.jdbc.BindDirective
org.apache.cayenne.access.jdbc.BindDirective
           org.apache.cayenne.access.jdbc.BindEqualDirective
org.apache.cayenne.access.jdbc.BindEqualDirective
- All Implemented Interfaces: 
- Cloneable, org.apache.velocity.runtime.directive.DirectiveConstants
- public class BindEqualDirective 
- extends BindDirective
A custom Velocity directive to create a PreparedStatement parameter text
 for "= ?". If null value is encountered, generated text will look like "IS NULL".
 Usage in Velocity template is "WHERE SOME_COLUMN #bindEqual($xyz)".
- Since:
- 1.1
 
| Fields inherited from class org.apache.velocity.runtime.directive.Directive | 
| rsvc | 
 
| Fields inherited from interface org.apache.velocity.runtime.directive.DirectiveConstants | 
| BLOCK, LINE | 
 
 
 
 
| Methods inherited from class org.apache.velocity.runtime.directive.Directive | 
| getColumn, getLine, init, setLocation | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
BindEqualDirective
public BindEqualDirective()
getName
public String getName()
- 
- Overrides:
- getNamein class- BindDirective
 
- 
 
render
protected void render(org.apache.velocity.context.InternalContextAdapter context,
                      Writer writer,
                      ParameterBinding binding)
               throws IOException
- 
- Overrides:
- renderin class- BindDirective
 
- 
- Throws:
- IOException
 
Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.