类 Teradata14Dialect

    • 构造器详细资料

      • Teradata14Dialect

        public Teradata14Dialect()
    • 方法详细资料

      • getAddColumnString

        public String getAddColumnString()
        从类复制的说明: Dialect
        The syntax used to add a column to a table (optional).
        覆盖:
        getAddColumnString 在类中 TeradataDialect
        返回:
        The "add column" fragment.
      • getTypeName

        public String getTypeName​(int code,
                                  int length,
                                  int precision,
                                  int scale)
                           throws HibernateException
        Get the name of the database type associated with the given java.sql.Types typecode.
        覆盖:
        getTypeName 在类中 TeradataDialect
        参数:
        code - java.sql.Types typecode
        length - the length or precision of the column
        precision - the precision of the column
        scale - the scale of the column
        返回:
        the database type name
        抛出:
        HibernateException
      • areStringComparisonsCaseInsensitive

        public boolean areStringComparisonsCaseInsensitive()
        从类复制的说明: Dialect
        Are string comparisons implicitly case insensitive.

        In other words, does [where 'XYZ' = 'xyz'] resolve to true?

        覆盖:
        areStringComparisonsCaseInsensitive 在类中 TeradataDialect
        返回:
        True if comparisons are case insensitive.
      • supportsExpectedLobUsagePattern

        public boolean supportsExpectedLobUsagePattern()
        从类复制的说明: Dialect
        Expected LOB usage pattern is such that I can perform an insert via prepared statement with a parameter binding for a LOB value without crazy casting to JDBC driver implementation-specific classes...

        Part of the trickiness here is the fact that this is largely driver dependent. For example, Oracle (which is notoriously bad with LOB support in their drivers historically) actually does a pretty good job with LOB support as of the 10.2.x versions of their drivers...

        覆盖:
        supportsExpectedLobUsagePattern 在类中 Dialect
        返回:
        True if normal LOB usage patterns can be used with this driver; false if driver-specific hookiness needs to be applied.
      • supportsTupleDistinctCounts

        public boolean supportsTupleDistinctCounts()
        从类复制的说明: Dialect
        Does this dialect support `count(distinct a,b)`?
        覆盖:
        supportsTupleDistinctCounts 在类中 Dialect
        返回:
        True if the database supports counting distinct tuples; false otherwise.
      • supportsExistsInSelect

        public boolean supportsExistsInSelect()
        从类复制的说明: Dialect
        Does the dialect support an exists statement in the select clause?
        覆盖:
        supportsExistsInSelect 在类中 Dialect
        返回:
        True if exists checks are allowed in the select clause; false otherwise.
      • supportsUnboundedLobLocatorMaterialization

        public boolean supportsUnboundedLobLocatorMaterialization()
        从类复制的说明: Dialect
        Is it supported to materialize a LOB locator outside the transaction in which it was created?

        Again, part of the trickiness here is the fact that this is largely driver dependent.

        NOTE: all database I have tested which Dialect.supportsExpectedLobUsagePattern() also support the ability to materialize a LOB outside the owning transaction...

        覆盖:
        supportsUnboundedLobLocatorMaterialization 在类中 Dialect
        返回:
        True if unbounded materialization is supported; false otherwise.
      • registerResultSetOutParameter

        public int registerResultSetOutParameter​(CallableStatement statement,
                                                 int col)
                                          throws SQLException
        从类复制的说明: Dialect
        Registers a parameter (either OUT, or the new REF_CURSOR param type available in Java 8) capable of returning ResultSet *by position*. Pre-Java 8, registering such ResultSet-returning parameters varied greatly across database and drivers; hence its inclusion as part of the Dialect contract.
        覆盖:
        registerResultSetOutParameter 在类中 Dialect
        参数:
        statement - The callable statement.
        col - The bind position at which to register the output param.
        返回:
        The number of (contiguous) bind positions used.
        抛出:
        SQLException - Indicates problems registering the param.
      • getWriteLockString

        public String getWriteLockString​(int timeout)
        从类复制的说明: Dialect
        Get the string to append to SELECT statements to acquire WRITE locks for this dialect. Location of the returned string is treated the same as getForUpdateString.
        覆盖:
        getWriteLockString 在类中 Dialect
        参数:
        timeout - in milliseconds, -1 for indefinite wait and 0 for no wait.
        返回:
        The appropriate LOCK clause string.
      • getReadLockString

        public String getReadLockString​(int timeout)
        从类复制的说明: Dialect
        Get the string to append to SELECT statements to acquire READ locks for this dialect. Location of the returned string is treated the same as getForUpdateString.
        覆盖:
        getReadLockString 在类中 Dialect
        参数:
        timeout - in milliseconds, -1 for indefinite wait and 0 for no wait.
        返回:
        The appropriate LOCK clause string.
      • applyLocksToSql

        public String applyLocksToSql​(String sql,
                                      LockOptions aliasedLockOptions,
                                      Map keyColumnNames)
        从类复制的说明: Dialect
        Modifies the given SQL by applying the appropriate updates for the specified lock modes and key columns.

        The behavior here is that of an ANSI SQL SELECT FOR UPDATE. This method is really intended to allow dialects which do not support SELECT FOR UPDATE to achieve this in their own fashion.

        覆盖:
        applyLocksToSql 在类中 Dialect
        参数:
        sql - the SQL string to modify
        aliasedLockOptions - lock options indexed by aliased table names.
        keyColumnNames - a map of key columns indexed by aliased table names.
        返回:
        the modified SQL string.
      • useFollowOnLocking

        public boolean useFollowOnLocking​(QueryParameters parameters)
        从类复制的说明: Dialect
        Some dialects have trouble applying pessimistic locking depending upon what other query options are specified (paging, ordering, etc). This method allows these dialects to request that locking be applied by subsequent selects.
        覆盖:
        useFollowOnLocking 在类中 Dialect
        参数:
        parameters - query parameters
        返回:
        true indicates that the dialect requests that locking be applied by subsequent select; false (the default) indicates that locking should be applied to the main SQL statement..
      • supportsLockTimeouts

        public boolean supportsLockTimeouts()
        从类复制的说明: Dialect
        Informational metadata about whether this dialect is known to support specifying timeouts for requested lock acquisitions.
        覆盖:
        supportsLockTimeouts 在类中 Dialect
        返回:
        True is this dialect supports specifying lock timeouts.