Examples of startTransaction()


Examples of org.apache.isis.applib.services.command.spi.CommandService.startTransaction()

        final CommandService commandService = getServiceOrNull(CommandService.class);
        if(commandService == null) {
            return;
        }
        final Command command = commandContext.getCommand();
        commandService.startTransaction(command, transactionId);
    }


    /**
     * @return - the service, or <tt>null</tt> if no service registered of specified type.
View Full Code Here

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

    public void beginTran() {
        final IsisTransactionManager transactionManager = getTransactionManager();
        final IsisTransaction transaction = transactionManager.getTransaction();

        if(transaction == null) {
            transactionManager.startTransaction();
            return;
        }

        final State state = transaction.getState();
        switch(state) {
View Full Code Here

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

        final State state = transaction.getState();
        switch(state) {
            case COMMITTED:
            case ABORTED:
                transactionManager.startTransaction();
                break;
            case IN_PROGRESS:
                // nothing to do
                break;
            case MUST_ABORT:
View Full Code Here

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

    public void beginTran() {
        final IsisTransactionManager transactionManager = getTransactionManager();
        final IsisTransaction transaction = transactionManager.getTransaction();

        if(transaction == null) {
            transactionManager.startTransaction();
            return;
        }

        final State state = transaction.getState();
        switch(state) {
View Full Code Here

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

        final State state = transaction.getState();
        switch(state) {
            case COMMITTED:
            case ABORTED:
                transactionManager.startTransaction();
                break;
            case IN_PROGRESS:
                // nothing to do
                break;
            case MUST_ABORT:
View Full Code Here

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

    public void beginTran() {
        final IsisTransactionManager transactionManager = getTransactionManager();
        final IsisTransaction transaction = transactionManager.getTransaction();

        if(transaction == null) {
            transactionManager.startTransaction();
            return;
        }

        final State state = transaction.getState();
        switch(state) {
View Full Code Here

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

        final State state = transaction.getState();
        switch(state) {
            case COMMITTED:
            case ABORTED:
                transactionManager.startTransaction();
                break;
            case IN_PROGRESS:
                // nothing to do
                break;
            case MUST_ABORT:
View Full Code Here

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

    public void beginTran() {
        final IsisTransactionManager transactionManager = getTransactionManager();
        final IsisTransaction transaction = transactionManager.getTransaction();

        if(transaction == null) {
            transactionManager.startTransaction();
            return;
        }

        final State state = transaction.getState();
        switch(state) {
View Full Code Here

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

        final State state = transaction.getState();
        switch(state) {
            case COMMITTED:
            case ABORTED:
                transactionManager.startTransaction();
                break;
            case IN_PROGRESS:
                // nothing to do
                break;
            case MUST_ABORT:
View Full Code Here

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

        // has logged in or out in the action
        // processing above.
        final IsisTransactionManager transactionManager = IsisContext.getPersistenceSession().getTransactionManager();
        if (transactionManager.getTransaction().getState().canCommit()) {
            transactionManager.endTransaction();
            transactionManager.startTransaction();
        }
    }

}
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.