conn = this.getConnection();
ps = conn.prepareStatement(query);
ps.setInt(1, primaryKey.intValue());
result = ps.executeQuery();
if (!result.next()) {
throw new ObjectNotFoundException(
"Customer not found with ID: " + primaryKey);
}
} catch (SQLException se) {
throw new EJBException(se);
} finally {