/** * Deletes the entry with the given id * * @param id the id of the entry to delete * @return true if the entry is deleted, false otherwise * @throws com.funambol.pushlistener.service.registry.dao.DataAccessException if an error occurs */ public boolean deleteRegistryEntry(long id) throws DataAccessException { Connection con = null; PreparedStatement ps = null; int rowsDeleted = 0; try { con = getConnection(); ps = con.prepareStatement(queryDesc.getDeleteEntryQuery()); ps.setLong(1, id); rowsDeleted = ps.executeUpdate(); return (rowsDeleted > 0); } catch (Exception e) { throw new DataAccessException(e); } finally { DBTools.close(con, ps, null); } }