public class ChainDirective
extends org.apache.velocity.runtime.directive.Directive
chunks
.
Usage of chain is the following:
#chain(operator) - e.g. #chain(' AND ') #chain(operator prefix) - e.g. #chain(' AND ' 'WHERE ')
operator
(e.g. AND, OR, etc.) is used to join chunks that are included
in a chain. prefix
is inserted if a chain contains at least one chunk.
Constructor and Description |
---|
ChainDirective() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
int |
getType() |
boolean |
render(org.apache.velocity.context.InternalContextAdapter context,
Writer writer,
org.apache.velocity.runtime.parser.node.Node node) |
public String getName()
getName
in class org.apache.velocity.runtime.directive.Directive
public int getType()
getType
in class org.apache.velocity.runtime.directive.Directive
public boolean render(org.apache.velocity.context.InternalContextAdapter context, Writer writer, org.apache.velocity.runtime.parser.node.Node node) throws IOException, org.apache.velocity.exception.ResourceNotFoundException, org.apache.velocity.exception.ParseErrorException, org.apache.velocity.exception.MethodInvocationException
render
in class org.apache.velocity.runtime.directive.Directive
IOException
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
Copyright © 2001–2014 Apache Cayenne. All rights reserved.