Class Delimiter


  • public class Delimiter
    extends Object
    Represents a sql statement delimiter.
    • Constructor Detail

      • Delimiter

        public Delimiter​(String delimiter,
                         boolean aloneOnLine)
        Creates a new delimiter.
        Parameters:
        delimiter - The actual delimiter string.
        aloneOnLine - Whether the delimiter sits alone on a new line or not.
    • Method Detail

      • getDelimiter

        public String getDelimiter()
        Returns:
        The actual delimiter string.
      • shouldBeAloneOnLine

        public boolean shouldBeAloneOnLine()
        Returns:
        Whether the delimiter sits alone on a new line or not.
      • getEscape

        public @Nullable String getEscape()
        Returns:
        The escape string for the delimiter, if any.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object