| java.lang.Object org.apache.beehive.controls.system.jdbc.parser.SqlFragment
All known Subclasses: org.apache.beehive.controls.system.jdbc.parser.ReflectionFragment, org.apache.beehive.controls.system.jdbc.parser.SqlFragmentContainer, org.apache.beehive.controls.system.jdbc.parser.LiteralFragment,
SqlFragment | abstract public class SqlFragment (Code) | | The abstract base class for fragments generated during parsing.
|
getParamSqlDataType | int getParamSqlDataType()(Code) | | Get the SQL data type for the parameter value contained within this fragment.
The SQL data type for this fragment. |
getParameterValues | Object[] getParameterValues(ControlBeanContext context, Method method, Object[] args)(Code) | | Get the prepared statement parameter value contained within this fragment.
Parameters: context - A ControlBeanContext instance Parameters: method - The annotated method Parameters: args - The method's parameters null if this fragment doesn't contain a parameter value. |
getPreparedStatementText | abstract String getPreparedStatementText(ControlBeanContext context, Method method, Object[] args)(Code) | | Get the text for a prepared statement generated by this fragment.
Parameters: context - A ControlBeanContext instance Parameters: method - The annotated method Parameters: args - The method's parameters A String containing the prepared statement text generated by this fragment |
hasComplexValue | protected boolean hasComplexValue(ControlBeanContext context, Method method, Object[] args)(Code) | | True if this fragment evaluates to a JdbcControl.ComplexSqlFragment, i.e.
a value type which needs additional evaluation after reflection.
Parameters: context - Control bean context. Parameters: method - Method. Parameters: args - Method args. true if evaluates to a complex sql fragment. |
hasParamValue | boolean hasParamValue()(Code) | | Does this fragment contain a parameter value for a prepared statement
true if this fragement doesn't contain a prepared statement value. |
isDynamicFragment | boolean isDynamicFragment()(Code) | | True if this fragment shouldn't be cached since the prepared statement may change on each invocation.
true if this fragment shouldn't be cached by the parser |
toString | public String toString()(Code) | | Must be implemented for JUnit testing.
The String value of this fragment. |
|
|