1 /*******************************************************************************
2 * Copyright (c) 2016 hangum.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the GNU Lesser Public License v2.1
5 * which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
9 * hangum - initial API and implementation
10 ******************************************************************************/
11 package com
.hangum
.tadpole
.engine
.define
;
13 import org
.apache
.log4j
.Logger
;
16 * Define database group
17 * reference {@code DBDefine}
22 public enum DBGroupDefine
{
25 /* mssql 8le, mssql */
45 private static final Logger logger
= Logger
.getLogger(DBGroupDefine
.class);
47 public static DBGroupDefine
getGroup(DBDefine dbDefine
) {
48 if(dbDefine
== DBDefine
.ORACLE_DEFAULT
|| dbDefine
== DBDefine
.TIBERO_DEFAULT
) {
50 } else if(dbDefine
== DBDefine
.MSSQL_DEFAULT
|| dbDefine
== DBDefine
.MSSQL_8_LE_DEFAULT
) {
52 } else if(dbDefine
== DBDefine
.MYSQL_DEFAULT
|| dbDefine
== DBDefine
.MARIADB_DEFAULT
) {
54 } else if(dbDefine
== DBDefine
.POSTGRE_DEFAULT
|| dbDefine
== DBDefine
.AMAZON_REDSHIFT_DEFAULT
|| dbDefine
== DBDefine
.NETEZZA_DEFAULT
) {
56 } else if(dbDefine
== DBDefine
.HIVE_DEFAULT
|| dbDefine
== DBDefine
.HIVE2_DEFAULT
) {
58 } else if(dbDefine
== DBDefine
.SQLite_DEFAULT
) {
60 } else if(dbDefine
== DBDefine
.CUBRID_DEFAULT
) {
62 } else if(dbDefine
== DBDefine
.ALTIBASE_DEFAULT
) {
63 return ALTIBASE_GROUP
;
64 } else if(dbDefine
== DBDefine
.DYNAMODB_DEFAULT
) {
65 return DYNAMODB_GROUP
;