* @throws java.io.IOException If an IO error occurs
* @throws java.sql.SQLException If any SQL error occurs
*/
- public Long getTotalRows () throws IOException, SQLException;
+ public int getTotalRows () throws IOException, SQLException;
}
}
@Override
- public final Long getTotalRows () throws IOException {
+ public final int getTotalRows () throws IOException {
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
// Init count
- Long count = 0L;
+ int count = 0;
// First rewind
this.rewind();
}
@Override
- public Long getTotalRows () throws IOException, SQLException {
+ public int getTotalRows () throws IOException, SQLException {
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
// Get long
- Long count = null;
+ int count = 0;
// Trace message
this.getLogger().trace(MessageFormat.format("count={0} - EXIT!", count)); //NOI18N
}
@Override
- public Long getTotalRows () throws IOException, SQLException {
+ public int getTotalRows () throws IOException, SQLException {
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
set.beforeFirst();
// Get long
- Long count = set.getLong("cnt"); //NOI18N
+ int count = set.getInt("cnt"); //NOI18N
// Trace message
this.getLogger().trace(MessageFormat.format("count={0} - EXIT!", count)); //NOI18N