Package org.adbcj.support

Examples of org.adbcj.support.AbstractDbSession$CommitRequest


  List<Key> insertAutoId(Entity... entities) throws DatastoreException {
    Mutation.Builder mutation = Mutation.newBuilder();
    for (Entity entity : entities) {
      mutation.addInsertAutoId(entity);
    }
    CommitRequest req = CommitRequest.newBuilder()
        .setMutation(mutation)
        .setMode(CommitRequest.Mode.NON_TRANSACTIONAL)
        .build();
    return datastore.commit(req).getMutationResult().getInsertAutoIdKeyList();
  }
View Full Code Here

TOP

Related Classes of org.adbcj.support.AbstractDbSession$CommitRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.