Class GridGain9Dialect

java.lang.Object
org.hibernate.dialect.Dialect
org.gridgain.hibernate.GridGain9Dialect
All Implemented Interfaces:
org.hibernate.exception.spi.ConversionContext

public class GridGain9Dialect extends org.hibernate.dialect.Dialect
Hibernate SQL dialect for GridGain 9.

Provides type mappings, SQL function registration, LIMIT/OFFSET syntax, identifier quoting, and exception conversion tailored to the GridGain 9 SQL engine.

Experimental — this module is provided as-is and may change in future releases.

  • Field Summary

    Fields inherited from class org.hibernate.dialect.Dialect

    CLOSED_QUOTE, DEFAULT_BATCH_SIZE, LEGACY_LOB_MERGE_STRATEGY, NEW_LOCATOR_LOB_MERGE_STRATEGY, NO_BATCH, QUOTE, STANDARD_DEFAULT_BATCH_LOAD_SIZING_STRATEGY, STREAM_XFER_LOB_MERGE_STRATEGY, TWO_SINGLE_QUOTES_REPLACEMENT
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    org.hibernate.exception.spi.SQLExceptionConversionDelegate
     
    boolean
     
    boolean
     
    char
     
    protected String
     
    protected String
    Returns the cast target for fixed-point (NUMERIC/DECIMAL) types.
    protected String
    Returns the cast target for floating-point types.
     
     
     
    getLimitString(String sql, boolean hasOffset)
     
     
    getReadLockString(int timeout)
     
     
     
    getWriteLockString(int timeout)
     
    boolean
     
    boolean
     
    char
     
    boolean
     
    int
     
    protected void
    Registers sized VARCHAR types.
    renderOrderByElement(String expression, String collation, String order, org.hibernate.NullPrecedence nulls)
     
    protected String
    Returns the cast target for integer types.
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     

    Methods inherited from class org.hibernate.dialect.Dialect

    addSqlHintOrComment, appendLockHint, appendLockHint, applyLocksToSql, augmentPhysicalTableTypes, augmentRecognizedTableTypes, bindLimitParametersFirst, buildIdentifierHelper, buildSQLExceptionConverter, cast, cast, cast, contributeTypes, convertToFirstRowValue, createCaseFragment, createOuterJoinFragment, defaultScrollMode, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, dropConstraints, equivalentTypes, escapeComment, forceLimitUsage, forceLobAsLastValue, forUpdateOfColumns, getAddColumnSuffixString, getAddForeignKeyConstraintString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAddUniqueConstraintString, getAlterTableString, getAuxiliaryDatabaseObjectExporter, getCallableStatementSupport, getCascadeConstraintsString, getCaseInsensitiveLike, getCastTypeName, getColumnAliasExtractor, getColumnComment, getCreateCatalogCommand, getCreateMultisetTableString, getCreateSchemaCommand, getCreateSequenceString, getCreateSequenceString, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getCreateTemporaryTableColumnAnnotation, getCrossJoinSeparator, getCurrentSchemaCommand, getCurrentTimestampSQLFunctionName, getDefaultBatchLoadSizingStrategy, getDefaultMultiTableBulkIdStrategy, getDefaultProperties, getDialect, getDialect, getDropCatalogCommand, getDropForeignKeyString, getDropSchemaCommand, getDropSequenceString, getDropSequenceStrings, getDropTableString, getForeignKeyExporter, getForUpdateNowaitString, getForUpdateNowaitString, getForUpdateSkipLockedString, getForUpdateSkipLockedString, getForUpdateString, getForUpdateString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIdentityColumnSupport, getIndexExporter, getInExpressionCountLimit, getKeywords, getLimitHandler, getLimitString, getLobMergeStrategy, getLockingStrategy, getLowercaseFunction, getMaxAliasLength, getNameQualifierSupport, getNativeIdentifierGeneratorClass, getNativeIdentifierGeneratorStrategy, getNoColumnsInsertString, getNullColumnString, getQueryHintString, getQueryHintString, getQuerySequencesString, getReadLockString, getResultSet, getResultSet, getSchemaNameResolver, getSelectClauseNullString, getSelectSequenceNextValString, getSequenceExporter, getSequenceInformationExtractor, getSequenceNextValString, getSqlTypeDescriptorOverride, getTableComment, getTableExporter, getTableTypeString, getTypeName, getTypeName, getUniqueDelegate, getUniqueKeyExporter, getViolatedConstraintNameExtracter, getWriteLockString, hasAlterTable, hasSelfReferentialForeignKeyBug, inlineLiteral, isLegacyLimitHandlerBehaviorEnabled, isLockTimeoutParameterized, isTypeNameRegistered, prependComment, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, registerResultSetOutParameter, remapSqlTypeDescriptor, replaceResultVariableInOrderByClauseWithPosition, requiresCastingOfParametersInSelectClause, requiresParensForTupleDistinctCounts, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCaseInsensitiveLike, supportsCircularCascadeDeleteConstraints, supportsColumnCheck, supportsCommentOn, supportsExistsInSelect, supportsExpectedLobUsagePattern, supportsIfExistsAfterAlterTable, supportsIfExistsAfterConstraintName, supportsIfExistsAfterTableName, supportsIfExistsBeforeConstraintName, supportsJdbcConnectionLobCreation, supportsNamedParameters, supportsNationalizedTypes, supportsNoColumnsInsert, supportsNonQueryWithCTE, supportsNotNullUnique, supportsNoWait, supportsParametersInInsertSelect, supportsPartitionBy, supportsPooledSequences, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsRowValueConstructorSyntaxInInList, supportsRowValueConstructorSyntaxInSet, supportsSelectAliasInGroupByClause, supportsSequences, supportsSkipLocked, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTupleCounts, supportsTupleDistinctCounts, supportsTuplesInSubqueries, supportsUnboundedLobLocatorMaterialization, supportsUnionAll, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsValuesList, supportsVariableLimit, toBooleanValueString, toString, transformSelectString, useFollowOnLocking, useFollowOnLocking, useInputStreamToInsertBlob, useMaxForLimit

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GridGain9Dialect

      public GridGain9Dialect()
      Constructor. Registers column types, SQL functions, and dialect capabilities.
  • Method Details

    • registerVarcharTypes

      protected void registerVarcharTypes()
      Registers sized VARCHAR types. Can be overridden for custom length defaults.
    • getAddColumnString

      public String getAddColumnString()
      Overrides:
      getAddColumnString in class org.hibernate.dialect.Dialect
    • qualifyIndexName

      public boolean qualifyIndexName()
      Overrides:
      qualifyIndexName in class org.hibernate.dialect.Dialect
    • supportsLimit

      public boolean supportsLimit()
      Overrides:
      supportsLimit in class org.hibernate.dialect.Dialect
    • getLimitString

      public String getLimitString(String sql, boolean hasOffset)
      Overrides:
      getLimitString in class org.hibernate.dialect.Dialect
    • supportsLimitOffset

      public boolean supportsLimitOffset()
      Overrides:
      supportsLimitOffset in class org.hibernate.dialect.Dialect
    • bindLimitParametersInReverseOrder

      public boolean bindLimitParametersInReverseOrder()
      Overrides:
      bindLimitParametersInReverseOrder in class org.hibernate.dialect.Dialect
    • closeQuote

      public char closeQuote()
      Overrides:
      closeQuote in class org.hibernate.dialect.Dialect
    • openQuote

      public char openQuote()
      Overrides:
      openQuote in class org.hibernate.dialect.Dialect
    • canCreateCatalog

      public boolean canCreateCatalog()
      Overrides:
      canCreateCatalog in class org.hibernate.dialect.Dialect
    • canCreateSchema

      public boolean canCreateSchema()
      Overrides:
      canCreateSchema in class org.hibernate.dialect.Dialect
    • supportsIfExistsBeforeTableName

      public boolean supportsIfExistsBeforeTableName()
      Overrides:
      supportsIfExistsBeforeTableName in class org.hibernate.dialect.Dialect
    • getSelectGUIDString

      public String getSelectGUIDString()
      Overrides:
      getSelectGUIDString in class org.hibernate.dialect.Dialect
    • smallIntegerCastTarget

      protected String smallIntegerCastTarget()
      Returns the cast target for integer types.
      Returns:
      The proper cast target type.
    • floatingPointNumberCastTarget

      protected String floatingPointNumberCastTarget()
      Returns the cast target for floating-point types.
      Returns:
      The proper cast target type.
    • fixedPointNumberCastTarget

      protected String fixedPointNumberCastTarget()
      Returns the cast target for fixed-point (NUMERIC/DECIMAL) types.
      Returns:
      The proper cast target type.
    • supportsCurrentTimestampSelection

      public boolean supportsCurrentTimestampSelection()
      Overrides:
      supportsCurrentTimestampSelection in class org.hibernate.dialect.Dialect
    • isCurrentTimestampSelectStringCallable

      public boolean isCurrentTimestampSelectStringCallable()
      Overrides:
      isCurrentTimestampSelectStringCallable in class org.hibernate.dialect.Dialect
    • getCurrentTimestampSelectString

      public String getCurrentTimestampSelectString()
      Overrides:
      getCurrentTimestampSelectString in class org.hibernate.dialect.Dialect
    • registerResultSetOutParameter

      public int registerResultSetOutParameter(CallableStatement statement, int col) throws SQLException
      Overrides:
      registerResultSetOutParameter in class org.hibernate.dialect.Dialect
      Throws:
      SQLException
    • getResultSet

      public ResultSet getResultSet(CallableStatement ps) throws SQLException
      Overrides:
      getResultSet in class org.hibernate.dialect.Dialect
      Throws:
      SQLException
    • supportsRowValueConstructorSyntax

      public boolean supportsRowValueConstructorSyntax()
      Overrides:
      supportsRowValueConstructorSyntax in class org.hibernate.dialect.Dialect
    • renderOrderByElement

      public String renderOrderByElement(String expression, String collation, String order, org.hibernate.NullPrecedence nulls)
      Overrides:
      renderOrderByElement in class org.hibernate.dialect.Dialect
    • getForUpdateString

      public String getForUpdateString()
      Overrides:
      getForUpdateString in class org.hibernate.dialect.Dialect
    • getWriteLockString

      public String getWriteLockString(int timeout)
      Overrides:
      getWriteLockString in class org.hibernate.dialect.Dialect
    • getReadLockString

      public String getReadLockString(int timeout)
      Overrides:
      getReadLockString in class org.hibernate.dialect.Dialect
    • supportsOuterJoinForUpdate

      public boolean supportsOuterJoinForUpdate()
      Overrides:
      supportsOuterJoinForUpdate in class org.hibernate.dialect.Dialect
    • supportsEmptyInList

      public boolean supportsEmptyInList()
      Overrides:
      supportsEmptyInList in class org.hibernate.dialect.Dialect
    • areStringComparisonsCaseInsensitive

      public boolean areStringComparisonsCaseInsensitive()
      Overrides:
      areStringComparisonsCaseInsensitive in class org.hibernate.dialect.Dialect
    • supportsLobValueChangePropogation

      public boolean supportsLobValueChangePropogation()
      Overrides:
      supportsLobValueChangePropogation in class org.hibernate.dialect.Dialect
    • supportsSubqueryOnMutatingTable

      public boolean supportsSubqueryOnMutatingTable()
      Overrides:
      supportsSubqueryOnMutatingTable in class org.hibernate.dialect.Dialect
    • supportsLockTimeouts

      public boolean supportsLockTimeouts()
      Overrides:
      supportsLockTimeouts in class org.hibernate.dialect.Dialect
    • buildSQLExceptionConversionDelegate

      public org.hibernate.exception.spi.SQLExceptionConversionDelegate buildSQLExceptionConversionDelegate()
      Overrides:
      buildSQLExceptionConversionDelegate in class org.hibernate.dialect.Dialect
    • getNotExpression

      public String getNotExpression(String expression)
      Overrides:
      getNotExpression in class org.hibernate.dialect.Dialect
    • isJdbcLogWarningsEnabledByDefault

      public boolean isJdbcLogWarningsEnabledByDefault()
      Overrides:
      isJdbcLogWarningsEnabledByDefault in class org.hibernate.dialect.Dialect
    • escapeLiteral

      protected String escapeLiteral(String literal)
      Overrides:
      escapeLiteral in class org.hibernate.dialect.Dialect