public abstract class JRAbstractBeanDataSourceProvider extends java.lang.Object implements JRDataSourceProvider
Constructor and Description |
---|
JRAbstractBeanDataSourceProvider(java.lang.Class beanClass)
Creates the provider.
|
Modifier and Type | Method and Description |
---|---|
JRField[] |
getFields(JasperReport report)
Returns the fields that are available from the data source.
|
boolean |
supportsGetFieldsOperation()
Returns true if the provider supports the
getFields
operation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, dispose
public JRAbstractBeanDataSourceProvider(java.lang.Class beanClass)
beanClass
- the bean class to be introspected.public boolean supportsGetFieldsOperation()
JRDataSourceProvider
getFields
operation. By returning true in this method the data source provider indicates
that it is able to introspect the data source and discover the available fields.supportsGetFieldsOperation
in interface JRDataSourceProvider
JRDataSourceProvider.supportsGetFieldsOperation()
public JRField[] getFields(JasperReport report) throws JRException
JRDataSourceProvider
getFields
in interface JRDataSourceProvider
report
- the report that will be filled using the data source created by this provider.
The passed in report can be null. That means that no compiled report is available yet.JRException
- if an error occurs.JRDataSourceProvider.getFields(net.sf.jasperreports.engine.JasperReport)
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com