Index: topia-service/src/java/org/codelutin/topia/migration/callback/MigrationCallbackHandler.java diff -u /dev/null topia-service/src/java/org/codelutin/topia/migration/callback/MigrationCallbackHandler.java:1.1 --- /dev/null Wed Nov 14 17:36:16 2007 +++ topia-service/src/java/org/codelutin/topia/migration/callback/MigrationCallbackHandler.java Wed Nov 14 17:36:11 2007 @@ -0,0 +1,40 @@ +/* *##% + * Copyright (C) 2007 Code Lutin + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * 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 Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + *##%*/ + +package org.codelutin.topia.migration.callback; + +/** + * MigrationCallBackHandler + * + * @author chatellier + * @version $Revision: 1.1 $ + * + * Last update : $Date: 2007-11-14 17:36:11 $ + * By : $Author: chatellier $ + */ +public interface MigrationCallbackHandler { + + /** + * Ask for migration + * + * @param databaseVersion database version + * @param applicationVersion application version + * @return migration aggrement + */ + public boolean doMigration(String databaseVersion, String applicationVersion); +}