org.onemind.commons.relabean
Class RelationalBeanIntrospector

java.lang.Object
  extended byorg.onemind.commons.relabean.RelationalBeanIntrospector

public final class RelationalBeanIntrospector
extends java.lang.Object

A Relational Bean introspector uses a relational bean model descriptor - introspect a root bean to generate a RelationalBeanModel - introspect a bean to generate a RelationalBeanInfo based

Version:
$Id: RelationalBeanIntrospector.java,v 1.2 2004/08/26 16:28:58 thlee Exp $ $Name: $
Author:
TiongHiang Lee (thlee@onemindsoft.org)

Method Summary
static RelationalBeanIntrospector getInstance()
          Get an instance of the introspector
 RelationalBeanInfo introspectBeanInfo(RelationalBeanModelDescriptor desc, java.lang.Class beanClass)
          Introspect the RelationalBeanInfo based on the model descriptor
 RelationalBeanModel introspectModel(java.util.List list)
          Return a relational bean model from the given set of beans based on reflections
 RelationalBeanModel introspectModel(RelationalBeanModelDescriptor desc, java.util.Collection beanClasses)
          Construct the relational bean model from a set of bean classes using the relational bean model descriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RelationalBeanIntrospector getInstance()
Get an instance of the introspector

Returns:
the instance

introspectBeanInfo

public RelationalBeanInfo introspectBeanInfo(RelationalBeanModelDescriptor desc,
                                             java.lang.Class beanClass)
                                      throws java.beans.IntrospectionException
Introspect the RelationalBeanInfo based on the model descriptor

Parameters:
desc - the model descritpror
beanClass - the bean class
Returns:
the RelationalBeanInfo
Throws:
java.beans.IntrospectionException - if there's problem introspect the bean properties

introspectModel

public RelationalBeanModel introspectModel(RelationalBeanModelDescriptor desc,
                                           java.util.Collection beanClasses)
                                    throws java.beans.IntrospectionException
Construct the relational bean model from a set of bean classes using the relational bean model descriptor

Parameters:
desc - the descriptor
beanClasses - the bean classes
Returns:
the relation bean model
Throws:
java.beans.IntrospectionException - if there's problem in instropecting the bean properties

introspectModel

public RelationalBeanModel introspectModel(java.util.List list)
                                    throws java.beans.IntrospectionException
Return a relational bean model from the given set of beans based on reflections

Parameters:
list - the list of beans
Returns:
the relational bean model
Throws:
java.beans.IntrospectionException - if there's exception introspecting the model


Copyright © 2004-2005 . All Rights Reserved.