JTools

org.jtools.dao
Class SimpleDAOInvocator<T_Parent>

java.lang.Object
  extended by org.jtools.dao.SimpleDAOInvocator<T_Parent>
All Implemented Interfaces:
DAOInvocator<T_Parent>

public class SimpleDAOInvocator<T_Parent>
extends Object
implements DAOInvocator<T_Parent>

Author:
Rainer

Constructor Summary
SimpleDAOInvocator()
           
 
Method Summary
protected  boolean addConfigured(T_Parent parent, Object element, String name)
           
 boolean addText(T_Parent element, StringBuilder value)
           
protected  Object createElement(Class cl)
           
 Object createElement(T_Parent parent, String name)
           
protected  Collection<Method> findMethods(Class cl, String name, boolean ignoreCase)
           
protected  String[] getAddConfiguredMethodName(String property)
           
protected  String getAddMethodName(String property)
           
protected  String getCreateMethodName(String property)
           
 boolean setAttribute(T_Parent element, String name, String value)
           
 void setElement(T_Parent parent, String name, Object element)
           
 boolean setText(T_Parent element, StringBuilder value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDAOInvocator

public SimpleDAOInvocator()
Method Detail

setAttribute

public boolean setAttribute(T_Parent element,
                            String name,
                            String value)
                     throws Exception
Specified by:
setAttribute in interface DAOInvocator<T_Parent>
Throws:
Exception

addText

public boolean addText(T_Parent element,
                       StringBuilder value)
Specified by:
addText in interface DAOInvocator<T_Parent>

setText

public boolean setText(T_Parent element,
                       StringBuilder value)
Specified by:
setText in interface DAOInvocator<T_Parent>

getCreateMethodName

protected String getCreateMethodName(String property)

getAddMethodName

protected String getAddMethodName(String property)

getAddConfiguredMethodName

protected String[] getAddConfiguredMethodName(String property)

findMethods

protected Collection<Method> findMethods(Class cl,
                                         String name,
                                         boolean ignoreCase)

createElement

protected Object createElement(Class cl)

addConfigured

protected boolean addConfigured(T_Parent parent,
                                Object element,
                                String name)

createElement

public Object createElement(T_Parent parent,
                            String name)
                     throws Exception
Specified by:
createElement in interface DAOInvocator<T_Parent>
Throws:
Exception

setElement

public void setElement(T_Parent parent,
                       String name,
                       Object element)
                throws Exception
Specified by:
setElement in interface DAOInvocator<T_Parent>
Throws:
Exception

JTools

© 2000-2006, JTools.org.