1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.database;
|
11
|
|
12
|
/**
|
13
|
* @author a.mueller
|
14
|
*
|
15
|
*/
|
16
|
public enum DbSchemaValidation {
|
17
|
VALIDATE,
|
18
|
UPDATE,
|
19
|
CREATE,
|
20
|
CREATE_DROP;
|
21
|
|
22
|
@Override
|
23
|
public String toString(){
|
24
|
switch (this){
|
25
|
case VALIDATE:
|
26
|
return "validate";
|
27
|
case UPDATE:
|
28
|
return "update";
|
29
|
case CREATE:
|
30
|
return "create";
|
31
|
case CREATE_DROP:
|
32
|
return "create-drop";
|
33
|
default:
|
34
|
throw new IllegalArgumentException( "Unknown enumeration type" );
|
35
|
}
|
36
|
}
|
37
|
|
38
|
}
|