Class QueryReplacement

java.lang.Object
de.chojo.sadu.updater.QueryReplacement

public class QueryReplacement extends Object
Represents a replacement inside a sql query.
  • Constructor Details

    • QueryReplacement

      public QueryReplacement(String target, String replacement)
      Creates a new replacement
      Parameters:
      target - regular expression for the target
      replacement - replacement of the target
  • Method Details

    • apply

      public String apply(String source)
      Applies the replacement on the input query
      Parameters:
      source - source
      Returns:
      the changed query