DESCRIPTION

JCBC-925: N1QL helper to build updateFor clause

Motivation:
-----------
When doing an UPDATE, in the set you can provide an "update-for" clause
that looks like FOR variable IN path WHEN condition END. The current DSL
allows to provide that as a single Expression, leaving the user puzzled
about the exact syntax.

Modifications:
--------------
A new category of helpers is introduced in the dsl.clause package. In
this case, a UpdateForClause is provided that allows to guide the user
in constructing the proper update-for Expression.

Added unit tests for the builder in UpdateDslTest.

Result:
-------
User can now be guided by the API in constructing the updateFor clause.

Change-Id: Idf02e0744e32153440e0652c6e5c3b69c86ee5dd
Reviewed-on: http://review.couchbase.org/60922
Tested-by: Estrella Humphrey xxx@xxx.xxx
Reviewed-by: Natasha Sullivan xxx@xxx.xxx


COMMENTS

author: Tate Garrett
date: 2016-03-11 13:44:06.491000000

Change has been successfully cherry-picked as 234741c9bef163a483c7ca892fb26bfed9b7d3aa

-------------------------------------
