public abstract class JRAbstractBeanDataSourceProvider extends Object implements JRDataSourceProvider
| Constructor and Description |
|---|
JRAbstractBeanDataSourceProvider(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, waitcreate, disposepublic JRAbstractBeanDataSourceProvider(Class<?> beanClass)
beanClass - the bean class to be introspected.public boolean supportsGetFieldsOperation()
JRDataSourceProvidergetFields
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 JRDataSourceProviderJRDataSourceProvider.supportsGetFieldsOperation()public JRField[] getFields(JasperReport report) throws JRException
JRDataSourceProvidergetFields in interface JRDataSourceProviderreport - 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)Copyright © 2012. All Rights Reserved.