Package com.samskivert.jdbc

Examples of com.samskivert.jdbc.RepositoryUnit


            return;
        }

        // otherwise we have to load the scene from the repository
        final int fsceneId = sceneId;
        _invoker.postUnit(new RepositoryUnit("resolveScene(" + sceneId + ")") {
            @Override public void invokePersist () throws Exception {
                _model = _screp.loadSceneModel(fsceneId);
                _updates = _screp.loadUpdates(fsceneId);
                _extras = _screp.loadExtras(fsceneId, _model);
            }
View Full Code Here


        if (ratings.size() == 0) {
            return;
        }

        final int gameId = getGameId();
        _invoker.postUnit(new RepositoryUnit("loadRatings(" + gameId + ")") {
            @Override public void invokePersist () throws Exception {
                // map the records by player id so that we can correlate with the db results
                IntMap<PlayerRating> map = IntMaps.newHashIntMap();
                for (PlayerRating rating : ratings) {
                    map.put(rating.playerId, rating);
View Full Code Here

        if (ratings.size() == 0) {
            return;
        }

        final int gameId = getGameId();
        _invoker.postUnit(new RepositoryUnit("saveRatings(" + gameId + ")") {
            @Override public void invokePersist () throws Exception {
                for (PlayerRating rating : ratings) {
                    _repo.setRating(gameId, rating.playerId, rating.rating, rating.experience);
                }
            }
View Full Code Here

TOP

Related Classes of com.samskivert.jdbc.RepositoryUnit

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.