private ProcessedInput getProcessedInputsFromCache ( String originalSql ) { ProcessedInput processedInput = null ; synchronized ( this . processedInputCache ) { processedInput = this . processedInputCache . get ( originalSql ) ; if ( processedInput == null || MjdbcConfig . isQueryInputProcessorUseCache ( ) == false ) { processedInput = new ProcessedInput ( originalSql ) ; } else { processedInput = new ProcessedInput ( processedInput ) ; } return processedInput ; } }
Searches cache by original SQL as key and returned cached ProcessedInput instance