net.sf.jasperreports.engine.data
Class JRAbstractBeanDataSource
java.lang.Object
net.sf.jasperreports.engine.data.JRAbstractBeanDataSource
- All Implemented Interfaces:
- JRDataSource, JRRewindableDataSource
- Direct Known Subclasses:
- JRBeanArrayDataSource, JRBeanCollectionDataSource, JRJpaDataSource
public abstract class JRAbstractBeanDataSource
- extends Object
- implements JRRewindableDataSource
- Version:
- $Id: JRAbstractBeanDataSource.java 5180 2012-03-29 13:23:12Z teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CURRENT_BEAN_MAPPING
public static final String 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:
- Constant Field Values
propertyNameProvider
protected net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.PropertyNameProvider propertyNameProvider
FIELD_NAME_PROPERTY_NAME_PROVIDER
protected static final net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.PropertyNameProvider FIELD_NAME_PROPERTY_NAME_PROVIDER
FIELD_DESCRIPTION_PROPERTY_NAME_PROVIDER
protected static final net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.PropertyNameProvider FIELD_DESCRIPTION_PROPERTY_NAME_PROVIDER
JRAbstractBeanDataSource
public JRAbstractBeanDataSource(boolean isUseFieldDescription)
getFieldValue
protected Object getFieldValue(Object bean,
JRField field)
throws JRException
- Throws:
JRException
getBeanProperty
protected static Object getBeanProperty(Object bean,
String propertyName)
throws JRException
- Throws:
JRException
isCurrentBeanMapping
protected static boolean isCurrentBeanMapping(String propertyName)
getPropertyName
protected String getPropertyName(JRField field)
Copyright © 2012. All Rights Reserved.