question: protected void addParameter ( Object preparedStatement , int index , Object value ) { QueryInformation queryAndParameters = preparedStatements . getIfPresent ( preparedStatement ) ; if ( null == queryAndParameters ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Could not get the prepared statement from the cache to add a parameter! Prepared Statement:" + preparedStatement + " index:" + index + " value:" + value ) ; } return ; } String [ ] parameters = queryAndParameters . getParameters ( ) ; if ( ( 0 > index ) || ( parameters . length <= index ) ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Trying to set the parameter with value " + value + " at index " + index + ", but the prepared statement did not have parameter on this index." ) ; } return ; } if ( null != value ) { if ( ( value instanceof String ) || ( value instanceof Date ) || ( value instanceof Time ) || ( value instanceof Timestamp ) ) { parameters [ index ] = "'" + value . toString ( ) + "'" ; } else { parameters [ index ] = value . toString ( ) ; } } else { value = NULL_VALUE ; parameters [ index ] = ( String ) value ; } if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Prepared Statement :: Added value:" + value . toString ( ) + " with index:" + index + " to prepared statement:" + preparedStatement ) ; } }
target:  Adds a parameter to a specific prepared statement.