Project

General

Profile

Download (814 Bytes) Statistics
| Branch: | Tag: | Revision:
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
	NONE,
18
	VALIDATE,
19
	UPDATE,
20
	CREATE,
21
	CREATE_DROP;
22

    
23
	@Override
24
	public String toString(){
25
		switch (this){
26
			case NONE:
27
				return "none"; //no effect
28
			case VALIDATE:
29
				return "validate";
30
			case UPDATE:
31
				return "update";
32
			case CREATE:
33
				return "create";
34
			case CREATE_DROP:
35
				return "create-drop";
36
			default: 
37
				throw new IllegalArgumentException( "Unknown enumeration type" );
38
		}
39
	}
40
	
41
}
(10-10/20)