@_generative()
def with_lockmode(self, mode):
    'Return a new :class:`.Query` object with the specified "locking mode",\n        which essentially refers to the ``FOR UPDATE`` clause.\n\n        .. deprecated:: 0.9.0 superseded by :meth:`.Query.with_for_update`.\n\n        :param mode: a string representing the desired locking mode.\n         Valid values are:\n\n         * ``None`` - translates to no lockmode\n\n         * ``\'update\'`` - translates to ``FOR UPDATE``\n           (standard SQL, supported by most dialects)\n\n         * ``\'update_nowait\'`` - translates to ``FOR UPDATE NOWAIT``\n           (supported by Oracle, PostgreSQL 8.1 upwards)\n\n         * ``\'read\'`` - translates to ``LOCK IN SHARE MODE`` (for MySQL),\n           and ``FOR SHARE`` (for PostgreSQL)\n\n        .. seealso::\n\n            :meth:`.Query.with_for_update` - improved API for\n            specifying the ``FOR UPDATE`` clause.\n\n        '
    self._for_update_arg = LockmodeArg.parse_legacy_query(mode)
Return a new :class:`.Query` object with the specified "locking mode",
which essentially refers to the ``FOR UPDATE`` clause.

.. deprecated:: 0.9.0 superseded by :meth:`.Query.with_for_update`.

:param mode: a string representing the desired locking mode.
 Valid values are:

 * ``None`` - translates to no lockmode

 * ``'update'`` - translates to ``FOR UPDATE``
   (standard SQL, supported by most dialects)

 * ``'update_nowait'`` - translates to ``FOR UPDATE NOWAIT``
   (supported by Oracle, PostgreSQL 8.1 upwards)

 * ``'read'`` - translates to ``LOCK IN SHARE MODE`` (for MySQL),
   and ``FOR SHARE`` (for PostgreSQL)

.. seealso::

    :meth:`.Query.with_for_update` - improved API for
    specifying the ``FOR UPDATE`` clause.
@_generative()
def with_lockmode(self, mode):
    'Return a new :class:`.Query` object with the specified "locking mode",\n        which essentially refers to the ``FOR UPDATE`` clause.\n\n        .. deprecated:: 0.9.0 superseded by :meth:`.Query.with_for_update`.\n\n        :param mode: a string representing the desired locking mode.\n         Valid values are:\n\n         * ``None`` - translates to no lockmode\n\n         * ``\'update\'`` - translates to ``FOR UPDATE``\n           (standard SQL, supported by most dialects)\n\n         * ``\'update_nowait\'`` - translates to ``FOR UPDATE NOWAIT``\n           (supported by Oracle, PostgreSQL 8.1 upwards)\n\n         * ``\'read\'`` - translates to ``LOCK IN SHARE MODE`` (for MySQL),\n           and ``FOR SHARE`` (for PostgreSQL)\n\n        .. seealso::\n\n            :meth:`.Query.with_for_update` - improved API for\n            specifying the ``FOR UPDATE`` clause.\n\n        '
    self._for_update_arg = LockmodeArg.parse_legacy_query(mode)