程序包 org.hibernate.id

接口 BulkInsertionCapableIdentifierGenerator

    • 方法详细资料

      • supportsBulkInsertionIdentifierGeneration

        boolean supportsBulkInsertionIdentifierGeneration()
        Given the configuration of this generator, is identifier generation as part of bulk insertion supported?

        IMPL NOTE : Mainly here to allow stuff like SequenceStyleGenerator which *can* support this based on configuration

        返回:
        true if bulk insertions are supported; false otherwise.
      • determineBulkInsertionIdentifierGenerationSelectFragment

        String determineBulkInsertionIdentifierGenerationSelectFragment​(Dialect dialect)
        Return the select expression fragment, if any, that generates the identifier values.
        参数:
        dialect - The dialect against which the insert will be performed.
        返回:
        The identifier value generation fragment (SQL). null indicates that no fragment is needed.