Class JRAbstractBeanDataSource

    • Field Detail

      • EXCEPTION_MESSAGE_KEY_BEAN_FIELD_VALUE_NOT_RETRIEVED

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_BEAN_FIELD_VALUE_NOT_RETRIEVED
        See Also:
        Constant Field Values
      • PROPERTY_JAVABEAN_FIELD_PROPERTY

        public static final java.lang.String PROPERTY_JAVABEAN_FIELD_PROPERTY
        Property specifying the JavaBean property name for the dataset field.
        See Also:
        Constant Field Values
      • 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
    • Constructor Detail

      • JRAbstractBeanDataSource

        public JRAbstractBeanDataSource​(boolean isUseFieldDescription)
    • Method Detail

      • 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)