java/syncbase: Fix CollectionRowPattern to escape string patterns

We need to escape the strings because % and _  have special meaning for
CollectionRowPattern. It uses SQL LIKE syntax, and we use \ as an
escape character.

Similarly, we needed to rename the internal prefixes of userdata.

Change-Id: I3778d8239ad49500842e1b9090384e08c056371f
5 files changed