Class PostgresPlusDialect
- All Implemented Interfaces:
CheckConstraintSupport, ForeignKeySupport, IdentifierSupport, KeywordSupport, LiteralSupport, AlterTableSupport, ColumnDefinitionSupport, ConstraintControlSupport, IndexDdlSupport, TableCreationSupport, TruncateSupport, CurrentTemporalSupport, TemporalFormatSupport, TemporalOperationSupport, ConversionContext
-
Field Summary
Fields inherited from class PostgreSQLDialect
driverKind, MINIMUM_VERSIONFields inherited from class Dialect
LEGACY_LOB_MERGE_STRATEGY, NEW_LOCATOR_LOB_MERGE_STRATEGY, STANDARD_MULTI_KEY_LOAD_SIZING_STRATEGY, STREAM_XFER_LOB_MERGE_STRATEGYFields inherited from interface ConstraintControlSupport
NONEFields inherited from interface TruncateSupport
STANDARD -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a PostgresPlusDialectPostgresPlusDialect(DatabaseVersion version) -
Method Summary
Modifier and TypeMethodDescriptioncastPattern(CastType from, CastType to) Obtain a pattern for the SQL equivalent to acast()function call.Render the current SQL timestamp expression used forjava.sql.Timestamp.Supply current temporal expressions and database-side timestamp retrieval.Supply the stable factory which creates this Dialect's JDBC REF_CURSOR registration and extraction service.Supply the factory for this Dialect's single-use SQL AST translators.Supply the database's stable string-value semantics.Supply extraction and timestamp-arithmetic syntax.voidinitializeFunctionRegistry(FunctionContributions functionContributions) Contribute the database-specific function descriptors after independent function contributors have run.timestampdiffPattern(TemporalUnit unit, TemporalType fromTemporalType, TemporalType toTemporalType) Return a timestamp-difference pattern containing?1,?2, and?3.Methods inherited from class PostgreSQLDialect
addPartitionKeyToPrimaryKey, alterColumnType, appendBinaryLiteral, appendBooleanValueString, appendDateTimeLiteral, appendDateTimeLiteral, appendDateTimeLiteral, appendDefinition, appendFormat, augmentRecognizedTableTypes, buildIdentifierHelper, buildSQLExceptionConversionDelegate, castType, causesRollback, columnType, contributeDefaultProperties, contributePostgreSQLTypes, contributeTypes, createOptionalTableUpdateOperation, currentTime, currentTimestampWithTimeZone, datetimeFormat, extractPattern, fractionalSecondPrecisionInNanos, getAggregateSupport, getArraySupport, getCallableStatementSupport, getCteSupport, getCurrentTimestampSelection, getDefaultOrdinalityColumnName, getDirectJavaTimeJdbcSupport, getDmlTargetColumnQualifierSupport, getDriverKind, getEnumSupport, getFetchClauseSupport, getFunctionalDependencyAnalysisSupport, getGeneratedValuesSupport, getIdentityColumnSupport, getIfExistsSupport, getInformationExtractor, getLimitHandler, getLobSupport, getLocalTemporaryTableStrategy, getLockingSupport, getMaxIdentifierLength, getMinimumSupportedVersion, getMultiTableMutationSupport, getMutationSyntaxSupport, getNameQualifierSupport, getNamespaceSupport, getNationalizationSupport, getNativeParameterMarkerStrategy, getNativeValueGenerationStrategy, getObjectNullBindingStrategy, getPredicateSupport, getQueryHintPlacement, getQueryHintString, getRowIdSupport, getRowLevelSecurity, getRowValueSupport, getSchemaCommentSupport, getSchemaDropSupport, getSelectClauseNullString, getSequenceInformationExtractor, getSequenceSupport, getSubquerySupport, getTableExporter, getTemporalFormatSupport, getTemporalTableSupport, getTemporalValueSemantics, getTimeZoneSupport, getTupleCountSupport, getTypeSizingProfile, getUniqueDelegate, getUserDefinedTypeExporter, getValuesListSupport, getViolatedConstraintNameExtractor, getWindowFunctionSupport, isCurrentTimestampStable, nameQualification, quoteCollation, registerArrayFunctions, registerColumnTypes, registerJsonFunction, registerPostgreSQLColumnTypes, registerUtilityFunctions, registerXmlFunctions, renderCommands, resolveSqlTypeCode, resolveSqlTypeDescriptor, supportsFilterClause, supportsMinMaxOnUuid, supportsUserDefinedTypes, timestampaddPattern, translateExtractField, truncateModeMethods inherited from class Dialect
appendArrayLiteral, augmentPhysicalTableTypes, buildLockingClauseStrategy, buildStringToBooleanCast, buildStringToBooleanCastDecode, constraintControlMode, contributeKeywords, defaultScrollMode, determineDatabaseVersion, equivalentTypes, getAlterTableSupport, getArrayTypeName, getBatchLoadSizingStrategy, getCatalogSeparator, getCheckConstraintSupport, getColumnAliasExtractor, getColumnDefinitionSupport, getConstraintControlSupport, getDefaultProperties, getEntityLockingStrategyFactory, getExpressionCoercionSupport, getForeignKeyExporter, getForeignKeySupport, getGlobalTemporaryTableStrategy, getIdentifierSupport, getIndexDdlSupport, getIndexExporter, getJdbcMetadataOverrides, getKeywords, getKeywordSupport, getLiteralSupport, getLobMergeStrategy, getLockingClauseStrategy, getLowercaseFunction, getMultiKeyLoadSizingStrategy, getNullOrderingSupport, getParameterLimits, getPersistentTemporaryTableStrategy, getPreferredSqlTypeCodeForArray, getPreferredSqlTypeCodeForBoolean, getQueryHintString, getSchemaNameResolver, getSequenceExporter, getSetOperationSupport, getSetOperatorSqlString, getSingleRowTableSupport, getSizeStrategy, getSyntheticTableGroupSupport, getTableCleaner, getTableCreationSupport, getTableMigrator, getTemporaryTableExporter, getTruncateSupport, getVersion, isJdbcLogWarningsEnabledByDefault, narrowCastType, resolveSqlTypeCode, resolveSqlTypeLength, supportsCrossJoin, supportsNationalizedMethods, supportsOrdinalSelectItemReference, throttleDdl, toString, trimPatternMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface AlterTableSupport
addColumnPrefix, addColumnSuffix, alterTableCommandMethods inherited from interface CheckConstraintSupport
render, supportsMethods inherited from interface ConstraintControlSupport
disableCommands, disableConstraintCommands, enableCommands, enableConstraintCommandsMethods inherited from interface CurrentTemporalSupport
currentDate, currentLocalTime, currentLocalTimestamp, currentTime, currentTimestampWithTimeZone, getCurrentTimestampSelection, isCurrentTimestampStable, usesStandardCurrentTimestampFunctionMethods inherited from interface ForeignKeySupport
renderAddConstraint, renderDropConstraint, requiresSelfReferentialForeignKeyNullification, supportsAlterTableConstraints, supportsOnDeleteActionMethods inherited from interface IdentifierSupport
closeQuote, getMaxAliasLength, openQuote, quote, toQuotedIdentifierMethods inherited from interface IndexDdlSupport
createCommand, createTailMethods inherited from interface KeywordSupport
acceptsJdbcKeywordMethods inherited from interface LiteralSupport
appendIntervalLiteral, appendIntervalLiteral, appendLiteral, appendUUIDLiteral, toBooleanValueStringMethods inherited from interface TableCreationSupport
createTableCommand, requiresViewColumnList, tableCreationOptionsMethods inherited from interface TemporalOperationSupport
extractPattern, fractionalSecondPrecisionInNanos, timestampaddPattern, translateDurationField, translateExtractField
-
Constructor Details
-
PostgresPlusDialect
public PostgresPlusDialect()Constructs a PostgresPlusDialect -
PostgresPlusDialect
-
PostgresPlusDialect
-
-
Method Details
-
getTemporalOperationSupport
Description copied from class:DialectSupply extraction and timestamp-arithmetic syntax. Return one stable, non-null, thread-safe implementation. Providers may implementTemporalOperationSupportdirectly and returnthis.- Overrides:
getTemporalOperationSupportin classPostgreSQLDialect- See Also:
-
getCurrentTemporalSupport
Description copied from class:DialectSupply current temporal expressions and database-side timestamp retrieval. Return one stable, non-null, thread-safe implementation. Providers may implementCurrentTemporalSupportdirectly and returnthis.- Overrides:
getCurrentTemporalSupportin classPostgreSQLDialect- See Also:
-
initializeFunctionRegistry
@SPI({IMPLEMENT,SUPPLY}) public void initializeFunctionRegistry(FunctionContributions functionContributions) Description copied from class:DialectContribute the database-specific function descriptors after independent function contributors have run.
Override this callback to extend or replace the inherited function set. Invoke
superfirst to retain Hibernate's standard and emulated registrations; omitting it deliberately replaces that set. Mutate the supplied boot-scoped function registry only during this callback, and do not retain the contribution context or registry afterward. Implement an independentFunctionContributorinstead when the contribution is not owned by a Dialect.- Overrides:
initializeFunctionRegistryin classPostgreSQLDialect- Parameters:
functionContributions- the Hibernate-supplied function contribution target- See Also:
-
castPattern
Description copied from class:DialectObtain a pattern for the SQL equivalent to acast()function call. The resulting pattern must contain ?1 and ?2 placeholders for the arguments.- Overrides:
castPatternin classPostgreSQLDialect- Parameters:
from- aCastTypeindicating the type of the value argumentto- aCastTypeindicating the type the value argument is cast to
-
currentTimestamp
Description copied from interface:CurrentTemporalSupportRender the current SQL timestamp expression used forjava.sql.Timestamp.- Specified by:
currentTimestampin interfaceCurrentTemporalSupport- Overrides:
currentTimestampin classPostgreSQLDialect
-
timestampdiffPattern
@SPI({USE,IMPLEMENT}) public String timestampdiffPattern(TemporalUnit unit, TemporalType fromTemporalType, TemporalType toTemporalType) Description copied from interface:TemporalOperationSupportReturn a timestamp-difference pattern containing?1,?2, and?3.- Specified by:
timestampdiffPatternin interfaceTemporalOperationSupport- Overrides:
timestampdiffPatternin classPostgreSQLDialect
-
getStringValueSemantics
Description copied from class:DialectSupply the database's stable string-value semantics.- Overrides:
getStringValueSemanticsin classDialect- Returns:
- the non-null string-value profile
- See Also:
-
getRefCursorSupportFactory
Description copied from class:DialectSupply the stable factory which creates this Dialect's JDBC REF_CURSOR registration and extraction service.
Return one non-null factory whose identity and selection behavior remain stable for this Dialect's lifetime. This factory controls JDBC cursor access;
Dialect.getCallableStatementSupport()independently controls whether and how the callable SQL protocol admits a REF_CURSOR parameter.- Overrides:
getRefCursorSupportFactoryin classPostgreSQLDialect- Returns:
- the REF_CURSOR JDBC access factory
- See Also:
-
getSqlAstTranslatorFactory
Description copied from class:DialectSupply the factory for this Dialect's single-use SQL AST translators.
Return
nullto useStandardSqlAstTranslatorFactory. A custom Dialect should normally return a reusable factory derived from that class and create translators derived fromAbstractSqlAstTranslatoror an appropriate supported family base. The factory must not retain translation requests, and every translator it returns is used for one translation.- Overrides:
getSqlAstTranslatorFactoryin classPostgreSQLDialect- See Also:
-