java: Implement 23 more JNI syncbase internal functions

The functions added in this CL are:

  Database.Destroy
  Database.Exists
  Database.BeginBatch
  Database.Commit
  Database.Abort
  Database.ListCollections
  Database.GetResumeMarker
  Database.ListSyncgroups
  Database.CreateSyncgroup
  Collection.Create
  Collection.Destroy
  Collection.Exists
  Collection.DeleteRange
  Row.Put
  Row.Get
  Row.Exists
  Row.Delete
  Blessings.DebugString
  Blessings.AppBlessingFromContext
  Blessings.UserBlessingFromContext
  Util.Encode
  Util.EncodeId
  Util.NamingJoin

This CL adds idempotent "x.free" methods to types.go and changes the
"x.toFoo" functions to leave the "x" in the same state as "x.free".

This CL also fixes the cExists argument for v23_syncbase_RowExists
to be *C.v23_syncbase_Bool instead of *bool.

Change-Id: I2e9fb2d0e5af2550fe041c14f26a7570cd809757
8 files changed
tree: a0ead0d6cfd5a3f1fd6fbfa6400c0e61df110172
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.