ps.setInt(1, WorkflowEntry.SUSPENDED);
ps.setInt(1, state);
    public void setEntryState(long id, int state) throws StoreException {        Connection conn = null;        Statement stmt = null;        try {            conn = ds.getConnection();            String sql = "UPDATE " + entryTable + " SET " + entryState + " = ? WHERE " + entryId + " = ?";            PreparedStatement ps = conn.prepareStatement(sql);            ps.setInt(1, WorkflowEntry.SUSPENDED);            ps.setLong(2, id);            ps.executeUpdate();        } catch (SQLException e) {            throw new StoreException("Unable to update state for workflow instance #" + id + " to " + state, e);        } finally {            cleanup(conn, stmt, null);        }    }