Top Description Constructors Methods
org.hibernate.dialect

public Class PostgreSQL9Dialect

extends PostgreSQL82Dialect
Class Inheritance
Known Direct Subclasses
org.hibernate.dialect.PostgreSQL91Dialect

An SQL dialect for Postgres 9 and later. Adds support for "if exists" when dropping constraints
Author
edalquist

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
supportsIfExistsBeforeConstraintName()

Overrides org.hibernate.dialect.Dialect.supportsIfExistsBeforeConstraintName.

For dropping a constraint with an "alter table", can the phrase "if exists" be applied before the constraint name?
Inherited from org.hibernate.dialect.PostgreSQL82Dialect:
contributeTypesgetDefaultMultiTableBulkIdStrategygetDropSequenceStringsupportsIfExistsBeforeTableNamesupportsRowValueConstructorSyntaxInInListsupportsValuesList

Constructor Detail

PostgreSQL9Dialectback to summary
public PostgreSQL9Dialect()

Method Detail

supportsIfExistsBeforeConstraintNameback to summary
public boolean supportsIfExistsBeforeConstraintName()

Overrides org.hibernate.dialect.Dialect.supportsIfExistsBeforeConstraintName.

Doc from org.hibernate.dialect.Dialect.supportsIfExistsBeforeConstraintName.

For dropping a constraint with an "alter table", can the phrase "if exists" be applied before the constraint name?

NOTE : Only one or the other (or neither) of this and supportsIfExistsAfterConstraintName should return true

Returns:boolean

true if the "if exists" can be applied before the constraint name

Annotations
@Override