Package com.gamingmesh.jobs.dao

Examples of com.gamingmesh.jobs.dao.JobsDAO


   
    /**
     * Save all the information of all of the players in the game
     */
    public void saveAll() {
        JobsDAO dao = Jobs.getJobsDAO();
       
        /*
         * Saving is a three step process to minimize synchronization locks when called asynchronously.
         *
         * 1) Safely copy list for saving.
View Full Code Here


    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);
        }
    }
View Full Code Here

TOP

Related Classes of com.gamingmesh.jobs.dao.JobsDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.