ERJRFoundationDataSource Class Reference

Inherits net::sf::jasperreports::engine::JRDataSource.

Collaboration diagram for ERJRFoundationDataSource:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ERJRFoundationDataSource (Enumeration<?extends NSKeyValueCodingAdditions > enumeration, int itemCount)
 ERJRFoundationDataSource (NSArray<?extends NSKeyValueCodingAdditions > arr)
Object getFieldValue (JRField jrField) throws JRException
boolean getFilterNulls ()
boolean next () throws JRException
double percentProcessed ()
void setFilterNulls (boolean filters)

Static Public Attributes

static final String REPORT_KEYPATH_SEPARATOR = ERXProperties.stringForKeyWithDefault("er.jasperreports.keyPathSeparator", "_")

Protected Attributes

NSKeyValueCodingAdditions currRow
NSMutableDictionary< String,
Object > 
debugRow
Enumeration<?extends
NSKeyValueCodingAdditions > 
e
boolean filterNulls = true

Private Attributes

int processedCount = 0
int totalCount = 100

Static Private Attributes

static final String FIELD_NAME_FOR_CURRENT_ROW = ERXProperties.stringForKeyWithDefault("er.jasperreports.currentRow.fieldName", "_currentRow")
static final Logger log = Logger.getLogger(ERJRFoundationDataSource.class)
static final String WEBOBJECTS_KEYPATH_SEPARATOR = "."


Detailed Description

Takes an an NSArray of NSKeyValueCodingAdditions (think keypaths) objects

Constructor & Destructor Documentation

ERJRFoundationDataSource ( NSArray<?extends NSKeyValueCodingAdditions >  arr  ) 

ERJRFoundationDataSource ( Enumeration<?extends NSKeyValueCodingAdditions >  enumeration,
int  itemCount 
)


Member Function Documentation

Object getFieldValue ( JRField  jrField  )  throws JRException

boolean getFilterNulls (  ) 

boolean next (  )  throws JRException

double percentProcessed (  ) 

void setFilterNulls ( boolean  filters  ) 


Member Data Documentation

NSKeyValueCodingAdditions currRow [protected]

Private NSArray that contains the database values we wish to use in the report.

NSMutableDictionary<String, Object> debugRow [protected]

Enumeration<? extends NSKeyValueCodingAdditions> e [protected]

final String FIELD_NAME_FOR_CURRENT_ROW = ERXProperties.stringForKeyWithDefault("er.jasperreports.currentRow.fieldName", "_currentRow") [static, private]

Sometimes we want might want a reference to the current row, perhaps to pass to a custom function in a scriptlet. This functionality allows us to specify a field name that returns the current row object itself rather than an attribute of the current row.

The default fieldname is "_currentRow", however this can be overridden in system properties using: er.jasperreports.currentRow.fieldName=myCustomCurrentRowFieldname

boolean filterNulls = true [protected]

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

int processedCount = 0 [private]

final String REPORT_KEYPATH_SEPARATOR = ERXProperties.stringForKeyWithDefault("er.jasperreports.keyPathSeparator", "_") [static]

int totalCount = 100 [private]

final String WEBOBJECTS_KEYPATH_SEPARATOR = "." [static, 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