|
|
@ -54,7 +54,6 @@ export class FormJdbc extends BI.Widget { |
|
|
|
url: null, |
|
|
|
url: null, |
|
|
|
initialSize: null, |
|
|
|
initialSize: null, |
|
|
|
maxActive: null, |
|
|
|
maxActive: null, |
|
|
|
maxIdle: null, |
|
|
|
|
|
|
|
maxWait: null, |
|
|
|
maxWait: null, |
|
|
|
validationQuery: null, |
|
|
|
validationQuery: null, |
|
|
|
testOnBorrow: null, |
|
|
|
testOnBorrow: null, |
|
|
@ -87,7 +86,6 @@ export class FormJdbc extends BI.Widget { |
|
|
|
const { |
|
|
|
const { |
|
|
|
initialSize, |
|
|
|
initialSize, |
|
|
|
maxActive, |
|
|
|
maxActive, |
|
|
|
maxIdle, |
|
|
|
|
|
|
|
maxWait, |
|
|
|
maxWait, |
|
|
|
validationQuery, |
|
|
|
validationQuery, |
|
|
|
testOnBorrow, |
|
|
|
testOnBorrow, |
|
|
@ -481,7 +479,7 @@ export class FormJdbc extends BI.Widget { |
|
|
|
$value: 'validation-query', |
|
|
|
$value: 'validation-query', |
|
|
|
cls: 'bi-border', |
|
|
|
cls: 'bi-border', |
|
|
|
allowBlank: true, |
|
|
|
allowBlank: true, |
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input'), |
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_SQL_Validation_Query_Watermark'), |
|
|
|
value: api.getPlain(validationQuery || ''), |
|
|
|
value: api.getPlain(validationQuery || ''), |
|
|
|
width: 300, |
|
|
|
width: 300, |
|
|
|
height: 100, |
|
|
|
height: 100, |
|
|
@ -522,7 +520,7 @@ export class FormJdbc extends BI.Widget { |
|
|
|
type: Collapse.xtype, |
|
|
|
type: Collapse.xtype, |
|
|
|
bgap: -15, |
|
|
|
bgap: -15, |
|
|
|
width: 70, |
|
|
|
width: 70, |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Database_Advanced_Setting'), |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Database_More_Setting'), |
|
|
|
listeners: [ |
|
|
|
listeners: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
eventName: EVENT_CHANGE, |
|
|
|
eventName: EVENT_CHANGE, |
|
|
@ -562,26 +560,6 @@ export class FormJdbc extends BI.Widget { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}], |
|
|
|
}], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
|
|
|
|
type: FormItem.xtype, |
|
|
|
|
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Database_Max_Idle'), |
|
|
|
|
|
|
|
forms: [{ |
|
|
|
|
|
|
|
type: TextChecker.xtype, |
|
|
|
|
|
|
|
$value: 'max-idle', |
|
|
|
|
|
|
|
width: 300, |
|
|
|
|
|
|
|
allowBlank: false, |
|
|
|
|
|
|
|
value: maxIdle, |
|
|
|
|
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Database_Max_Idle'), |
|
|
|
|
|
|
|
validationChecker: [{ |
|
|
|
|
|
|
|
errorText: BI.i18nText('Dec-Dcm_Connection_Check_Integer'), |
|
|
|
|
|
|
|
checker: (value: string) => this.checkInteger(value), |
|
|
|
|
|
|
|
autoFix: true, |
|
|
|
|
|
|
|
}, valueRangeConfig], |
|
|
|
|
|
|
|
ref: (_ref: TextChecker) => { |
|
|
|
|
|
|
|
this.form.maxIdle = _ref; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
type: FormItem.xtype, |
|
|
|
type: FormItem.xtype, |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Database_Min_Idle'), |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Database_Min_Idle'), |
|
|
@ -862,7 +840,6 @@ export class FormJdbc extends BI.Widget { |
|
|
|
connectionPoolAttr: { |
|
|
|
connectionPoolAttr: { |
|
|
|
initialSize: this.form.initialSize.getValue(), |
|
|
|
initialSize: this.form.initialSize.getValue(), |
|
|
|
maxActive: this.form.maxActive.getValue(), |
|
|
|
maxActive: this.form.maxActive.getValue(), |
|
|
|
maxIdle: this.form.maxIdle.getValue(), |
|
|
|
|
|
|
|
minIdle: this.form.minIdle.getValue(), |
|
|
|
minIdle: this.form.minIdle.getValue(), |
|
|
|
maxWait: this.form.maxWait.getValue(), |
|
|
|
maxWait: this.form.maxWait.getValue(), |
|
|
|
validationQuery: api.getCipher(this.form.validationQuery.getValue()), |
|
|
|
validationQuery: api.getCipher(this.form.validationQuery.getValue()), |
|
|
|