|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.data.JRAbstractBeanDataSourceProvider
public abstract class JRAbstractBeanDataSourceProvider
The base implementation for JRBeanXXXDataSource providers. It provides a common implementation for bean properties introspection.
Constructor Summary | |
---|---|
JRAbstractBeanDataSourceProvider(java.lang.Class<?> beanClass)
Creates the provider. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jasperreports.engine.JRDataSourceProvider |
---|
create, dispose |
Constructor Detail |
---|
public JRAbstractBeanDataSourceProvider(java.lang.Class<?> beanClass)
beanClass
- the bean class to be introspected.Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |