net.sf.jasperreports.jsf.fill
Class AbstractSQLFiller

java.lang.Object
  extended by net.sf.jasperreports.jsf.fill.AbstractFiller
      extended by net.sf.jasperreports.jsf.fill.AbstractSQLFiller
All Implemented Interfaces:
Filler
Direct Known Subclasses:
JdbcFiller, JndiFiller

public abstract class AbstractSQLFiller
extends AbstractFiller

The Class QueryFiller.


Field Summary
 
Fields inherited from class net.sf.jasperreports.jsf.fill.AbstractFiller
PARAM_REPORT_CLASSLOADER, PARAM_REPORT_LOCALE
 
Constructor Summary
AbstractSQLFiller(UIDataSource dataSource)
           
 
Method Summary
protected  JasperPrint doFill(FacesContext context, InputStream reportStream, Map<String,Object> params)
          Do fill.
protected  ResultSet executeQuery(Connection conn, String query)
          Execute query.
protected abstract  Connection getConnection()
           
 
Methods inherited from class net.sf.jasperreports.jsf.fill.AbstractFiller
buildParamMap, fill, getDataSourceComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSQLFiller

public AbstractSQLFiller(UIDataSource dataSource)
Method Detail

getConnection

protected abstract Connection getConnection()
                                     throws Exception
Throws:
Exception

executeQuery

protected ResultSet executeQuery(Connection conn,
                                 String query)
                          throws FillerException
Execute query.

Parameters:
conn - the conn
Returns:
the result set
Throws:
JRFacesException - the JR faces exception
FillerException - the filler exception

doFill

protected final JasperPrint doFill(FacesContext context,
                                   InputStream reportStream,
                                   Map<String,Object> params)
                            throws FillerException
Description copied from class: AbstractFiller
Do fill.

Specified by:
doFill in class AbstractFiller
Parameters:
context - the context
reportStream - the report stream
params - the params
Returns:
the jasper print
Throws:
FillerException - the filler exception


Copyright © 2009 SourceForge.net. All Rights Reserved.