| | |
| | | |
| | | import com.product.common.lang.StringUtils; |
| | | import com.product.core.entity.FieldSetEntity; |
| | | import com.product.data.config.CmnConst; |
| | | import com.product.data.config.DatabaseType; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | protected void init(FieldSetEntity fse) { |
| | | if (CmnConst.TABLE_PRODUCT_SYS_DATASOURCE_CONFIG.equals(fse.getTableName())) { |
| | | DbType = fse.getInteger("datasource_type"); |
| | | userName = fse.getString("username"); |
| | | passWord = fse.getString("password"); |
| | | ip = fse.getString("ip_address"); |
| | | port = fse.getString("database_port"); |
| | | customParams = fse.getString("link_params"); |
| | | DbInstance = fse.getString("instance_name"); |
| | | return; |
| | | } |
| | | DbType = fse.getInteger("db_type"); |
| | | userName = fse.getString("user_name"); |
| | | passWord = fse.getString("pass_word"); |