Class CollectionParameterProcessor
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected int[]
coll_indexes
protected FieldHandlerIF[]
param_fields
protected String[]
param_names
protected int[]
param_offsets
-
Constructor Summary
Constructors Constructor Description CollectionParameterProcessor(FieldHandlerIF[] param_fields, String[] param_names, int[] coll_indexes, int[] param_offsets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultSet
executeQuery(Connection conn, String sql, Object[] params)
ResultSet
executeQuery(Connection conn, String sql, Map params)
String
process(String sql, Object[] params)
-
-
-
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
-
executeQuery
public ResultSet executeQuery(Connection conn, String sql, Map params) throws SQLException
- Specified by:
executeQuery
in interfaceParameterProcessorIF
- Throws:
SQLException
-
executeQuery
public ResultSet executeQuery(Connection conn, String sql, Object[] params) throws SQLException
- Specified by:
executeQuery
in interfaceParameterProcessorIF
- Throws:
SQLException
-
-