1 18 19 package org.apache.beehive.controls.system.jdbc.parser; 20 21 import org.apache.beehive.controls.api.context.ControlBeanContext; 22 import org.apache.beehive.controls.system.jdbc.TypeMappingsFactory; 23 24 import java.lang.reflect.Method ; 25 26 29 public abstract class SqlFragment { 30 31 35 boolean isDynamicFragment() { 36 return false; 37 } 38 39 43 boolean hasParamValue() { 44 return false; 45 } 46 47 51 int getParamSqlDataType() { 52 return TypeMappingsFactory.TYPE_UNKNOWN; 53 } 54 55 63 Object [] getParameterValues(ControlBeanContext context, Method method, Object [] args) { 64 return null; 65 } 66 67 74 abstract String getPreparedStatementText(ControlBeanContext context, Method method, Object [] args); 75 76 80 public String toString() { 81 assert false : "Classes which extend SqlFragment must implement toString()"; 82 return null; 83 } 84 } 85 | Popular Tags |