1 18 19 package org.apache.beehive.controls.system.jdbc.parser; 20 21 import org.apache.beehive.controls.api.context.ControlBeanContext; 22 23 import java.lang.reflect.Method ; 24 import java.util.ArrayList ; 25 26 42 public final class JdbcFragment extends SqlFragmentContainer { 43 44 47 JdbcFragment() { 48 super(); 49 } 50 51 60 Object [] getParameterValues(ControlBeanContext context, Method method, Object [] args) { 61 62 ArrayList <Object > values = new ArrayList <Object >(); 63 for (SqlFragment sf : _children) { 64 if (sf.hasParamValue()) { 65 Object [] moreValues = sf.getParameterValues(context, method, args); 66 for (Object o : moreValues) { 67 values.add(o); 68 } 69 } 70 } 71 return values.toArray(); 72 } 73 } 74 | Popular Tags |