private void putProcessedInputToCache ( ProcessedInput processedInput ) { if ( MjdbcConfig . isQueryInputProcessorUseCache ( ) == true ) { ProcessedInput clonedProcessedInput = new ProcessedInput ( processedInput ) ; synchronized ( this . processedInputCache ) { // no need to keep parameters in the memory. removing just in case clonedProcessedInput . setSqlParameterValues ( null ) ; this . processedInputCache . put ( processedInput . getOriginalSql ( ) , clonedProcessedInput ) ; } } }
Puts ProcessedInput instance into Cache . Original SQL would be served as key