1 /* 2 * Copyright 2002-2012 the original author or authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package org.springframework.orm.jpa.vendor; 18 19 /** 20 * Enumeration for common database platforms. Allows strong typing of database type 21 * and portable configuration between JpaVendorDialect implementations. 22 * 23 * <p>If a given PersistenceProvider supports a database not listed here, 24 * the strategy class can still be specified using the fully-qualified class name. 25 * This enumeration is merely a convenience. The database products listed here 26 * are the same as those explicitly supported for Spring JDBC exception translation 27 * in {@code sql-error-codes.xml}. 28 * 29 * @author Rod Johnson 30 * @author Juergen Hoeller 31 * @since 2.0 32 * @see AbstractJpaVendorAdapter#setDatabase 33 */ 34 public enum Database { 35 36 DEFAULT, 37 38 DB2, 39 40 DERBY, 41 42 H2, 43 44 HSQL, 45 46 INFORMIX, 47 48 MYSQL, 49 50 ORACLE, 51 52 POSTGRESQL, 53 54 SQL_SERVER, 55 56 SYBASE 57 58 }