Commit b96a8d4a by yuwei

项目初始化

parent 1aba0ffa
...@@ -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;
/** /**
* 是否主键 * 是否主键
......
...@@ -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.getInt("DATALENGTH")); entity.setDataLength(rs.getString("DATALENGTH"));
entity.setDataPrecision(rs.getInt("DATAPRECISION")); entity.setDataPrecision(rs.getString("DATAPRECISION"));
entity.setDataScale(rs.getInt("DATASCALE")); entity.setDataScale(rs.getString("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"));
......
...@@ -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.getInt("DATALENGTH")); entity.setDataLength(rs.getString("DATALENGTH"));
entity.setDataPrecision(rs.getInt("DATAPRECISION")); entity.setDataPrecision(rs.getString("DATAPRECISION"));
entity.setDataScale(rs.getInt("DATASCALE")); entity.setDataScale(rs.getString("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"));
......
...@@ -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.getInt("DATALENGTH")); entity.setDataLength(rs.getString("DATALENGTH"));
entity.setDataPrecision(rs.getInt("DATAPRECISION")); entity.setDataPrecision(rs.getString("DATAPRECISION"));
entity.setDataScale(rs.getInt("DATASCALE")); entity.setDataScale(rs.getString("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"));
......
...@@ -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.getInt("DATALENGTH")); entity.setDataLength(rs.getString("DATALENGTH"));
entity.setDataPrecision(rs.getInt("DATAPRECISION")); entity.setDataPrecision(rs.getString("DATAPRECISION"));
entity.setDataScale(rs.getInt("DATASCALE")); entity.setDataScale(rs.getString("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"));
......
...@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment