Package net.sf.jasperreports.engine.data
Class JRAbstractBeanDataSource
java.lang.Object
net.sf.jasperreports.engine.data.JRAbstractBeanDataSource
- All Implemented Interfaces:
JRDataSource,JRRewindableDataSource
- Direct Known Subclasses:
BookmarksFlatDataSource,JRBeanArrayDataSource,JRBeanCollectionDataSource,JRJpaDataSource,JRJpaDataSource
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetBeanProperty(Object bean, String propertyName) protected ObjectgetFieldValue(Object bean, JRField field) protected StringgetPropertyName(JRField field) protected static booleanisCurrentBeanMapping(String propertyName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.engine.JRDataSource
getFieldValue, nextMethods inherited from interface net.sf.jasperreports.engine.JRRewindableDataSource
moveFirst
-
Field Details
-
EXCEPTION_MESSAGE_KEY_BEAN_FIELD_VALUE_NOT_RETRIEVED
- See Also:
-
PROPERTY_JAVABEAN_FIELD_PROPERTY
Property specifying the JavaBean property name for the dataset field.- See Also:
-
CURRENT_BEAN_MAPPING
Field mapping that produces the current bean. If the field name/description matches this constant (the case is important), the data source will return the current bean as the field value.- See Also:
-
propertyNameProvider
-
-
Constructor Details
-
JRAbstractBeanDataSource
public JRAbstractBeanDataSource(boolean isUseFieldDescription)
-
-
Method Details
-
getFieldValue
- Throws:
JRException
-
getBeanProperty
- Throws:
JRException
-
isCurrentBeanMapping
-
getPropertyName
-