net.ontopia.persistence.query.sql
Class CollectionParameterProcessor

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

public class CollectionParameterProcessor
extends Object
implements ParameterProcessorIF

INTERNAL: Parameter processor that embeds collection parameters inside SQL statements.


Field Summary
protected  int[] coll_indexes
           
protected  FieldHandlerIF[] param_fields
           
protected  String[] param_names
           
protected  int[] param_offsets
           
 
Constructor Summary
CollectionParameterProcessor(FieldHandlerIF[] param_fields, String[] param_names, int[] coll_indexes, int[] param_offsets)
           
 
Method Summary
 ResultSet executeQuery(Connection conn, String sql, Map params)
           
 ResultSet executeQuery(Connection conn, String sql, Object[] params)
           
 String process(String sql, Object[] params)
           
 
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

coll_indexes

protected int[] coll_indexes

param_offsets

protected int[] param_offsets
Constructor Detail

CollectionParameterProcessor

public CollectionParameterProcessor(FieldHandlerIF[] param_fields,
                                    String[] param_names,
                                    int[] coll_indexes,
                                    int[] param_offsets)
Method Detail

process

public String process(String sql,
                      Object[] params)

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.