|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sqlproc.engine.plugin.CommonsBeanUtilsPlugin
public class CommonsBeanUtilsPlugin
Bean utilities implementation based on Apache commons library.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.sqlproc.engine.plugin.BeanUtilsPlugin |
|---|
BeanUtilsPlugin.GetterType |
| Field Summary | |
|---|---|
(package private) org.slf4j.Logger |
logger
The internal slf4j logger. |
| Constructor Summary | |
|---|---|
CommonsBeanUtilsPlugin()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final org.slf4j.Logger logger
| Constructor Detail |
|---|
public CommonsBeanUtilsPlugin()
| Method Detail |
|---|
public Object getInstance(SqlRuntimeContext runtimeCtx,
Class<?> clazz)
getInstance in interface BeanUtilsPlugin
protected PropertyDescriptor getAttributeDescriptor(Class<?> clazz,
String attrName)
public Class<?> getAttributeType(SqlRuntimeContext runtimeCtx,
Class<?> clazz,
String attrName)
getAttributeType in interface BeanUtilsPlugin
protected Method getGetter(SqlRuntimeContext runtimeCtx,
Class<?> clazz,
String attrName,
boolean onlyCheck)
public BeanUtilsPlugin.GetterType getGetterType(SqlRuntimeContext runtimeCtx,
Class<?> clazz,
String attrName)
getGetterType in interface BeanUtilsPlugin
public BeanUtilsPlugin.GetterType getGetterType(SqlRuntimeContext runtimeCtx,
Object bean,
String attrName)
getGetterType in interface BeanUtilsPlugin
public boolean checkAttribute(SqlRuntimeContext runtimeCtx,
Object bean,
String attrName)
checkAttribute in interface BeanUtilsPlugin
public Object getAttribute(SqlRuntimeContext runtimeCtx,
Object bean,
String attrName)
throws SqlRuntimeException
getAttribute in interface BeanUtilsPluginSqlRuntimeException
protected Method getSetter(SqlRuntimeContext runtimeCtx,
Class<?> clazz,
String attrName,
boolean onlyCheck,
Class<?>... attrTypes)
protected Method getSetter(SqlRuntimeContext runtimeCtx,
Object bean,
String attrName,
Class<?>... attrTypes)
public boolean simpleSetAttribute(SqlRuntimeContext runtimeCtx,
Object bean,
String attrName,
Object attrValue,
Class<?>... attrTypes)
simpleSetAttribute in interface BeanUtilsPlugin
public void setAttribute(SqlRuntimeContext runtimeCtx,
Object bean,
String attrName,
Object attrValue)
throws SqlRuntimeException
setAttribute in interface BeanUtilsPluginSqlRuntimeException
protected Object invokeMethod(SqlRuntimeContext runtimeCtx,
Object bean,
Method method,
Object... args)
throws SqlRuntimeException
SqlRuntimeException
public boolean checkMethod(SqlRuntimeContext runtimeCtx,
Class<?> clazz,
String methodName,
Class<?>... argTypes)
checkMethod in interface BeanUtilsPlugin
public boolean checkMethod(SqlRuntimeContext runtimeCtx,
Object bean,
String methodName,
Object... args)
checkMethod in interface BeanUtilsPlugin
public Object invokeMethod(SqlRuntimeContext runtimeCtx,
Class<?> clazz,
String methodName,
Object... args)
throws SqlRuntimeException
invokeMethod in interface BeanUtilsPluginSqlRuntimeException
public Object invokeMethod(SqlRuntimeContext runtimeCtx,
Object bean,
String methodName,
Object... args)
throws SqlRuntimeException
invokeMethod in interface BeanUtilsPluginSqlRuntimeException
protected Object invokeMethod(SqlRuntimeContext runtimeCtx,
Class<?> clazz,
Object bean,
String methodName,
Object... args)
throws SqlRuntimeException
SqlRuntimeException
public Object getEnumToValue(SqlRuntimeContext runtimeCtx,
Object bean)
getEnumToValue in interface BeanUtilsPlugin
public Class<?> getEnumToClass(SqlRuntimeContext runtimeCtx,
Class<?> clazz)
getEnumToClass in interface BeanUtilsPlugin
public Object getValueToEnum(SqlRuntimeContext runtimeCtx,
Class<?> clazz,
Object val)
getValueToEnum in interface BeanUtilsPluginprotected String attrTypes2String(Class<?>... attrTypes)
protected Object[] toArray(Object arg)
protected Class<?>[] toParameterTypes(Object arg)
protected Class<?>[] toParameterTypes(Object[] args)
protected String debugInfo(String msg,
Object bean,
Method method,
Object... args)
protected String debugInfo(String msg,
Object bean,
String methodName,
Method method,
Object... args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||