minor
[cdmlib.git] / cdmlib-persistence / src / main / java / eu / etaxonomy / cdm / database / update / SchemaUpdater_25_26.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10
11 package eu.etaxonomy.cdm.database.update;
12
13 import java.util.ArrayList;
14 import java.util.List;
15
16 import org.apache.log4j.Logger;
17
18 /**
19 * @author n.hoffmann
20 * @created Oct 25, 2010
21 * @version 1.0
22 */
23 public class SchemaUpdater_25_26 extends SchemaUpdaterBase {
24
25
26 @SuppressWarnings("unused")
27 private static final Logger logger = Logger.getLogger(SchemaUpdater_25_26.class);
28 private static final String startSchemaVersion = "2.5.0.0.201009211255";
29 private static final String endSchemaVersion = "2.6.0.0.201010231255";
30
31 // ********************** FACTORY METHOD *******************************************
32
33 public static SchemaUpdater_25_26 NewInstance(){
34 return new SchemaUpdater_25_26();
35 }
36
37 /**
38 * @param startSchemaVersion
39 * @param endSchemaVersion
40 */
41 protected SchemaUpdater_25_26() {
42 super(startSchemaVersion, endSchemaVersion);
43 }
44
45 /* (non-Javadoc)
46 * @see eu.etaxonomy.cdm.database.update.SchemaUpdaterBase#getUpdaterList()
47 */
48 @Override
49 protected List<ISchemaUpdaterStep> getUpdaterList() {
50
51 List<ISchemaUpdaterStep> stepList = new ArrayList<ISchemaUpdaterStep>();
52 String stepName;
53
54 //add the table hibernate_sequences
55 stepName = "Add the table hibernate_sequences to store the table specific sequences in";
56 SequenceTableCreator step = SequenceTableCreator.NewInstance(stepName);
57 stepList.add(step);
58
59 return stepList;
60 }
61
62 /* (non-Javadoc)
63 * @see eu.etaxonomy.cdm.database.update.SchemaUpdaterBase#getNextUpdater()
64 */
65 @Override
66 public ISchemaUpdater getNextUpdater() {
67 return null;
68 }
69
70 /* (non-Javadoc)
71 * @see eu.etaxonomy.cdm.database.update.SchemaUpdaterBase#getPreviousUpdater()
72 */
73 @Override
74 public ISchemaUpdater getPreviousUpdater() {
75 return SchemaUpdater_24_25.NewInstance();
76 }
77
78 }