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
An SQL dialect for Postgres.
- Since:
- 1.1
- Author:
- Mark Paluch, Myeonghyeon Lee, Jens Schauder, Nikita Konev, Mikhail Polivakha
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PostgresDialectDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the array support object that describes how array-typed columns should be handled by this dialect.Return a collection of converters for this dialect.Provide a SQL function that is suitable for implementing an exists-query.Returns thehandling of table- and column names (identifiers)used for processingSqlIdentifierwhen converting them to SQL snippets or parameter names.Returns theIdGenerationused for generating identifiers.Returns anUpsertRenderContextfor single-statement upsert.limit()Return theLimitClauseused by this dialect.lock()Return theLockClauseused by this dialect.Return theSetof types considered store native types that can be handeled by the driver.Methods inherited from class org.springframework.data.relational.core.dialect.AbstractDialect
getAfterFromTable, getAfterOrderBy, getSelectContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.relational.core.dialect.Dialect
getInsertRenderContext, getLikeEscaper, getName, orderByNullHandling, supportsSingleQueryLoading
-
Field Details
-
INSTANCE
Deprecated, for removal: This API element is subject to removal in a future version.use either theorg.springframework.data.r2dbc.dialect.PostgresDialectororg.springframework.data.jdbc.core.dialect.JdbcPostgresDialect.Singleton instance.
-
-
Constructor Details
-
PostgresDialect
protected PostgresDialect()
-
-
Method Details
-
getIdentifierProcessing
Description copied from interface:DialectReturns thehandling of table- and column names (identifiers)used for processingSqlIdentifierwhen converting them to SQL snippets or parameter names.- Returns:
- the
IdentifierProcessing. Guaranteed to be not null.
-
getIdGeneration
Description copied from interface:DialectReturns theIdGenerationused for generating identifiers.- Returns:
- the
IdGenerationused for generating identifiers.
-
lock
Description copied from interface:DialectReturn theLockClauseused by this dialect.- Returns:
- the
LockClauseused by this dialect.
-
getArraySupport
Description copied from interface:DialectReturns the array support object that describes how array-typed columns should be handled by this dialect.- Returns:
- the array support object that describes how array-typed columns should be handled by this dialect.
-
getConverters
Description copied from interface:DialectReturn a collection of converters for this dialect.- Returns:
- a collection of converters for this dialect.
-
simpleTypes
Description copied from interface:DialectReturn theSetof types considered store native types that can be handeled by the driver.- Returns:
- never null.
-
getExistsFunction
Description copied from interface:DialectProvide a SQL function that is suitable for implementing an exists-query. The default is `COUNT(1)`, but for some databases aLEAST(COUNT(1), 1)might be required, which doesn't get accepted by other databases. -
limit
Description copied from interface:DialectReturn theLimitClauseused by this dialect.- Returns:
- the
LimitClauseused by this dialect.
-
getUpsertRenderContext
Description copied from interface:DialectReturns anUpsertRenderContextfor single-statement upsert.- Returns:
- the upsert render context, defaults to standard
MERGE.
-
org.springframework.data.r2dbc.dialect.PostgresDialectororg.springframework.data.jdbc.core.dialect.JdbcPostgresDialect.