Interface InsertGeneratedIdentifierDelegate

    • Method Detail

      • prepareIdentifierGeneratingInsert

        IdentifierGeneratingInsert prepareIdentifierGeneratingInsert​(SqlStringGenerationContext context)
        Build a Insert specific to the delegate's mode of handling generated key values.
        Parameters:
        context - A context to help generate SQL strings
        Returns:
        The insert object.
      • prepareIdentifierGeneratingInsert

        default String prepareIdentifierGeneratingInsert​(String insertSQL)
        Append SQL specific to the delegate's mode of handling generated key values.
        Returns:
        The insert SQL.
      • performInsert

        Object performInsert​(String insertSQL,
                             SharedSessionContractImplementor session,
                             Binder binder)
        Perform the indicated insert SQL statement and determine the identifier value generated.
        Parameters:
        insertSQL - The INSERT statement string
        session - The session in which we are operating
        binder - The param binder
        Returns:
        The generated identifier value.