public abstract class JRAbstractBeanDataSourceProvider extends java.lang.Object implements JRDataSourceProvider
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXCEPTION_MESSAGE_KEY_NULL_BEAN_CLASS |
| 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, waitcreate, disposepublic static final java.lang.String EXCEPTION_MESSAGE_KEY_NULL_BEAN_CLASS
public JRAbstractBeanDataSourceProvider(java.lang.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)© 2001-2014 TIBCO Software Inc. www.jaspersoft.com