Interface ParamParser

    • Method Detail

      • find

        String[] find​(String query)
        extract the parameters names from query.
        Parameters:
        query - the SQL sentence
        Returns:
        array parameters from query
      • replaceForPlaceholder

        String replaceForPlaceholder​(String query,
                                     Object params)
        Replace the parameters names for question marks
        Parameters:
        query - the SQL sentence
        params - parameters used at query, its necessary when the query use IN clause
        Returns:
        the new SQL sentence with question marks.
      • replaceForPlaceholder

        String replaceForPlaceholder​(String query)
        Replace the parameters names for question marks
        Parameters:
        query - the SQL sentence
        Returns:
        the new SQL sentence with question marks.
      • replaceForPlaceholderWithNumber

        String replaceForPlaceholderWithNumber​(String query,
                                               Object params)
      • getPlaceholder

        String getPlaceholder()
        Specifies a character that will be replaced to in SQL query. Default is ?
        Returns:
        the place holder from parser