com.jpattern.core.command.UnmanagedChainStrategy Maven / Gradle / Ivy
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