if (rs.next())
count = rs.getInt(1);
rs.close();
+ //nothing in the table: return null
+ if(count<=0){
+ freeConnection(con, stmt);
+ return null;
+ }
} else {
- theLog.printError("Mh. Konnte nicht zaehlen: " + countSql);
+ theLog.printError("Could not count: " + countSql);
}
}
- //nothing in the table: return null
- if(count<=0){
- return null;
- }
+
// hier select
rs = executeSql(stmt, selectSql.toString());
if (rs != null) {
void throwStorageObjectException (String message) throws StorageObjectException {
_throwStorageObjectException(null, message);
}
-
+
}