Class ForUpdate

  • All Implemented Interfaces:
    HasSQL

    public final class ForUpdate
    extends java.lang.Object
    implements HasSQL
    FOR UPDATE clause.
    • Field Detail

      • DEFAULT

        public static final ForUpdate DEFAULT
        FOR UPDATE clause without additional parameters.
      • NOWAIT

        public static final ForUpdate NOWAIT
        FOR UPDATE NOWAIT clause.
      • SKIP_LOCKED

        public static final ForUpdate SKIP_LOCKED
        FOR UPDATE SKIP LOCKED clause.
    • Method Detail

      • wait

        public static ForUpdate wait​(int timeoutMillis)
        Returns FOR UPDATE WAIT N clause.
        Parameters:
        timeoutMillis - timeout in milliseconds
        Returns:
        FOR UPDATE WAIT N clause
      • getType

        public ForUpdate.Type getType()
        Returns type of FOR UPDATE clause.
        Returns:
        type of FOR UPDATE clause
      • getSQL

        public java.lang.StringBuilder getSQL​(java.lang.StringBuilder builder,
                                              int sqlFlags)
        Description copied from interface: HasSQL
        Appends the SQL statement of this object to the specified builder.
        Specified by:
        getSQL in interface HasSQL
        Parameters:
        builder - string builder
        sqlFlags - formatting flags
        Returns:
        the specified string builder