@ -7,6 +7,9 @@ import { connectionType } from '@constants/env';
import { CONNECT_CHARSET , CONNECTION_LAYOUT , INT_MAX_VALUE , INT_MIN_VALUE } from '@constants/constant' ;
import { getAllDatabaseTypes , getJdbcDatabaseType , resolveUrlInfo , splitUrl } from '../../../../app.service' ;
import { TextCheckerXtype } from '../../../../components/text_checker/text_checker' ;
import { ApiFactory } from 'src/modules/crud/apiFactory' ;
const api = new ApiFactory ( ) . create ( ) ;
export const FormJdbcXtype = 'dec.dcm.maintain.form.jdbc' ;
@shortcut ( FormJdbcXtype )
export class FormJdbc extends BI . Widget {
@ -742,7 +745,7 @@ export class FormJdbc extends BI.Widget {
driver : this.form.driver.getValue ( ) ,
url : this.form.url.getValue ( ) ,
user : this.form.user.getValue ( ) ,
password : this.oldPassword === this . form . password . getValue ( ) ? this . oldPassword : BI.Providers.getProvider ( 'dec.prov ider .cipher' ) . getCipher ( this . form . password . getValue ( ) ) ,
password : this.oldPassword === this . form . password . getValue ( ) ? this . oldPassword : ap i.getCipher( this . form . password . getValue ( ) ) ,
queryType : '' ,
newCharsetName : originalCharsetName ? 'gbk' : '' , // 后台要求,originalCharsetName不为空时,newCharsetName为gbk
originalCharsetName ,
@ -761,7 +764,7 @@ export class FormJdbc extends BI.Widget {
validationQuery : this.form.validationQuery.getValue ( ) ,
testOnBorrow : BI.size ( this . form . testOnBorrow . getValue ( ) ) > 0 ? this . form . testOnBorrow . getValue ( ) [ 0 ] : connectionPoolAttr . testOnBorrow ,
testOnReturn : BI.size ( this . form . testOnReturn . getValue ( ) ) > 0 ? this . form . testOnReturn . getValue ( ) [ 0 ] : connectionPoolAttr . testOnReturn ,
testWhileIdle : BI.size ( this . form . testOnReturn . getValue ( ) ) > 0 ? this . form . testWhileIdle . getValue ( ) [ 0 ] : connectionPoolAttr . testWhileIdle ,
testWhileIdle : BI.size ( this . form . testWhileIdle . getValue ( ) ) > 0 ? this . form . testWhileIdle . getValue ( ) [ 0 ] : connectionPoolAttr . testWhileIdle ,
timeBetweenEvictionRunsMillis : this.form.timeBetweenEvictionRunsMillis.getValue ( ) ,
numTestsPerEvictionRun : this.form.numTestsPerEvictionRun.getValue ( ) ,
minEvictableIdleTimeMillis : this.form.minEvictableIdleTimeMillis.getValue ( ) ,