Package net.sf.basedb.core
Class AbstractSqlQuery.CountWork
- All Implemented Interfaces:
ReturningWork<Long>
- Enclosing class:
- AbstractSqlQuery
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.sf.basedb.core.hibernate.ResultSetWork
execute, getSql
-
Field Details
-
parameterOrder
-
-
Constructor Details
-
CountWork
CountWork(SessionControl sc, String sql, List<String> parameterOrder)
-
-
Method Details
-
setParameters
Description copied from class:ResultSetWork
This method should be overridden by subclasses that needs to set parameters on the statement that is going to be executed. The default implementation does nothing. This method is called after the statement has been prepared withConnection.prepareStatement(String)
and before it is executed withPreparedStatement.executeUpdate()
.- Overrides:
setParameters
in classResultSetWork<Long>
- Parameters:
ps
- The prepared statement- Throws:
SQLException
-
getResult
Description copied from class:ResultSetWork
This method needs to be overridden by subclasses to extract the result from theResultSet
. The result set will be closed after the call to this method.- Specified by:
getResult
in classResultSetWork<Long>
- Parameters:
rs
- The result set to get the result from- Throws:
SQLException
-