ERJRFetchSpecificationReportTask Class Reference

Inherits java::util::concurrent::Callable<File>, and er::extensions::concurrency::ERXTaskPercentComplete.

Collaboration diagram for ERJRFetchSpecificationReportTask:

Collaboration graph
[legend]

List of all members.

Public Member Functions

File call () throws Exception
 ERJRFetchSpecificationReportTask (EOFetchSpecification fetchSpecification, String jasperCompiledReportFileName, String frameworkName, HashMap< String, Object > parameters)
 ERJRFetchSpecificationReportTask (EOFetchSpecification fetchSpecification, String jasperCompiledReportFileName, HashMap< String, Object > parameters)
 ERJRFetchSpecificationReportTask (EOFetchSpecification fetchSpecification, String jasperCompiledReportFileName)
File file ()
Double percentComplete ()

Private Member Functions

File _call ()
EOFetchSpecification schemaBasedFetchSpecification (EOFetchSpecification fetchSpecification)

Private Attributes

final EOFetchSpecification fetchSpecification
final String frameworkName
final String jasperCompiledReportFileName
ERJRFoundationDataSource jrDataSource
Map< String, Object > parameters
File reportFile

Static Private Attributes

static final Logger log = Logger.getLogger(ERJRFetchSpecificationReportTask.class)


Detailed Description

A background task class that creates a JasperReports report in the context of a WebObjects application. Sensible defaults are used.

A convenient Builder pattern inner class is provided too.

Author:
kieran

Constructor & Destructor Documentation

ERJRFetchSpecificationReportTask ( EOFetchSpecification  fetchSpecification,
String  jasperCompiledReportFileName 
)

ERJRFetchSpecificationReportTask ( EOFetchSpecification  fetchSpecification,
String  jasperCompiledReportFileName,
HashMap< String, Object >  parameters 
)

ERJRFetchSpecificationReportTask ( EOFetchSpecification  fetchSpecification,
String  jasperCompiledReportFileName,
String  frameworkName,
HashMap< String, Object >  parameters 
)


Member Function Documentation

File _call (  )  [private]

File call (  )  throws Exception

Callable interface implementation

Returns:
Exceptions:
Exception 

File file (  ) 

Double percentComplete (  ) 

Returns:
a Double between 0 and 1.0 indicating how far a task has progressed toward completion. A null return value indicates that percent complete is unknown

Implements ERXTaskPercentComplete.

EOFetchSpecification schemaBasedFetchSpecification ( EOFetchSpecification  fetchSpecification  )  [private]

Ensures we don't have references to EOs before using this in the background thread.

Parameters:
fs 
Returns:
a clone of the fetchSpecification with the EOQualifier converted to a schema-based qualifier or the same EOFetchSpecification if there is no qualifier.


Member Data Documentation

final EOFetchSpecification fetchSpecification [private]

final String frameworkName [private]

final Logger log = Logger.getLogger(ERJRFetchSpecificationReportTask.class) [static, private]

Map<String, Object> parameters [private]

File reportFile [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:22 2012 for Project Wonder by  doxygen 1.5.8