Class DefaultDbmsDialect

    • Constructor Detail

      • DefaultDbmsDialect

        public DefaultDbmsDialect()
      • DefaultDbmsDialect

        public DefaultDbmsDialect​(Map<Class<?>,​String> childSqlTypes)
    • Method Detail

      • supportsWithClause

        public boolean supportsWithClause()
        Specified by:
        supportsWithClause in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsNonRecursiveWithClause

        public boolean supportsNonRecursiveWithClause()
        Specified by:
        supportsNonRecursiveWithClause in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsWithClauseHead

        public boolean supportsWithClauseHead()
        Specified by:
        supportsWithClauseHead in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsJoinsInRecursiveCte

        public boolean supportsJoinsInRecursiveCte()
        Specified by:
        supportsJoinsInRecursiveCte in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsAnsiRowValueConstructor

        public boolean supportsAnsiRowValueConstructor()
        Specified by:
        supportsAnsiRowValueConstructor in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsRowValueConstructor

        public boolean supportsRowValueConstructor()
        Specified by:
        supportsRowValueConstructor in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsFullRowValueComparison

        public boolean supportsFullRowValueComparison()
        Specified by:
        supportsFullRowValueComparison in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsWindowFunctions

        public boolean supportsWindowFunctions()
        Specified by:
        supportsWindowFunctions in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsFilterClause

        public boolean supportsFilterClause()
        Specified by:
        supportsFilterClause in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsNullPrecedence

        public boolean supportsNullPrecedence()
        Specified by:
        supportsNullPrecedence in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsWindowNullPrecedence

        public boolean supportsWindowNullPrecedence()
        Specified by:
        supportsWindowNullPrecedence in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsBooleanAggregation

        public boolean supportsBooleanAggregation()
        Specified by:
        supportsBooleanAggregation in interface com.blazebit.persistence.spi.DbmsDialect
      • isNullSmallest

        public boolean isNullSmallest()
        Specified by:
        isNullSmallest in interface com.blazebit.persistence.spi.DbmsDialect
      • requiresNullCast

        public boolean requiresNullCast()
        Specified by:
        requiresNullCast in interface com.blazebit.persistence.spi.DbmsDialect
      • getLateralStyle

        public com.blazebit.persistence.spi.LateralStyle getLateralStyle()
        Specified by:
        getLateralStyle in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsArbitraryLengthMultiset

        public boolean supportsArbitraryLengthMultiset()
        Specified by:
        supportsArbitraryLengthMultiset in interface com.blazebit.persistence.spi.DbmsDialect
      • getSqlType

        public String getSqlType​(Class<?> castType)
        Specified by:
        getSqlType in interface com.blazebit.persistence.spi.DbmsDialect
      • getWithClause

        public String getWithClause​(boolean recursive)
        Specified by:
        getWithClause in interface com.blazebit.persistence.spi.DbmsDialect
      • appendExtendedSql

        public Map<String,​String> appendExtendedSql​(StringBuilder sqlSb,
                                                          com.blazebit.persistence.spi.DbmsStatementType statementType,
                                                          boolean isSubquery,
                                                          boolean isEmbedded,
                                                          StringBuilder withClause,
                                                          String limit,
                                                          String offset,
                                                          String[] returningColumns,
                                                          Map<com.blazebit.persistence.spi.DbmsModificationState,​String> includedModificationStates)
        Specified by:
        appendExtendedSql in interface com.blazebit.persistence.spi.DbmsDialect
      • appendSet

        public void appendSet​(StringBuilder sqlSb,
                              com.blazebit.persistence.spi.SetOperationType setType,
                              boolean isSubquery,
                              List<String> operands,
                              List<? extends com.blazebit.persistence.spi.OrderByElement> orderByElements,
                              String limit,
                              String offset)
        Specified by:
        appendSet in interface com.blazebit.persistence.spi.DbmsDialect
      • createLimitHandler

        public com.blazebit.persistence.spi.DbmsLimitHandler createLimitHandler()
        Specified by:
        createLimitHandler in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsLimitWithoutOrderBy

        public boolean supportsLimitWithoutOrderBy()
        Specified by:
        supportsLimitWithoutOrderBy in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsLimitInQuantifiedPredicateSubquery

        public boolean supportsLimitInQuantifiedPredicateSubquery()
        Specified by:
        supportsLimitInQuantifiedPredicateSubquery in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsNestedCorrelations

        public boolean supportsNestedCorrelations()
        Specified by:
        supportsNestedCorrelations in interface com.blazebit.persistence.spi.DbmsDialect
      • getWindowFunctionDummyOrderBy

        protected String getWindowFunctionDummyOrderBy()
      • needsAliasInSetOrderBy

        protected boolean needsAliasInSetOrderBy()
      • supportsPartitionInRowNumberOver

        protected boolean supportsPartitionInRowNumberOver()
      • needsAliasForFromClause

        protected boolean needsAliasForFromClause()
      • needsSetOperationWrapper

        protected boolean needsSetOperationWrapper()
      • appendSetOperands

        protected String[] appendSetOperands​(StringBuilder sqlSb,
                                             com.blazebit.persistence.spi.SetOperationType setType,
                                             String operator,
                                             boolean isSubquery,
                                             List<String> operands,
                                             boolean hasOuterClause)
      • appendOrderBy

        protected void appendOrderBy​(StringBuilder sqlSb,
                                     List<? extends com.blazebit.persistence.spi.OrderByElement> orderByElements,
                                     String[] aliases)
      • appendOrderByElement

        public void appendOrderByElement​(StringBuilder sqlSb,
                                         com.blazebit.persistence.spi.OrderByElement element,
                                         String[] aliases)
        Specified by:
        appendOrderByElement in interface com.blazebit.persistence.spi.DbmsDialect
      • appendEmulatedOrderByElementWithNulls

        protected void appendEmulatedOrderByElementWithNulls​(StringBuilder sqlSb,
                                                             com.blazebit.persistence.spi.OrderByElement element,
                                                             String[] aliases)
      • getOperator

        protected String getOperator​(com.blazebit.persistence.spi.SetOperationType type)
      • supportsUnion

        public boolean supportsUnion​(boolean all)
        Specified by:
        supportsUnion in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsIntersect

        public boolean supportsIntersect​(boolean all)
        Specified by:
        supportsIntersect in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsExcept

        public boolean supportsExcept​(boolean all)
        Specified by:
        supportsExcept in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsWithClauseInModificationQuery

        public boolean supportsWithClauseInModificationQuery()
        Specified by:
        supportsWithClauseInModificationQuery in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsModificationQueryInWithClause

        public boolean supportsModificationQueryInWithClause()
        Specified by:
        supportsModificationQueryInWithClause in interface com.blazebit.persistence.spi.DbmsDialect
      • usesExecuteUpdateWhenWithClauseInModificationQuery

        public boolean usesExecuteUpdateWhenWithClauseInModificationQuery()
        Specified by:
        usesExecuteUpdateWhenWithClauseInModificationQuery in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsReturningGeneratedKeys

        public boolean supportsReturningGeneratedKeys()
        Specified by:
        supportsReturningGeneratedKeys in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsReturningAllGeneratedKeys

        public boolean supportsReturningAllGeneratedKeys()
        Specified by:
        supportsReturningAllGeneratedKeys in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsReturningColumns

        public boolean supportsReturningColumns()
        Specified by:
        supportsReturningColumns in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsGroupByExpressionInHavingMatching

        public boolean supportsGroupByExpressionInHavingMatching()
        Specified by:
        supportsGroupByExpressionInHavingMatching in interface com.blazebit.persistence.spi.DbmsDialect
      • supportsComplexJoinOn

        public boolean supportsComplexJoinOn()
        Specified by:
        supportsComplexJoinOn in interface com.blazebit.persistence.spi.DbmsDialect
      • getValuesStrategy

        public com.blazebit.persistence.spi.ValuesStrategy getValuesStrategy()
        Specified by:
        getValuesStrategy in interface com.blazebit.persistence.spi.DbmsDialect
      • needsCastParameters

        public boolean needsCastParameters()
        Specified by:
        needsCastParameters in interface com.blazebit.persistence.spi.DbmsDialect
      • getDummyTable

        public String getDummyTable()
        Specified by:
        getDummyTable in interface com.blazebit.persistence.spi.DbmsDialect
      • cast

        public String cast​(String expression,
                           String sqlType)
        Specified by:
        cast in interface com.blazebit.persistence.spi.DbmsDialect
      • needsReturningSqlTypes

        public boolean needsReturningSqlTypes()
        Specified by:
        needsReturningSqlTypes in interface com.blazebit.persistence.spi.DbmsDialect
      • getPrepareFlags

        public int getPrepareFlags()
        Specified by:
        getPrepareFlags in interface com.blazebit.persistence.spi.DbmsDialect
      • indexOfIgnoreCase

        protected static int indexOfIgnoreCase​(StringBuilder haystack,
                                               String needle)
      • regionMatchesIgnoreCase

        protected static boolean regionMatchesIgnoreCase​(StringBuilder haystack,
                                                         int thisStart,
                                                         String substring,
                                                         int start,
                                                         int length)