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 java.lang.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  java.lang.String[] param_names
           
 
Constructor Summary
DefaultParameterProcessor(FieldHandlerIF[] param_fields, java.lang.String[] param_names)
           
 
Method Summary
 java.sql.ResultSet executeQuery(java.sql.Connection conn, java.lang.String sql, java.util.Map params)
           
 java.sql.ResultSet executeQuery(java.sql.Connection conn, java.lang.String sql, java.lang.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 java.lang.String[] param_names

fetchSize

protected int fetchSize
Constructor Detail

DefaultParameterProcessor

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

getFetchSize

public int getFetchSize()

setFetchSize

public void setFetchSize(int fetchSize)

executeQuery

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

executeQuery

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


Copyright © 2000-2012 Ontopia.