org.outerj.xreporter.report.definition
Class CalculateSqlPart
java.lang.Object
org.outerj.xreporter.report.definition.CalculateSqlPart
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, SqlPart
- public class CalculateSqlPart
- extends java.lang.Object
- implements SqlPart, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.component.Composable
A SQL Part for inserting a value in a SQL statement which is dynamically
calculated.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
protected Type type
expressionString
protected java.lang.String expressionString
expression
protected Expression expression
expressionManager
protected ExpressionManager expressionManager
componentManager
protected org.apache.avalon.framework.component.ComponentManager componentManager
CalculateSqlPart
public CalculateSqlPart()
compose
public void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
throws org.apache.avalon.framework.component.ComponentException
- Specified by:
compose
in interface org.apache.avalon.framework.component.Composable
- Throws:
org.apache.avalon.framework.component.ComponentException
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)
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