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 java.lang.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 java.lang.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 java.lang.Object getFieldValue(java.lang.Object bean,
JRField field)
throws JRException
- Throws:
JRException
getBeanProperty
protected static java.lang.Object getBeanProperty(java.lang.Object bean,
java.lang.String propertyName)
throws JRException
- Throws:
JRException
isCurrentBeanMapping
protected static boolean isCurrentBeanMapping(java.lang.String propertyName)
getPropertyName
protected java.lang.String getPropertyName(JRField field)
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com