Top Description Constructors Methods
net.sf.ehcache.hibernate.management.impl

public Class BeanUtils

extends Object
Class Inheritance
Imports
java.lang.reflect.Field, .Method

Reflective utilities for dealing with backward-incompatible change to statistics types in Hibernate 3.5.
Author
gkeim

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Object

Returns:

the property value
getBeanProperty
(Object
bean
bean
,
String propertyName)

Retrieve a named bean property value.

private static Field

Returns:

the named field
getField
(Object bean, String propertyName)

Return the named field on the bean or null if not found.

public static long

Returns:

long value
getLongBeanProperty
(final Object
bean
bean
,
final String propertyName)

Retrieve a Long bean property value.

private static Method

Returns:

the named getter method
getMethod
(Object bean, String propertyName)

Return the named getter method on the bean or null if not found.

private static void
validateArgs(Object bean, String propertyName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BeanUtilsback to summary
public BeanUtils()

Method Detail

getBeanPropertyback to summary
public static Object getBeanProperty(Object bean, String propertyName)

Retrieve a named bean property value.

Parameters
bean:Object

bean

Returns:Object

the property value

getFieldback to summary
private static Field getField(Object bean, String propertyName)

Return the named field on the bean or null if not found.

Returns:Field

the named field

getLongBeanPropertyback to summary
public static long getLongBeanProperty(final Object bean, final String propertyName) throws NoSuchFieldException

Retrieve a Long bean property value.

Parameters
bean:Object

bean

Returns:long

long value

getMethodback to summary
private static Method getMethod(Object bean, String propertyName)

Return the named getter method on the bean or null if not found.

Returns:Method

the named getter method

validateArgsback to summary
private static void validateArgs(Object bean, String propertyName)