org.outerj.xreporter.report.definition
Interface SqlPart

All Known Implementing Classes:
CalculateSqlPart, ConditionSqlPart, LiteralSqlPart, OrderBySqlPart, ParameterSqlPart, QbeSqlPart, TempTableRefSqlPart, TempTableSqlPart

public interface SqlPart


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).
 

Method Detail

addToSqlStatement

public void addToSqlStatement(java.lang.StringBuffer statement,
                              ExecutionContext executionContext)
Adds a piece of SQL to the supplied StringBuffer


bind

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

Returns:
the position where the next IN-parameter should come
Throws:
java.sql.SQLException