public void transferJob(JobsPlayer jPlayer, Job oldjob, Job newjob) {
synchronized (jPlayer.saveLock) {
if (!jPlayer.transferJob(oldjob, newjob))
return;
JobsDAO dao = Jobs.getJobsDAO();
dao.quitJob(jPlayer, oldjob);
dao.joinJob(jPlayer, newjob);
jPlayer.save(dao);
}
}