Package org.opennms.core.utils
Class Querier
- java.lang.Object
-
- org.opennms.core.utils.JDBCTemplate
-
- org.opennms.core.utils.Querier
-
- All Implemented Interfaces:
RowProcessor
- Direct Known Subclasses:
SingleResultQuerier
public class Querier extends JDBCTemplate implements RowProcessor
Deprecated.Use Hibernate instead of plain JDBCQuerier class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description Querier(DataSource db, String sql)
Deprecated.Constructor for Querier.Querier(DataSource db, String sql, RowProcessor rowProcessor)
Deprecated.Constructor for Querier.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
executeStmt(PreparedStatement stmt)
Deprecated.int
getCount()
Deprecated.getCountvoid
processRow(ResultSet rs)
Deprecated.processRow-
Methods inherited from class org.opennms.core.utils.JDBCTemplate
execute, reproduceStatement
-
-
-
-
Constructor Detail
-
Querier
public Querier(DataSource db, String sql, RowProcessor rowProcessor)
Deprecated.Constructor for Querier.
- Parameters:
db
- aDataSource
object.sql
- aString
object.rowProcessor
- aRowProcessor
object.
-
Querier
public Querier(DataSource db, String sql)
Deprecated.Constructor for Querier.
- Parameters:
db
- aDataSource
object.sql
- aString
object.
-
-
Method Detail
-
getCount
public int getCount()
Deprecated.getCount
- Returns:
- a int.
-
executeStmt
protected void executeStmt(PreparedStatement stmt) throws SQLException
Deprecated.- Throws:
SQLException
-
processRow
public void processRow(ResultSet rs) throws SQLException
Deprecated.processRow
- Specified by:
processRow
in interfaceRowProcessor
- Parameters:
rs
- aResultSet
object.- Throws:
SQLException
- if any.
-
-