Package helpers

Examples of helpers.TransactionCallbackWithoutResult


   
    @Override
    public void doJob() {
        Logger.info("BEGIN JOB JobFetchUserTimeline for member %s", member);
        for (final Account account : accounts) {
            txTemplate.execute(new TransactionCallbackWithoutResult() {
                public void doInTransaction() {
                    StatusActivity.fetchForAccount(account.id);
                }
            });
        }
View Full Code Here


        txTemplate.setReadOnly(false);
        for (final Long memberId : memberIds) {

            try {
                txTemplate.execute(new TransactionCallbackWithoutResult() {
                    public void doInTransaction() {
                        final Member member = Member.findById(memberId);
                        member.setTicketingRegistered(YurPlan.isRegisteredAttendee(member, token));
                        member.save();
                    }
View Full Code Here

            // Not read-only transaction
            txTemplate.setReadOnly(false);
            for (final Long id : accountsId) {

                try {
                    txTemplate.execute(new TransactionCallbackWithoutResult() {
                        public void doInTransaction() {
                            StatusActivity.fetchForAccount(id);
                        }
                    });
                } catch (Exception e) {
View Full Code Here

           
            // Not read-only transactions
            txTemplate.setReadOnly(false);
            for (final Long activityId : uncomputedActivityIds) {
               
                txTemplate.execute(new TransactionCallbackWithoutResult() {
                    public void doInTransaction() {
                        Activity activity = Activity.findById(activityId);
                        activity.computeBadges(context);
                    }
                });
View Full Code Here

TOP

Related Classes of helpers.TransactionCallbackWithoutResult

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.