KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > orm > jpa > vendor > Database


1 /*
2  * Copyright 2002-2006 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 FQN. This is merely a
25  * convenience. The database products listed here are the same as those explicitly
26  * supported for Spring JDBC exception translation in <code>sql-error-codes.xml</code>.
27  *
28  * @author Rod Johnson
29  * @since 2.0
30  * @see AbstractJpaVendorAdapter#setDatabase
31  */

32 public enum Database {
33     
34     DEFAULT,
35     
36     DB2,
37     
38     HSQL,
39     
40     INFORMIX,
41     
42     MYSQL,
43     
44     ORACLE,
45     
46     POSTGRESQL,
47     
48     SQL_SERVER,
49     
50     SYBASE
51
52 }
53
Popular Tags