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_indexesprotected FieldHandlerIF[]param_fieldsprotected String[]param_namesprotected 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 ResultSetexecuteQuery(Connection conn, String sql, Object[] params)ResultSetexecuteQuery(Connection conn, String sql, Map params)Stringprocess(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:
executeQueryin interfaceParameterProcessorIF- Throws:
SQLException
-
executeQuery
public ResultSet executeQuery(Connection conn, String sql, Object[] params) throws SQLException
- Specified by:
executeQueryin interfaceParameterProcessorIF- Throws:
SQLException
-
-