View Javadoc
1   /*
2    * #%L
3    * IsisFish
4    * 
5    * $Id: AutoDatabaseMigrationClass.java 4156 2014-12-09 11:27:18Z echatellier $
6    * $HeadURL: https://svn.codelutin.com/isis-fish/tags/isis-fish-4.4.0.2/src/test/java/fr/ifremer/isisfish/datastore/migration/AutoDatabaseMigrationClass.java $
7    * %%
8    * Copyright (C) 2007 - 2014 Ifremer, CodeLutin, Chatellier Eric
9    * %%
10   * This program is free software: you can redistribute it and/or modify
11   * it under the terms of the GNU General Public License as
12   * published by the Free Software Foundation, either version 3 of the 
13   * License, or (at your option) any later version.
14   * 
15   * This program is distributed in the hope that it will be useful,
16   * but WITHOUT ANY WARRANTY; without even the implied warranty of
17   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18   * GNU General Public License for more details.
19   * 
20   * You should have received a copy of the GNU General Public 
21   * License along with this program.  If not, see
22   * <http://www.gnu.org/licenses/gpl-3.0.html>.
23   * #L%
24   */
25  
26  package fr.ifremer.isisfish.datastore.migration;
27  
28  import java.util.List;
29  
30  import org.nuiton.util.version.Version;
31  
32  /**
33   * Test migration callback for topia migration service.
34   * But for test purpose, don't ask user, always do migration.
35   *
36   * @author chatellier
37   * @version $Revision: 4156 $
38   *
39   * Last update : $Date: 2014-12-09 12:27:18 +0100 (Tue, 09 Dec 2014) $
40   * By : $Author: echatellier $
41   */
42  public class AutoDatabaseMigrationClass extends DatabaseMigrationClass {
43  
44      /*
45       * @see org.nuiton.topia.migration.AbstractTopiaMigrationCallback#askUser(org.nuiton.util.Version, java.util.List)
46       */
47      @Override
48      public boolean askUser(Version dbVersion, List<Version> versions) {
49          return true;
50      }
51  }