Class CommonsBeanUtilsPlugin
java.lang.Object
org.sqlproc.engine.plugin.CommonsBeanUtilsPlugin
- All Implemented Interfaces:
org.sqlproc.engine.plugin.BeanUtilsPlugin
public class CommonsBeanUtilsPlugin
extends Object
implements org.sqlproc.engine.plugin.BeanUtilsPlugin
Bean utilities implementation based on Apache commons library.
- Author:
- Vladimir Hudec
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.sqlproc.engine.plugin.BeanUtilsPlugin
org.sqlproc.engine.plugin.BeanUtilsPlugin.GetterType -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final org.slf4j.LoggerThe internal slf4j logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringattrTypes2String(Class<?>... attrTypes) booleancheckAttribute(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Object bean, String attrName) booleancheckMethod(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Class<?> clazz, String methodName, Class<?>... argTypes) booleancheckMethod(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Object bean, String methodName, Object... args) protected Stringprotected StringgetAttribute(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Object bean, String attrName) protected PropertyDescriptorgetAttributeDescriptor(Class<?> clazz, String attrName) Class<?>[]getAttributeParameterizedTypes(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName) Class<?> getAttributeType(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName) Class<?> getEnumToClass(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Class<?> clazz) getEnumToValue(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Object bean) protected MethodgetGetter(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName, boolean onlyCheck) org.sqlproc.engine.plugin.BeanUtilsPlugin.GetterTypegetGetterType(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName) org.sqlproc.engine.plugin.BeanUtilsPlugin.GetterTypegetGetterType(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Object bean, String attrName) getInstance(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Class<?> clazz) protected MethodgetSetter(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName, boolean onlyCheck, Class<?>... attrTypes) protected MethodgetSetter(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Object bean, String attrName, Class<?>... attrTypes) getValueToEnum(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Class<?> clazz, Object val) protected ObjectinvokeMethod(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Class<?> clazz, Object bean, String methodName, Object... args) invokeMethod(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Class<?> clazz, String methodName, Object... args) protected ObjectinvokeMethod(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Object bean, Method method, Object... args) invokeMethod(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Object bean, String methodName, Object... args) voidsetAttribute(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Object bean, String attrName, Object attrValue) booleansimpleSetAttribute(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Object bean, String attrName, Object attrValue, Class<?>... attrTypes) protected Object[]protected Class<?>[]toParameterTypes(Object arg) protected Class<?>[]toParameterTypes(Object[] args)
-
Field Details
-
logger
final org.slf4j.Logger loggerThe internal slf4j logger.
-
-
Constructor Details
-
CommonsBeanUtilsPlugin
public CommonsBeanUtilsPlugin()
-
-
Method Details
-
getInstance
-
getAttributeDescriptor
-
getAttributeType
-
getAttributeParameterizedTypes
-
getGetter
-
getGetterType
-
getGetterType
-
checkAttribute
-
getAttribute
-
getSetter
-
getSetter
-
simpleSetAttribute
-
setAttribute
-
invokeMethod
-
checkMethod
-
checkMethod
-
invokeMethod
public Object invokeMethod(org.sqlproc.engine.SqlRuntimeContext runtimeCtx, Class<?> clazz, String methodName, Object... args) throws org.sqlproc.engine.SqlRuntimeException - Specified by:
invokeMethodin interfaceorg.sqlproc.engine.plugin.BeanUtilsPlugin- Throws:
org.sqlproc.engine.SqlRuntimeException
-
invokeMethod
-
invokeMethod
-
getEnumToValue
-
getEnumToClass
-
getValueToEnum
-
attrTypes2String
-
toArray
-
toParameterTypes
-
toParameterTypes
-
debugInfo
-
debugInfo
-