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 java.lang.Object
implements ParameterProcessorIF

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


Field Summary
protected  int[] coll_indexes
           
protected  FieldHandlerIF[] param_fields
           
protected  java.lang.String[] param_names
           
protected  int[] param_offsets
           
 
Constructor Summary
CollectionParameterProcessor(FieldHandlerIF[] param_fields, java.lang.String[] param_names, int[] coll_indexes, int[] param_offsets)
           
 
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)
           
 java.lang.String process(java.lang.String sql, java.lang.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 java.lang.String[] param_names

coll_indexes

protected int[] coll_indexes

param_offsets

protected int[] param_offsets
Constructor Detail

CollectionParameterProcessor

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

process

public java.lang.String process(java.lang.String sql,
                                java.lang.Object[] params)

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.