Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datax-cloud
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄营
datax-cloud
Commits
b96a8d4a
Commit
b96a8d4a
authored
Dec 02, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
1aba0ffa
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
18 deletions
+18
-18
DbColumn.java
...src/main/java/cn/datax/common/database/core/DbColumn.java
+3
-3
MySqlDialect.java
...n/java/cn/datax/common/database/dialect/MySqlDialect.java
+3
-3
OracleDialect.java
.../java/cn/datax/common/database/dialect/OracleDialect.java
+3
-3
PostgreDialect.java
...java/cn/datax/common/database/dialect/PostgreDialect.java
+3
-3
SQLServer2008Dialect.java
...n/datax/common/database/dialect/SQLServer2008Dialect.java
+3
-3
AsyncTask.java
.../java/cn/datax/service/data/metadata/async/AsyncTask.java
+3
-3
No files found.
datax-common/datax-common-database/src/main/java/cn/datax/common/database/core/DbColumn.java
View file @
b96a8d4a
...
@@ -18,17 +18,17 @@ public class DbColumn {
...
@@ -18,17 +18,17 @@ public class DbColumn {
/**
/**
* 数据长度
* 数据长度
*/
*/
private
Integer
dataLength
;
private
String
dataLength
;
/**
/**
* 数据精度
* 数据精度
*/
*/
private
Integer
dataPrecision
;
private
String
dataPrecision
;
/**
/**
* 数据小数位
* 数据小数位
*/
*/
private
Integer
dataScale
;
private
String
dataScale
;
/**
/**
* 是否主键
* 是否主键
...
...
datax-common/datax-common-database/src/main/java/cn/datax/common/database/dialect/MySqlDialect.java
View file @
b96a8d4a
...
@@ -20,9 +20,9 @@ public class MySqlDialect extends AbstractDbDialect {
...
@@ -20,9 +20,9 @@ public class MySqlDialect extends AbstractDbDialect {
DbColumn
entity
=
new
DbColumn
();
DbColumn
entity
=
new
DbColumn
();
entity
.
setColName
(
rs
.
getString
(
"COLNAME"
));
entity
.
setColName
(
rs
.
getString
(
"COLNAME"
));
entity
.
setDataType
(
rs
.
getString
(
"DATATYPE"
));
entity
.
setDataType
(
rs
.
getString
(
"DATATYPE"
));
entity
.
setDataLength
(
rs
.
get
Int
(
"DATALENGTH"
));
entity
.
setDataLength
(
rs
.
get
String
(
"DATALENGTH"
));
entity
.
setDataPrecision
(
rs
.
get
Int
(
"DATAPRECISION"
));
entity
.
setDataPrecision
(
rs
.
get
String
(
"DATAPRECISION"
));
entity
.
setDataScale
(
rs
.
get
Int
(
"DATASCALE"
));
entity
.
setDataScale
(
rs
.
get
String
(
"DATASCALE"
));
entity
.
setColKey
(
"PRI"
.
equals
(
rs
.
getString
(
"COLKEY"
))
?
true
:
false
);
entity
.
setColKey
(
"PRI"
.
equals
(
rs
.
getString
(
"COLKEY"
))
?
true
:
false
);
entity
.
setNullable
(
"YES"
.
equals
(
rs
.
getString
(
"NULLABLE"
))
?
true
:
false
);
entity
.
setNullable
(
"YES"
.
equals
(
rs
.
getString
(
"NULLABLE"
))
?
true
:
false
);
entity
.
setColPosition
(
rs
.
getInt
(
"COLPOSITION"
));
entity
.
setColPosition
(
rs
.
getInt
(
"COLPOSITION"
));
...
...
datax-common/datax-common-database/src/main/java/cn/datax/common/database/dialect/OracleDialect.java
View file @
b96a8d4a
...
@@ -48,9 +48,9 @@ public class OracleDialect extends AbstractDbDialect {
...
@@ -48,9 +48,9 @@ public class OracleDialect extends AbstractDbDialect {
DbColumn
entity
=
new
DbColumn
();
DbColumn
entity
=
new
DbColumn
();
entity
.
setColName
(
rs
.
getString
(
"COLNAME"
));
entity
.
setColName
(
rs
.
getString
(
"COLNAME"
));
entity
.
setDataType
(
rs
.
getString
(
"DATATYPE"
));
entity
.
setDataType
(
rs
.
getString
(
"DATATYPE"
));
entity
.
setDataLength
(
rs
.
get
Int
(
"DATALENGTH"
));
entity
.
setDataLength
(
rs
.
get
String
(
"DATALENGTH"
));
entity
.
setDataPrecision
(
rs
.
get
Int
(
"DATAPRECISION"
));
entity
.
setDataPrecision
(
rs
.
get
String
(
"DATAPRECISION"
));
entity
.
setDataScale
(
rs
.
get
Int
(
"DATASCALE"
));
entity
.
setDataScale
(
rs
.
get
String
(
"DATASCALE"
));
entity
.
setColKey
(
"1"
.
equals
(
rs
.
getString
(
"COLKEY"
))
?
true
:
false
);
entity
.
setColKey
(
"1"
.
equals
(
rs
.
getString
(
"COLKEY"
))
?
true
:
false
);
entity
.
setNullable
(
"Y"
.
equals
(
rs
.
getString
(
"NULLABLE"
))
?
true
:
false
);
entity
.
setNullable
(
"Y"
.
equals
(
rs
.
getString
(
"NULLABLE"
))
?
true
:
false
);
entity
.
setColPosition
(
rs
.
getInt
(
"COLPOSITION"
));
entity
.
setColPosition
(
rs
.
getInt
(
"COLPOSITION"
));
...
...
datax-common/datax-common-database/src/main/java/cn/datax/common/database/dialect/PostgreDialect.java
View file @
b96a8d4a
...
@@ -47,9 +47,9 @@ public class PostgreDialect extends AbstractDbDialect {
...
@@ -47,9 +47,9 @@ public class PostgreDialect extends AbstractDbDialect {
DbColumn
entity
=
new
DbColumn
();
DbColumn
entity
=
new
DbColumn
();
entity
.
setColName
(
rs
.
getString
(
"COLNAME"
));
entity
.
setColName
(
rs
.
getString
(
"COLNAME"
));
entity
.
setDataType
(
rs
.
getString
(
"DATATYPE"
));
entity
.
setDataType
(
rs
.
getString
(
"DATATYPE"
));
entity
.
setDataLength
(
rs
.
get
Int
(
"DATALENGTH"
));
entity
.
setDataLength
(
rs
.
get
String
(
"DATALENGTH"
));
entity
.
setDataPrecision
(
rs
.
get
Int
(
"DATAPRECISION"
));
entity
.
setDataPrecision
(
rs
.
get
String
(
"DATAPRECISION"
));
entity
.
setDataScale
(
rs
.
get
Int
(
"DATASCALE"
));
entity
.
setDataScale
(
rs
.
get
String
(
"DATASCALE"
));
entity
.
setColKey
(
"1"
.
equals
(
rs
.
getString
(
"COLKEY"
))
?
true
:
false
);
entity
.
setColKey
(
"1"
.
equals
(
rs
.
getString
(
"COLKEY"
))
?
true
:
false
);
entity
.
setNullable
(
"YES"
.
equals
(
rs
.
getString
(
"NULLABLE"
))
?
true
:
false
);
entity
.
setNullable
(
"YES"
.
equals
(
rs
.
getString
(
"NULLABLE"
))
?
true
:
false
);
entity
.
setColPosition
(
rs
.
getInt
(
"COLPOSITION"
));
entity
.
setColPosition
(
rs
.
getInt
(
"COLPOSITION"
));
...
...
datax-common/datax-common-database/src/main/java/cn/datax/common/database/dialect/SQLServer2008Dialect.java
View file @
b96a8d4a
...
@@ -82,9 +82,9 @@ public class SQLServer2008Dialect extends AbstractDbDialect {
...
@@ -82,9 +82,9 @@ public class SQLServer2008Dialect extends AbstractDbDialect {
DbColumn
entity
=
new
DbColumn
();
DbColumn
entity
=
new
DbColumn
();
entity
.
setColName
(
rs
.
getString
(
"COLNAME"
));
entity
.
setColName
(
rs
.
getString
(
"COLNAME"
));
entity
.
setDataType
(
rs
.
getString
(
"DATATYPE"
));
entity
.
setDataType
(
rs
.
getString
(
"DATATYPE"
));
entity
.
setDataLength
(
rs
.
get
Int
(
"DATALENGTH"
));
entity
.
setDataLength
(
rs
.
get
String
(
"DATALENGTH"
));
entity
.
setDataPrecision
(
rs
.
get
Int
(
"DATAPRECISION"
));
entity
.
setDataPrecision
(
rs
.
get
String
(
"DATAPRECISION"
));
entity
.
setDataScale
(
rs
.
get
Int
(
"DATASCALE"
));
entity
.
setDataScale
(
rs
.
get
String
(
"DATASCALE"
));
entity
.
setColKey
(
"1"
.
equals
(
rs
.
getString
(
"COLKEY"
))
?
true
:
false
);
entity
.
setColKey
(
"1"
.
equals
(
rs
.
getString
(
"COLKEY"
))
?
true
:
false
);
entity
.
setNullable
(
"1"
.
equals
(
rs
.
getString
(
"NULLABLE"
))
?
true
:
false
);
entity
.
setNullable
(
"1"
.
equals
(
rs
.
getString
(
"NULLABLE"
))
?
true
:
false
);
entity
.
setColPosition
(
rs
.
getInt
(
"COLPOSITION"
));
entity
.
setColPosition
(
rs
.
getInt
(
"COLPOSITION"
));
...
...
datax-modules/data-metadata-service-parent/data-metadata-service/src/main/java/cn/datax/service/data/metadata/async/AsyncTask.java
View file @
b96a8d4a
...
@@ -72,9 +72,9 @@ public class AsyncTask {
...
@@ -72,9 +72,9 @@ public class AsyncTask {
metadataColumn
.
setColumnNullable
(
column
.
getNullable
()
?
"1"
:
"0"
);
metadataColumn
.
setColumnNullable
(
column
.
getNullable
()
?
"1"
:
"0"
);
metadataColumn
.
setColumnPosition
(
column
.
getColPosition
().
toString
());
metadataColumn
.
setColumnPosition
(
column
.
getColPosition
().
toString
());
metadataColumn
.
setDataType
(
column
.
getDataType
());
metadataColumn
.
setDataType
(
column
.
getDataType
());
metadataColumn
.
setDataLength
(
column
.
getDataLength
()
.
toString
()
);
metadataColumn
.
setDataLength
(
column
.
getDataLength
());
metadataColumn
.
setDataPrecision
(
column
.
getDataPrecision
()
.
toString
()
);
metadataColumn
.
setDataPrecision
(
column
.
getDataPrecision
());
metadataColumn
.
setDataScale
(
column
.
getDataScale
()
.
toString
()
);
metadataColumn
.
setDataScale
(
column
.
getDataScale
());
metadataColumn
.
setDataDefault
(
column
.
getDataDefault
());
metadataColumn
.
setDataDefault
(
column
.
getDataDefault
());
return
metadataColumn
;
return
metadataColumn
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment