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.Directivepublic int getType()
getType in class org.apache.velocity.runtime.directive.Directivepublic 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.DirectiveIOExceptionorg.apache.velocity.exception.ResourceNotFoundExceptionorg.apache.velocity.exception.ParseErrorExceptionorg.apache.velocity.exception.MethodInvocationExceptionCopyright © 2001–2023 Apache Cayenne. All rights reserved.