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