Send feedback
Class RegexQueryPartReplacer (0.27.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.27.0 keyboard_arrow_down
public class RegexQueryPartReplacer implements QueryPartReplacer
Static Methods
replace(Pattern pattern, String replacement)
public static RegexQueryPartReplacer replace ( Pattern pattern , String replacement )
Replace all occurrences of the given pattern with the given static replacement.
replace(Pattern pattern, Supplier<String> replacement)
public static RegexQueryPartReplacer replace ( Pattern pattern , Supplier<String> replacement )
Replace all occurrences of the given pattern with the value that is returned by the given
Supplier function.
replaceAllAndStop(Pattern pattern, String replacement)
public static RegexQueryPartReplacer replaceAllAndStop ( Pattern pattern , String replacement )
Replace the entire with the given static value and then stop.
replaceAndStop(Pattern pattern, String replacement)
public static RegexQueryPartReplacer replaceAndStop ( Pattern pattern , String replacement )
Replace the first occurrence of the given pattern with the given static value and then stop.
replaceAndStop(Pattern pattern, Supplier<String> replacement)
public static RegexQueryPartReplacer replaceAndStop ( Pattern pattern , Supplier<String> replacement )
Replace the first occurrence of the given pattern with the value that is returned by the given
Supplier function and then stop.
Methods
replace(String sql)
public Tuple<String , QueryPartReplacer . ReplacementStatus > replace ( String sql )
Replace unsupported SQL parts in the given SQL string and return the new SQL string.
Parameter Name Description sql
String
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-06 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-06 UTC."],[],[]]