- 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 Summary
Modifier and TypeMethodDescriptiongetId()default StringgetType()default voidquoteIdentifier(String name, Appendable appendable)
-
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
- Returns:
- the database type. This is very similar to the
IDbut 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
- Parameters:
name- the name to quote.appendable- theAppendablewhere toappendthe quoted name to.
-
createFormatter
DbStatementFormatter createFormatter()- Returns:
- a new
BasicDbStatementFormatterusing this SQL dialect.
-