public class BaseDAODispatcher extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
specificDAOs |
| Constructor and Description |
|---|
BaseDAODispatcher() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
callMethod(Object specificDAO,
String methodName,
Class<?>[] paramTypes,
Object... args) |
protected Object |
callMethod(Object specificDAO,
String methodName,
Object... args) |
protected Object |
getSpecificDAO(String className) |
protected static Class<?> |
getTypeFromArray(Object[] array)
Get the type of an array's elements.
|
protected static Class<?> |
getUniformArrayType(Object[] array)
If array is null, empty or has no non-null elements, return null
If array contains all elements of the same type, return that type
If array contains several different element types, return
Object.class
|
void |
setSpecificDAOs(Map<String,Object> specificDAOs)
In practice some DAOs could be put into this map using Spring.
|
public void setSpecificDAOs(Map<String,Object> specificDAOs)
protected Object callMethod(Object specificDAO, String methodName, Class<?>[] paramTypes, Object... args)
protected static Class<?> getTypeFromArray(Object[] array)
Copyright © 2008-2013. All Rights Reserved.