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(javax.sql.DataSource db, java.lang.String sql)
Deprecated.Constructor for Querier.Querier(javax.sql.DataSource db, java.lang.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(java.sql.PreparedStatement stmt)
Deprecated.int
getCount()
Deprecated.getCountvoid
processRow(java.sql.ResultSet rs)
Deprecated.processRow-
Methods inherited from class org.opennms.core.utils.JDBCTemplate
execute, reproduceStatement
-
-
-
-
Constructor Detail
-
Querier
public Querier(javax.sql.DataSource db, java.lang.String sql, RowProcessor rowProcessor)
Deprecated.Constructor for Querier.
- Parameters:
db
- aDataSource
object.sql
- aString
object.rowProcessor
- aRowProcessor
object.
-
Querier
public Querier(javax.sql.DataSource db, java.lang.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(java.sql.PreparedStatement stmt) throws java.sql.SQLException
Deprecated.- Throws:
java.sql.SQLException
-
processRow
public void processRow(java.sql.ResultSet rs) throws java.sql.SQLException
Deprecated.processRow
- Specified by:
processRow
in interfaceRowProcessor
- Parameters:
rs
- aResultSet
object.- Throws:
java.sql.SQLException
- if any.
-
-