001/*
002 * Copyright 2002-2012 the original author or authors.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *      https://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017package org.springframework.orm.jpa.vendor;
018
019/**
020 * Enumeration for common database platforms. Allows strong typing of database type
021 * and portable configuration between JpaVendorDialect implementations.
022 *
023 * <p>If a given PersistenceProvider supports a database not listed here,
024 * the strategy class can still be specified using the fully-qualified class name.
025 * This enumeration is merely a convenience. The database products listed here
026 * are the same as those explicitly supported for Spring JDBC exception translation
027 * in {@code sql-error-codes.xml}.
028 *
029 * @author Rod Johnson
030 * @author Juergen Hoeller
031 * @since 2.0
032 * @see AbstractJpaVendorAdapter#setDatabase
033 */
034public enum Database {
035
036        DEFAULT,
037
038        DB2,
039
040        DERBY,
041
042        H2,
043
044        HSQL,
045
046        INFORMIX,
047
048        MYSQL,
049
050        ORACLE,
051
052        POSTGRESQL,
053
054        SQL_SERVER,
055
056        SYBASE
057
058}