org.outerj.xreporter.report.definition
Class LiteralSqlPart

java.lang.Object
  extended byorg.outerj.xreporter.report.definition.LiteralSqlPart
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable, SqlPart

public class LiteralSqlPart
extends java.lang.Object
implements SqlPart, org.apache.avalon.framework.configuration.Configurable

A piece of SQL which will be inserted as-is in the SQL statement.


Field Summary
protected  java.lang.String literalSql
           
 
Constructor Summary
LiteralSqlPart()
           
 
Method Summary
 void addToSqlStatement(java.lang.StringBuffer statement, ExecutionContext executionContext)
          Adds a piece of SQL to the supplied StringBuffer
 int bind(java.sql.PreparedStatement statement, int start, ExecutionContext executionContext)
          Fills in any IN parameters that this SqlPart has added during the call to addToSqlStatement(java.lang.StringBuffer, org.outerj.xreporter.report.definition.ExecutionContext).
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

literalSql

protected java.lang.String literalSql
Constructor Detail

LiteralSqlPart

public LiteralSqlPart()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

addToSqlStatement

public void addToSqlStatement(java.lang.StringBuffer statement,
                              ExecutionContext executionContext)
Description copied from interface: SqlPart
Adds a piece of SQL to the supplied StringBuffer

Specified by:
addToSqlStatement in interface SqlPart

bind

public int bind(java.sql.PreparedStatement statement,
                int start,
                ExecutionContext executionContext)
Description copied from interface: SqlPart
Fills in any IN parameters that this SqlPart has added during the call to SqlPart.addToSqlStatement(java.lang.StringBuffer, org.outerj.xreporter.report.definition.ExecutionContext).

Specified by:
bind in interface SqlPart
Returns:
the position where the next IN-parameter should come