Examples of executeWithinTransaction()


Examples of org.apache.isis.core.runtime.system.transaction.IsisTransactionManager.executeWithinTransaction()

    protected void doExecute(Object context) {

        final PersistenceSession persistenceSession = getPersistenceSession();
        final IsisTransactionManager transactionManager = getTransactionManager(persistenceSession);
        final List<Command> commands = Lists.newArrayList();
        transactionManager.executeWithinTransaction(new TransactionalClosureAbstract() {
            @Override
            public void execute() {
                commands.addAll(findBackgroundCommandsToExecute());
            }
        });
View Full Code Here

Examples of org.apache.isis.core.runtime.system.transaction.IsisTransactionManager.executeWithinTransaction()

    protected void doExecute(Object context) {

        final PersistenceSession persistenceSession = getPersistenceSession();
        final IsisTransactionManager transactionManager = getTransactionManager(persistenceSession);
        final List<Command> commands = Lists.newArrayList();
        transactionManager.executeWithinTransaction(new TransactionalClosureAbstract() {
            @Override
            public void execute() {
                commands.addAll(findBackgroundCommandsToExecute());
            }
        });
View Full Code Here

Examples of org.apache.isis.core.runtime.system.transaction.IsisTransactionManager.executeWithinTransaction()

    protected void doExecute(Object context) {

        final PersistenceSession persistenceSession = getPersistenceSession();
        final IsisTransactionManager transactionManager = getTransactionManager(persistenceSession);
        final List<Command> commands = Lists.newArrayList();
        transactionManager.executeWithinTransaction(new TransactionalClosureAbstract() {
            @Override
            public void execute() {
                commands.addAll(findBackgroundCommandsToExecute());
            }
        });
View Full Code Here

Examples of org.apache.isis.core.runtime.system.transaction.IsisTransactionManager.executeWithinTransaction()

     * transaction handling.
     */
    protected void doExecute(final Object context) {
        final PersistenceSession persistenceSession = getPersistenceSession();
        final IsisTransactionManager transactionManager = getTransactionManager(persistenceSession);
        transactionManager.executeWithinTransaction(new TransactionalClosureAbstract() {
            @Override
            public void execute() {
                doExecuteWithTransaction(context);
            }
        });
View Full Code Here

Examples of org.openstreetmap.osmosis.apidb.common.DatabaseContext2.executeWithinTransaction()

     */
    public void run() {
        final DatabaseContext2 dbCtx = new DatabaseContext2(loginCredentials);
     
        try {
          dbCtx.executeWithinTransaction(new TransactionCallbackWithoutResult() {
            private DatabaseContext2 dbCtxInner = dbCtx;

        @Override
        protected void doInTransactionWithoutResult(TransactionStatus arg0) {
          runImpl(dbCtxInner);
View Full Code Here

Examples of org.openstreetmap.osmosis.apidb.common.DatabaseContext2.executeWithinTransaction()

     */
    public void run() {
        final DatabaseContext2 dbCtx = new DatabaseContext2(loginCredentials);
     
        try {
          dbCtx.executeWithinTransaction(new TransactionCallbackWithoutResult() {
            private DatabaseContext2 dbCtxInner = dbCtx;

        @Override
        protected void doInTransactionWithoutResult(TransactionStatus arg0) {
          runImpl(dbCtxInner);
View Full Code Here

Examples of org.openstreetmap.osmosis.apidb.common.DatabaseContext2.executeWithinTransaction()

     */
    public void run() {
        final DatabaseContext2 dbCtx = new DatabaseContext2(loginCredentials);
     
        try {
          dbCtx.executeWithinTransaction(new TransactionCallbackWithoutResult() {
            private DatabaseContext2 dbCtxInner = dbCtx;

        @Override
        protected void doInTransactionWithoutResult(TransactionStatus arg0) {
          runImpl(dbCtxInner);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.