Class BeanUtils


  • public class BeanUtils
    extends java.lang.Object
    Reflective utilities for dealing with backward-incompatible change to statistics types in Hibernate 3.5.
    Author:
    gkeim
    • Constructor Summary

      Constructors 
      Constructor Description
      BeanUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object getBeanProperty​(java.lang.Object bean, java.lang.String propertyName)
      Retrieve a named bean property value.
      static long getLongBeanProperty​(java.lang.Object bean, java.lang.String propertyName)
      Retrieve a Long bean property value.
      • Methods inherited from class java.lang.Object

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

      • BeanUtils

        public BeanUtils()
    • Method Detail

      • getBeanProperty

        public static java.lang.Object getBeanProperty​(java.lang.Object bean,
                                                       java.lang.String propertyName)
        Retrieve a named bean property value.
        Parameters:
        bean - bean
        propertyName -
        Returns:
        the property value
      • getLongBeanProperty

        public static long getLongBeanProperty​(java.lang.Object bean,
                                               java.lang.String propertyName)
                                        throws java.lang.NoSuchFieldException
        Retrieve a Long bean property value.
        Parameters:
        bean - bean
        propertyName -
        Returns:
        long value
        Throws:
        java.lang.NoSuchFieldException