All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jpattern.core.command.UnmanagedChainStrategy Maven / Gradle / Ivy

There is a newer version: 3.6.2
Show newest version
package com.jpattern.core.command;

import com.jpattern.core.command.ACommand;
import com.jpattern.core.command.ICommandResult;


/**
 * 
 * @author Francesco Cina'
 *
 * 23 Apr 2011
 */
public class UnmanagedChainStrategy implements IChainStrategy {

	@Override
	public void globalExecEnd(ACommand aCommand, ICommandResult result) {
	}

	@Override
	public void localExecEnd(ACommand aCommand, ICommandResult localresult, ICommandResult globalResult) {
		if (!localresult.isValid()) {
			aCommand.doLocalRollback(localresult);
			globalResult.getErrorMessages().addAll(localresult.getErrorMessages());
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy