Interface SqlBuilderSettings


public interface SqlBuilderSettings
A context for SQL builder settings.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Returns whether the blank lines should be removed.
    default boolean
    Returns whether the block comment should be removed.
    default boolean
    Returns whether the line comment should be removed.
    default boolean
    Determines whether padding is required for elements in an "IN" list in SQL queries.
  • Method Details

    • shouldRemoveBlockComment

      default boolean shouldRemoveBlockComment(String comment)
      Returns whether the block comment should be removed. The beginning of the comment parameter string must always start with "/*".
      Parameters:
      comment - the block comment, never null
      Returns:
      true if the block comment should be removed
    • shouldRemoveLineComment

      default boolean shouldRemoveLineComment(String comment)
      Returns whether the line comment should be removed. The beginning of the comment parameter string must always start with "--".
      Parameters:
      comment - the line comment, never null
      Returns:
      true if the line comment should be removed
    • shouldRemoveBlankLines

      default boolean shouldRemoveBlankLines()
      Returns whether the blank lines should be removed.
      Returns:
      true if the blank lines should be removed
    • shouldRequireInListPadding

      default boolean shouldRequireInListPadding()
      Determines whether padding is required for elements in an "IN" list in SQL queries.
      Returns:
      true if padding is required for elements in an "IN" list, false otherwise