Class PostgresDialect

java.lang.Object
org.springframework.data.relational.core.dialect.AbstractDialect
org.springframework.data.relational.core.dialect.PostgresDialect
All Implemented Interfaces:
Dialect
Direct Known Subclasses:
JdbcPostgresDialect, PostgresDialect

public class PostgresDialect extends AbstractDialect
An SQL dialect for Postgres.
Since:
1.1
Author:
Mark Paluch, Myeonghyeon Lee, Jens Schauder, Nikita Konev
  • Field Details

    • INSTANCE

      public static final PostgresDialect INSTANCE
      Singleton instance.
  • Constructor Details

    • PostgresDialect

      protected PostgresDialect()
  • Method Details

    • limit

      public LimitClause limit()
      Description copied from interface: Dialect
      Return the LimitClause used by this dialect.
      Returns:
      the LimitClause used by this dialect.
    • lock

      public LockClause lock()
      Description copied from interface: Dialect
      Return the LockClause used by this dialect.
      Returns:
      the LockClause used by this dialect.
    • getArraySupport

      public ArrayColumns getArraySupport()
      Description copied from interface: Dialect
      Returns the array support object that describes how array-typed columns are supported by this dialect.
      Returns:
      the array support object that describes how array-typed columns are supported by this dialect.
    • getConverters

      public Collection<Object> getConverters()
      Description copied from interface: Dialect
      Return a collection of converters for this dialect.
      Returns:
      a collection of converters for this dialect.
    • getIdentifierProcessing

      public IdentifierProcessing getIdentifierProcessing()
      Description copied from interface: Dialect
      Returns the IdentifierProcessing used for processing SqlIdentifier when converting them to SQL snippets or parameter names.
      Returns:
      the IdentifierProcessing. Guaranteed to be not null.
    • simpleTypes

      public Set<Class<?>> simpleTypes()
      Description copied from interface: Dialect
      Return the Set of types considered store native types that can be handeled by the driver.
      Returns:
      never null.
    • getExistsFunction

      public SimpleFunction getExistsFunction()
      Description copied from interface: Dialect
      Provide a SQL function that is suitable for implementing an exists-query. The default is `COUNT(1)`, but for some database a `LEAST(COUNT(1), 1)` might be required, which doesn't get accepted by other databases.