public class CommonsBeanUtilsPlugin extends Object implements BeanUtilsPlugin
BeanUtilsPlugin.GetterType| Modifier and Type | Field and Description |
|---|---|
(package private) org.slf4j.Logger |
logger
The internal slf4j logger.
|
| Constructor and Description |
|---|
CommonsBeanUtilsPlugin() |
public Object getInstance(SqlRuntimeContext runtimeCtx, Class<?> clazz)
getInstance in interface BeanUtilsPluginprotected PropertyDescriptor getAttributeDescriptor(Class<?> clazz, String attrName)
public Class<?> getAttributeType(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName)
getAttributeType in interface BeanUtilsPluginpublic Class<?>[] getAttributeParameterizedTypes(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName)
getAttributeParameterizedTypes in interface BeanUtilsPluginprotected Method getGetter(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName, boolean onlyCheck)
public BeanUtilsPlugin.GetterType getGetterType(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName)
getGetterType in interface BeanUtilsPluginpublic BeanUtilsPlugin.GetterType getGetterType(SqlRuntimeContext runtimeCtx, Object bean, String attrName)
getGetterType in interface BeanUtilsPluginpublic boolean checkAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName)
checkAttribute in interface BeanUtilsPluginpublic Object getAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName) throws SqlRuntimeException
getAttribute in interface BeanUtilsPluginSqlRuntimeExceptionprotected 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 BeanUtilsPluginpublic void setAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName, Object attrValue) throws SqlRuntimeException
setAttribute in interface BeanUtilsPluginSqlRuntimeExceptionprotected Object invokeMethod(SqlRuntimeContext runtimeCtx, Object bean, Method method, Object... args) throws SqlRuntimeException
SqlRuntimeExceptionpublic boolean checkMethod(SqlRuntimeContext runtimeCtx, Class<?> clazz, String methodName, Class<?>... argTypes)
checkMethod in interface BeanUtilsPluginpublic boolean checkMethod(SqlRuntimeContext runtimeCtx, Object bean, String methodName, Object... args)
checkMethod in interface BeanUtilsPluginpublic Object invokeMethod(SqlRuntimeContext runtimeCtx, Class<?> clazz, String methodName, Object... args) throws SqlRuntimeException
invokeMethod in interface BeanUtilsPluginSqlRuntimeExceptionpublic Object invokeMethod(SqlRuntimeContext runtimeCtx, Object bean, String methodName, Object... args) throws SqlRuntimeException
invokeMethod in interface BeanUtilsPluginSqlRuntimeExceptionprotected Object invokeMethod(SqlRuntimeContext runtimeCtx, Class<?> clazz, Object bean, String methodName, Object... args) throws SqlRuntimeException
SqlRuntimeExceptionpublic Object getEnumToValue(SqlRuntimeContext runtimeCtx, Object bean)
getEnumToValue in interface BeanUtilsPluginpublic Class<?> getEnumToClass(SqlRuntimeContext runtimeCtx, Class<?> clazz)
getEnumToClass in interface BeanUtilsPluginpublic Object getValueToEnum(SqlRuntimeContext runtimeCtx, Class<?> clazz, Object val)
getValueToEnum in interface BeanUtilsPluginCopyright © 2017. All rights reserved.