|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.outerj.xreporter.report.definition.ParameterSqlPart
Inserts the value of a parameter into a SQL statement.
| Field Summary | |
protected java.lang.String |
ref
|
protected java.lang.String |
sqlAfter
An extra piece of sql to insert after the parameter (only if the parameter is required and/or has a value) |
protected java.lang.String |
sqlBefore
An extra piece of sql to insert before the parameter (only if the parameter is required and/or has a value) |
| Constructor Summary | |
ParameterSqlPart()
|
|
| 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 |
protected java.lang.String ref
protected java.lang.String sqlBefore
protected java.lang.String sqlAfter
| Constructor Detail |
public ParameterSqlPart()
| Method Detail |
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationException
public void addToSqlStatement(java.lang.StringBuffer statement,
ExecutionContext executionContext)
SqlPart
addToSqlStatement in interface SqlPart
public int bind(java.sql.PreparedStatement statement,
int start,
ExecutionContext executionContext)
throws java.sql.SQLException
SqlPartSqlPart.addToSqlStatement(java.lang.StringBuffer, org.outerj.xreporter.report.definition.ExecutionContext).
bind in interface SqlPartjava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||