public class DAOUtil extends Object
| Constructor and Description |
|---|
DAOUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
callMethod(Object object,
String methodName,
Class<?>[] paramTypes,
Object... args)
This is a helper method to call a method on an Object with the given
parameters.
|
static Object |
callMethod(Object object,
String methodName,
Object... args)
This is a helper method to call a method on an Object with the given
parameters.
|
static Method |
getMethod(Class<?> klass,
String methodName,
Class<?>... paramTypes) |
static <T> List<Class<?>> |
getTypeArguments(Class<T> baseClass,
Class<? extends T> childClass)
Get the actual type arguments a child class has used to extend a generic
base class.
|
public static <T> List<Class<?>> getTypeArguments(Class<T> baseClass, Class<? extends T> childClass)
baseClass - the base classchildClass - the child classpublic static Object callMethod(Object object, String methodName, Object... args) throws NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
public static Object callMethod(Object object, String methodName, Class<?>[] paramTypes, Object... args) throws NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
Copyright © 2008-2013. All Rights Reserved.