net.ontopia.persistence.query.sql
Class DefaultParameterProcessor

java.lang.Object
  extended by net.ontopia.persistence.query.sql.DefaultParameterProcessor
All Implemented Interfaces:
ParameterProcessorIF

public class DefaultParameterProcessor
extends Object
implements ParameterProcessorIF

INTERNAL: Parameter processor that binds parameters to SQL statements without any special preprocessing.


Field Summary
protected  int fetchSize
           
protected  FieldHandlerIF[] param_fields
           
protected  String[] param_names
           
 
Constructor Summary
DefaultParameterProcessor(FieldHandlerIF[] param_fields, String[] param_names)
           
 
Method Summary
 ResultSet executeQuery(Connection conn, String sql, Map params)
           
 ResultSet executeQuery(Connection conn, String sql, Object[] params)
           
 int getFetchSize()
           
 void setFetchSize(int fetchSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

param_fields

protected FieldHandlerIF[] param_fields

param_names

protected String[] param_names

fetchSize

protected int fetchSize
Constructor Detail

DefaultParameterProcessor

public DefaultParameterProcessor(FieldHandlerIF[] param_fields,
                                 String[] param_names)
Method Detail

getFetchSize

public int getFetchSize()

setFetchSize

public void setFetchSize(int fetchSize)

executeQuery

public ResultSet executeQuery(Connection conn,
                              String sql,
                              Map params)
                       throws SQLException
Specified by:
executeQuery in interface ParameterProcessorIF
Throws:
SQLException

executeQuery

public ResultSet executeQuery(Connection conn,
                              String sql,
                              Object[] params)
                       throws SQLException
Specified by:
executeQuery in interface ParameterProcessorIF
Throws:
SQLException


Copyright © 2000-2012 Ontopia.