code: @Override
  	public JobStatus getJobStatus(long instanceId) {
  		logger.entering(CLASSNAME, "getJobStatus", instanceId);
  		Connection conn = null;
  		PreparedStatement statement = null;
  		ResultSet rs = null;
  		RuntimeJobExecution jobExecution = null;
  		String query = "SELECT obj FROM jobstatus WHERE id = ?";
  		JobStatus jobStatus = null;
  
  		try {
  			conn = getConnection();
  			statement = conn.prepareStatement(query);
  			statement.setLong(1, instanceId);
  			rs = statement.executeQuery();
  			if(rs.next()) {
  				jobStatus = (JobStatus)deserializeObject(rs.getBytes(1));
  			}
  		} catch (SQLException e) {
  			throw new PersistenceException(e);
  		} catch (IOException e) {
  			throw new PersistenceException(e);
  		} catch (ClassNotFoundException e) {
  			throw new PersistenceException(e);
  		} finally {
  			cleanupConnection(conn, rs, statement);
  		}
  		logger.exiting(CLASSNAME, "getJobStatus", jobStatus);
  		return jobStatus;
  	}
docs: /* (non-Javadoc)
  @see com.ibm.jbatch.container.services.IPersistenceManagerService#getJobStatus(long)