bundles/org.eclipse.packagedrone.job.apm/src/org/eclipse/packagedrone/job/apm/model/JobWriteModel.java
public JobInstanceEntity getJobForUpdate ( final String id )
    {
        JobInstanceEntity job = this.cloneMap.get ( id );

        if ( job != null )
        {
            // this already is the cloned job
            return job;
        }

        // fetch the job
        job = this.jobs.get ( id );
        if ( job == null )
        {
            return null;
        }

        // make the clone
        final JobInstanceEntity clonedJob = new JobInstanceEntity ( job );

        this.cloneMap.put ( id, clonedJob );

        return clonedJob;
    }
public JobInstanceEntity getJobForUpdate ( final String id )
    {
        JobInstanceEntity job = this.cloneMap.get ( id );

        if ( job != null )
        {
            // this already is the cloned job
            return job;
        }

        // fetch the job
        job = this.jobs.get ( id );
        if ( job == null )
        {
            return null;
        }

        // make the clone
        final JobInstanceEntity clonedJob = new JobInstanceEntity ( job );

        this.cloneMap.put ( id, clonedJob );

        return clonedJob;
    }
public JobInstanceEntity getJobForUpdate ( final String id ) { JobInstanceEntity job = this . cloneMap . get ( id ) ; if ( job != null ) { // this already is the cloned job return job ; } // fetch the job job = this . jobs . get ( id ) ; if ( job == null ) { return null ; } // make the clone final JobInstanceEntity clonedJob = new JobInstanceEntity ( job ) ; this . cloneMap . put ( id , clonedJob ) ; return clonedJob ; }
Get a job instance for updating it.
<p>
The fetched job will automatically be cloned and persisted.
</p>

@param id
the id of the job
@return the job instance entity or <code>null</code> if none could be
found
Get a job instance for updating it . <p > The fetched job will automatically be cloned and persisted . < / p >