protected void writeParamsEntry ( StringBuilder sb , ExecutionInfo execInfo , List < QueryInfo > queryInfoList ) { boolean isPrepared = execInfo . getStatementType ( ) == StatementType . PREPARED ; sb . append ( "Params:[" ) ; for ( QueryInfo queryInfo : queryInfoList ) { for ( List < ParameterSetOperation > parameters : queryInfo . getParametersList ( ) ) { SortedMap < String , String > paramMap = getParametersToDisplay ( parameters ) ; // parameters per batch. // for prepared: (val1,val2,...) // for callable: (key1=val1,key2=val2,...) if ( isPrepared ) { writeParamsForSinglePreparedEntry ( sb , paramMap , execInfo , queryInfoList ) ; } else { writeParamsForSingleCallableEntry ( sb , paramMap , execInfo , queryInfoList ) ; } } } chompIfEndWith ( sb , ' ' ) ; sb . append ( "]" ) ; }
Write query parameters .