|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.equanda.util.accessor.ObjectAccessor
public final class ObjectAccessor
Helper class used by for access to equanda selectors, getters, setters and other methods
Field Summary | |
---|---|
protected static long |
CACHE_TIMEOUT
|
protected static WeakHashMap<String,Method> |
METHOD_CACHE
|
protected static Class[] |
UOID_CLASS
|
Method Summary | |
---|---|
static void |
add(Object obj,
String fieldName,
Class[] param,
Object[] values)
|
protected static void |
addToCache(Class clsName,
String methodName,
Method method)
|
static void |
clean()
|
static Object |
createBean(String jndi,
String name,
Object uoid)
Creates a SFSB for the given uoid. |
static Object |
createProxy(String prefix,
String name)
Creates a proxy for the given table. |
static Object |
get(Object obj,
String fieldName)
|
protected static Method |
getFromCache(Class clsName,
String methodName)
|
static Method |
getMethod(Class objClass,
String name,
Class[] param)
|
static Class |
getProxyClass(String proxyName)
Get the class instance used for a specific proxy. |
static Class |
getProxyClass(String prefix,
String name)
Get the class instance used for a specific proxy. |
static Object |
getSelector(String jndi,
String name)
|
static void |
init()
|
static void |
init(String server,
String login,
String password)
|
static void |
set(Object obj,
String fieldName,
Class[] param,
Object[] values)
|
static UserTransaction |
startTransaction()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final WeakHashMap<String,Method> METHOD_CACHE
protected static long CACHE_TIMEOUT
protected static Class[] UOID_CLASS
Method Detail |
---|
public static void init(String server, String login, String password)
public static void init()
public static void clean()
public static Object getSelector(String jndi, String name) throws ObjectAccessorException
ObjectAccessorException
public static Object createBean(String jndi, String name, Object uoid) throws ObjectAccessorException
jndi
- can be specified as both selector jndi or sfsb jndiname
- can be specified as both selector jndi or sfsb jndiuoid
- to lookup
ObjectAccessorException
- oopspublic static Object createProxy(String prefix, String name) throws ObjectAccessorException
prefix
- package name for the proxyname
- table name for the proxy
ObjectAccessorException
- oopspublic static Class getProxyClass(String prefix, String name) throws ObjectAccessorException
prefix
- package name for the proxyname
- table name for the proxy
ObjectAccessorException
- oopspublic static Class getProxyClass(String proxyName) throws ObjectAccessorException
proxyName
- full classname for the proxy
ObjectAccessorException
- oopspublic static Object get(Object obj, String fieldName) throws ObjectAccessorException
ObjectAccessorException
public static void set(Object obj, String fieldName, Class[] param, Object[] values) throws ObjectAccessorException
ObjectAccessorException
public static void add(Object obj, String fieldName, Class[] param, Object[] values) throws ObjectAccessorException
ObjectAccessorException
public static Method getMethod(Class objClass, String name, Class[] param) throws ObjectAccessorException
ObjectAccessorException
protected static void addToCache(Class clsName, String methodName, Method method)
protected static Method getFromCache(Class clsName, String methodName)
public static UserTransaction startTransaction() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |