Interface DbDialect

All Known Implementing Classes:
AbstractDbDialect

public interface DbDialect
Interface for an database dialect. It abstracts from the concrete syntax (e.g. specific SQL) of a database.
  • Method Details

    • getId

      String getId()
      Returns:
      the name of the DbDialect (e.g. "h2", "postgresql", etc.). Should be entirely lower-case to prevent case mismatching.
    • getType

      default String getType()
      Returns:
      the database type. This is very similar to the ID but for the same database types potentially different dialects may exist (e.g. due to different versions of the database product).
    • getNamingStrategy

      DbNamingStrategy getNamingStrategy()
      Returns:
      the DbNamingStrategy.
    • quoteIdentifier

      default void quoteIdentifier(String name, Appendable appendable)
      Parameters:
      name - the name to quote.
      appendable - the Appendable where to append the quoted name to.
    • createFormatter

      DbStatementFormatter createFormatter()
      Returns:
      a new BasicDbStatementFormatter using this SQL dialect.