Interface JpaConflictUpdateAction<T>

  • All Known Implementing Classes:
    SqmConflictUpdateAction

    @Incubating
    public interface JpaConflictUpdateAction<T>
    The update action that should happen on a unique constraint violation for an insert statement.
    Since:
    6.5
    • Method Detail

      • set

        <Y,​X extends Y> JpaConflictUpdateAction<T> set​(SingularAttribute<? super T,​Y> attribute,
                                                             X value)
        Update the value of the specified attribute.
        Parameters:
        attribute - attribute to be updated
        value - new value
        Returns:
        the modified update query
      • set

        <Y> JpaConflictUpdateAction<T> set​(SingularAttribute<? super T,​Y> attribute,
                                           Expression<? extends Y> value)
        Update the value of the specified attribute.
        Parameters:
        attribute - attribute to be updated
        value - new value
        Returns:
        the modified update query
      • set

        <Y,​X extends Y> JpaConflictUpdateAction<T> set​(Path<Y> attribute,
                                                             X value)
        Update the value of the specified attribute.
        Parameters:
        attribute - attribute to be updated
        value - new value
        Returns:
        the modified update query
      • set

        <Y> JpaConflictUpdateAction<T> set​(Path<Y> attribute,
                                           Expression<? extends Y> value)
        Update the value of the specified attribute.
        Parameters:
        attribute - attribute to be updated
        value - new value
        Returns:
        the modified update query
      • set

        JpaConflictUpdateAction<T> set​(String attributeName,
                                       Object value)
        Update the value of the specified attribute.
        Parameters:
        attributeName - name of the attribute to be updated
        value - new value
        Returns:
        the modified update query
      • where

        JpaConflictUpdateAction<T> where​(Expression<Boolean> restriction)
        Modify the update query to restrict the target of the update according to the specified boolean expression. Replaces the previously added restriction(s), if any.
        Parameters:
        restriction - a simple or compound boolean expression
        Returns:
        the modified update query
      • where

        JpaConflictUpdateAction<T> where​(Predicate... restrictions)
        Modify the update query to restrict the target of the update according to the conjunction of the specified restriction predicates. Replaces the previously added restriction(s), if any. If no restrictions are specified, any previously added restrictions are simply removed.
        Parameters:
        restrictions - zero or more restriction predicates
        Returns:
        the modified update query
      • getRestriction

        JpaPredicate getRestriction()
        Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.
        Returns:
        where clause predicate