|
|
|
@ -17,12 +17,10 @@
|
|
|
|
|
package org.apache.dolphinscheduler.common.enums; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.EnumValue; |
|
|
|
|
import lombok.Getter; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* data base types |
|
|
|
|
*/ |
|
|
|
|
@Getter |
|
|
|
|
public enum DbType { |
|
|
|
|
/** |
|
|
|
|
* 0 mysql |
|
|
|
@ -43,7 +41,7 @@ public enum DbType {
|
|
|
|
|
SQLSERVER(6, "sqlserver"), |
|
|
|
|
DB2(7, "db2"); |
|
|
|
|
|
|
|
|
|
DbType(int code, String descp){ |
|
|
|
|
DbType(int code, String descp) { |
|
|
|
|
this.code = code; |
|
|
|
|
this.descp = descp; |
|
|
|
|
} |
|
|
|
@ -51,4 +49,12 @@ public enum DbType {
|
|
|
|
|
@EnumValue |
|
|
|
|
private final int code; |
|
|
|
|
private final String descp; |
|
|
|
|
|
|
|
|
|
public int getCode() { |
|
|
|
|
return code; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getDescp() { |
|
|
|
|
return descp; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|