org.outerj.xreporter.report.definition
Class OrderBySqlPart

java.lang.Object
  extended byorg.outerj.xreporter.report.definition.OrderBySqlPart
All Implemented Interfaces:
SqlPart

public class OrderBySqlPart
extends java.lang.Object
implements SqlPart

A SQL part which will insert the selected orderby in the SQL statement (if any).


Constructor Summary
OrderBySqlPart()
           
 
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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderBySqlPart

public OrderBySqlPart()
Method Detail

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)
         throws java.sql.SQLException
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
Throws:
java.sql.SQLException