java.lang.Object
de.funfried.netbeans.plugins.external.formatter.sql.jsqlformatter.JSQLFormatterWrapper

public final class JSQLFormatterWrapper extends Object
Delegation class to the JSQLFormatter implementation.
Author:
Andreas Reichel andreas@manticore-projects.com
  • Method Details

    • format

      @CheckForNull public String format(String code, String... options) throws FormattingFailedException
      Formats the given code with the given configurations and returns the formatted code.
      Parameters:
      code - the unformatted SQL code
      options - an array of Formatting Options expressed as Key=Value pairs
      Returns:
      the formatted SQL code
      Throws:
      FormattingFailedException - if the external formatter failed to format the given code