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

org.nuiton.topia.replication.TopiaReplicationOperationUndoable Maven / Gradle / Ivy

There is a newer version: 4.0
Show newest version
/*
 * #%L
 * ToPIA :: Service Replication
 * 
 * $Id: TopiaReplicationOperationUndoable.java 2245 2011-04-14 12:47:09Z tchemit $
 * $HeadURL: http://svn.nuiton.org/svn/topia/tags/topia-2.6.6/topia-service-replication/src/main/java/org/nuiton/topia/replication/TopiaReplicationOperationUndoable.java $
 * %%
 * Copyright (C) 2004 - 2010 CodeLutin
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as 
 * published by the Free Software Foundation, either version 3 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public 
 * License along with this program.  If not, see
 * .
 * #L%
 */

package org.nuiton.topia.replication;

import org.nuiton.topia.framework.TopiaContextImplementor;
import org.nuiton.topia.replication.model.ReplicationOperationDef;

/**
 * Le contrat d'une operation {@link TopiaReplicationOperation} qui peut être
 * rollbacker lorsque la replication a échouée.
 * 

* * @author tchemit * @since 2.4.3 */ public interface TopiaReplicationOperationUndoable extends TopiaReplicationOperation { /** * Execute l'operation inverse avec le parametrage donnee * (pour annuler l'opération). *

* Note : le commit sur le context cible doit etre geree dans la methode. * * @param operationDef la definition de l'operation a realiser * @param replicationContext le context de replication * @param dstCtxt le context destination * @throws Exception pour toute erreur */ void rollback(ReplicationOperationDef operationDef, TopiaReplicationContext replicationContext, TopiaContextImplementor dstCtxt ) throws Exception; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy