SRJRCFrames
v0.1.296

de.schwarzrot.bean
Class BeanUtils

java.lang.Object
  extended by de.schwarzrot.bean.BeanUtils

public class BeanUtils
extends Object

helper class to handle JavaBeans. As standard java classes don't handle interfaces and generics right away, I had to implement my own variant.

Author:
Reinhard Mantey

Constructor Summary
BeanUtils()
           
 
Method Summary
 Method determineGetter(Class<?> beanType, String propertyName)
          determines the getter matching the given property name
 Map<String,PropertyInfo> determineProperties(Class entityType)
          scans the properties of a bean in a slightly different way, that the java standard introspection.
protected  void dumpClass(Class<?> c)
           
 
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

determineGetter

public Method determineGetter(Class<?> beanType,
                              String propertyName)
determines the getter matching the given property name

Parameters:
beanType - - the class of the bean
propertyName - - the name of the property
Returns:
- the getter to access the property values

determineProperties

public Map<String,PropertyInfo> determineProperties(Class entityType)
scans the properties of a bean in a slightly different way, that the java standard introspection. Whereas the latter prefers interfaces instead of derived classes it is vital for our persistence layer to know about the derived classes.

Generics are welcome, but not always that usable, especially if you try to implement type overloading at persistence level.

Parameters:
entityType - - the type that should get investigated
Returns:
- a map that holds property info

dumpClass

protected void dumpClass(Class<?> c)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.