|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.genericdao.dao.DAOUtil
public class DAOUtil
Utility methods for Hibernate Genereic DAO.
| Constructor Summary | |
|---|---|
DAOUtil()
|
|
| Method Summary | ||
|---|---|---|
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
|
getTypeArguments(Class<T> baseClass,
Class<? extends T> childClass)
Get the actual type arguments a child class has used to extend a generic base class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DAOUtil()
| Method Detail |
|---|
public static <T> List<Class<?>> getTypeArguments(Class<T> baseClass,
Class<? extends T> childClass)
baseClass - the base classchildClass - the child class
public static Object callMethod(Object object,
String methodName,
Object... args)
throws NoSuchMethodException,
IllegalArgumentException,
IllegalAccessException,
InvocationTargetException
NoSuchMethodException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
public static Object callMethod(Object object,
String methodName,
Class<?>[] paramTypes,
Object... args)
throws NoSuchMethodException,
IllegalArgumentException,
IllegalAccessException,
InvocationTargetException
NoSuchMethodException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
public static Method getMethod(Class<?> klass,
String methodName,
Class<?>... paramTypes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||