Class DefaultParameterProcessor
- java.lang.Object
-
- net.ontopia.persistence.query.sql.DefaultParameterProcessor
-
- All Implemented Interfaces:
ParameterProcessorIF
public class DefaultParameterProcessor extends Object implements ParameterProcessorIF
INTERNAL: Parameter processor that binds parameters to SQL statements without any special preprocessing.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
fetchSize
protected FieldHandlerIF[]
param_fields
protected String[]
param_names
-
Constructor Summary
Constructors Constructor Description DefaultParameterProcessor(FieldHandlerIF[] param_fields, String[] param_names)
-
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)
int
getFetchSize()
void
setFetchSize(int fetchSize)
-
-
-
Field Detail
-
param_fields
protected FieldHandlerIF[] param_fields
-
param_names
protected String[] param_names
-
fetchSize
protected int fetchSize
-
-
Constructor Detail
-
DefaultParameterProcessor
public DefaultParameterProcessor(FieldHandlerIF[] param_fields, String[] param_names)
-
-
Method Detail
-
getFetchSize
public int getFetchSize()
-
setFetchSize
public void setFetchSize(int fetchSize)
-
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
-
-