Package ipsk.beans

Class ExtendedIntrospector


  • public class ExtendedIntrospector
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ExtBeanInfo getExtendedBeanInfo​(java.lang.Class<?> entityClass)
      Creates extended bean info.
      static ExtBeanInfo getExtendedBeanInfo​(java.lang.Class<?> beanClass, boolean searchEntitySuperClass, boolean acceptPersistenceClassesOnly)
      Creates bean info for persistence entity class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExtendedIntrospector

        public ExtendedIntrospector()
    • Method Detail

      • getExtendedBeanInfo

        public static ExtBeanInfo getExtendedBeanInfo​(java.lang.Class<?> entityClass)
                                               throws java.beans.IntrospectionException
        Creates extended bean info. In this case the annotations would be not visible. Annotations related to identity of the entity, display order and localizations are processed.
        Parameters:
        entityClass -
        Returns:
        extended bean info
        Throws:
        java.beans.IntrospectionException
      • getExtendedBeanInfo

        public static ExtBeanInfo getExtendedBeanInfo​(java.lang.Class<?> beanClass,
                                                      boolean searchEntitySuperClass,
                                                      boolean acceptPersistenceClassesOnly)
                                               throws java.beans.IntrospectionException
        Creates bean info for persistence entity class. Tries to find superclass if searchEntityClass is true with Entity annotation, because some JPA implementations (OpenJPA and Hibernate for instance) use subclasses of the original entity class. In this case the annotations would be not visible. Annotations related to identity of the entity, display order and localizations are processed.
        Parameters:
        beanClass - class of entity bean
        searchEntitySuperClass - if true searches entity annotation in super classes
        Returns:
        extended bean info
        Throws:
        java.beans.IntrospectionException