org.sqlproc.engine
Interface SqlRuntimeContext

All Known Implementing Classes:
SqlProcessContext

public interface SqlRuntimeContext

The public runtime context.

For more info please see the Tutorials.

Author:
Vladimir Hudec

Method Summary
 boolean checkAttribute(Object bean, String attrName)
           
 boolean checkMethod(Class<?> clazz, String methodName, Class<?>... argTypes)
           
 boolean checkMethod(Object bean, String methodName, Object... args)
           
 Object getAttribute(Object bean, String attrName)
           
 Class<?> getAttributeType(Class<?> clazz, String attrName)
           
 Class<?> getEnumToClass(Class<?> clazz)
           
 Object getEnumToValue(Object bean)
           
 String getFeature(String name)
          Convenient method to obtain a String feature based on the name.
 Integer getFeatureAsInt(String name)
          Convenient method to obtain an Integer feature based on the name.
 Object getFeatureAsObject(String name)
          Convenient method to obtain an Object feature based on the name.
 String[] getFeatures(String name)
          Convenient method to obtain a String array features based on the name.
 BeanUtilsPlugin.GetterType getGetterType(Class<?> clazz, String attrName)
           
 BeanUtilsPlugin.GetterType getGetterType(Object bean, String attrName)
           
 Object getInstance(Class<?> clazz)
           
 SqlPluginFactory getPluginFactory()
          Returns the factory responsible for the SQL Processor plugins.
 Object getRawFeature(String name)
          Convenient method to obtain a feature based on the name.
 SqlTypeFactory getTypeFactory()
          Returns the factory responsible for the META types construction.
 Object getValueToEnum(Class<?> objClass, Object val)
           
 Object invokeMethod(Class<?> clazz, String methodName, Object... args)
           
 Object invokeMethod(Object bean, String methodName, Object... args)
           
 boolean isFeature(String name)
          Convenient method to obtain a boolean feature based on the name.
 void setAttribute(Object bean, String attrName, Object attrValue)
           
 boolean simpleSetAttribute(Object bean, String attrName, Object attrValue, Class<?>... attrTypes)
           
 

Method Detail

getFeature

String getFeature(String name)
Convenient method to obtain a String feature based on the name.

Parameters:
name - name of the feature
Returns:
value of the feature

getFeatures

String[] getFeatures(String name)
Convenient method to obtain a String array features based on the name.

Parameters:
name - name of the feature
Returns:
the array of the feature values

isFeature

boolean isFeature(String name)
Convenient method to obtain a boolean feature based on the name.

Parameters:
name - name of the feature
Returns:
value of the feature

getFeatureAsInt

Integer getFeatureAsInt(String name)
Convenient method to obtain an Integer feature based on the name.

Parameters:
name - name of the feature
Returns:
value of the feature

getFeatureAsObject

Object getFeatureAsObject(String name)
Convenient method to obtain an Object feature based on the name.

Parameters:
name - name of the feature
Returns:
value of the feature

getRawFeature

Object getRawFeature(String name)
Convenient method to obtain a feature based on the name.

Parameters:
name - name of the feature
Returns:
value of the feature

getTypeFactory

SqlTypeFactory getTypeFactory()
Returns the factory responsible for the META types construction.

Returns:
the factory for the META types construction

getPluginFactory

SqlPluginFactory getPluginFactory()
Returns the factory responsible for the SQL Processor plugins.

Returns:
the factory for the SQL Processor plugins

getInstance

Object getInstance(Class<?> clazz)

getAttributeType

Class<?> getAttributeType(Class<?> clazz,
                          String attrName)

getGetterType

BeanUtilsPlugin.GetterType getGetterType(Class<?> clazz,
                                         String attrName)

getGetterType

BeanUtilsPlugin.GetterType getGetterType(Object bean,
                                         String attrName)

checkAttribute

boolean checkAttribute(Object bean,
                       String attrName)

getAttribute

Object getAttribute(Object bean,
                    String attrName)

simpleSetAttribute

boolean simpleSetAttribute(Object bean,
                           String attrName,
                           Object attrValue,
                           Class<?>... attrTypes)

setAttribute

void setAttribute(Object bean,
                  String attrName,
                  Object attrValue)

checkMethod

boolean checkMethod(Class<?> clazz,
                    String methodName,
                    Class<?>... argTypes)

checkMethod

boolean checkMethod(Object bean,
                    String methodName,
                    Object... args)

invokeMethod

Object invokeMethod(Class<?> clazz,
                    String methodName,
                    Object... args)

invokeMethod

Object invokeMethod(Object bean,
                    String methodName,
                    Object... args)

getEnumToValue

Object getEnumToValue(Object bean)

getEnumToClass

Class<?> getEnumToClass(Class<?> clazz)

getValueToEnum

Object getValueToEnum(Class<?> objClass,
                      Object val)


Copyright © 2015. All rights reserved.