Class DatastoreV3Impl

java.lang.Object
com.google.appengine.api.datastore.dev.DatastoreV3Impl
All Implemented Interfaces:
DatastoreV3

public class DatastoreV3Impl extends Object implements DatastoreV3
An implementation DatastoreV3 which wraps a LocalDatastoreService.

LocalDatastoreService should but cannot implement DatastoreV3 directly because the ApiProxy uses method-named based reflection to call stubs. It doesn't properly check the method signature so the single-parameter version may be called by ApiProxy instead of the expected two parameter version.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    com.google.apphosting.datastore.DatastoreV3Pb.AllocateIdsResponse
    allocateIds(com.google.apphosting.datastore.DatastoreV3Pb.AllocateIdsRequest req)
     
    com.google.apphosting.datastore.DatastoreV3Pb.Transaction
    beginTransaction(com.google.apphosting.datastore.DatastoreV3Pb.BeginTransactionRequest req)
     
    com.google.apphosting.datastore.DatastoreV3Pb.CommitResponse
    commit(com.google.apphosting.datastore.DatastoreV3Pb.Transaction req)
     
    long
    createIndex(com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex req)
     
    com.google.apphosting.datastore.DatastoreV3Pb.DeleteResponse
    delete(com.google.apphosting.datastore.DatastoreV3Pb.DeleteRequest req)
     
    void
    deleteCursor(com.google.apphosting.datastore.DatastoreV3Pb.Cursor req)
     
    void
    deleteIndex(com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex req)
     
    com.google.apphosting.datastore.DatastoreV3Pb.GetResponse
    get(com.google.apphosting.datastore.DatastoreV3Pb.GetRequest req)
     
    com.google.apphosting.datastore.DatastoreV3Pb.CompositeIndices
     
    com.google.apphosting.datastore.DatastoreV3Pb.QueryResult
    next(com.google.apphosting.datastore.DatastoreV3Pb.NextRequest req)
     
    com.google.apphosting.datastore.DatastoreV3Pb.PutResponse
    put(com.google.apphosting.datastore.DatastoreV3Pb.PutRequest req)
     
    void
    rollback(com.google.apphosting.datastore.DatastoreV3Pb.Transaction req)
     
    com.google.apphosting.datastore.DatastoreV3Pb.QueryResult
    runQuery(com.google.apphosting.datastore.DatastoreV3Pb.Query req)
     
    void
    updateIndex(com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex req)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • addActions

      public void addActions(TaskQueuePb.TaskQueueBulkAddRequest req)
      Specified by:
      addActions in interface DatastoreV3
    • allocateIds

      public com.google.apphosting.datastore.DatastoreV3Pb.AllocateIdsResponse allocateIds(com.google.apphosting.datastore.DatastoreV3Pb.AllocateIdsRequest req)
      Specified by:
      allocateIds in interface DatastoreV3
    • beginTransaction

      public com.google.apphosting.datastore.DatastoreV3Pb.Transaction beginTransaction(com.google.apphosting.datastore.DatastoreV3Pb.BeginTransactionRequest req)
      Specified by:
      beginTransaction in interface DatastoreV3
    • commit

      public com.google.apphosting.datastore.DatastoreV3Pb.CommitResponse commit(com.google.apphosting.datastore.DatastoreV3Pb.Transaction req)
      Specified by:
      commit in interface DatastoreV3
    • createIndex

      public long createIndex(com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex req)
      Specified by:
      createIndex in interface DatastoreV3
    • delete

      public com.google.apphosting.datastore.DatastoreV3Pb.DeleteResponse delete(com.google.apphosting.datastore.DatastoreV3Pb.DeleteRequest req)
      Specified by:
      delete in interface DatastoreV3
    • deleteCursor

      public void deleteCursor(com.google.apphosting.datastore.DatastoreV3Pb.Cursor req)
      Specified by:
      deleteCursor in interface DatastoreV3
    • deleteIndex

      public void deleteIndex(com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex req)
      Specified by:
      deleteIndex in interface DatastoreV3
    • get

      public com.google.apphosting.datastore.DatastoreV3Pb.GetResponse get(com.google.apphosting.datastore.DatastoreV3Pb.GetRequest req)
      Specified by:
      get in interface DatastoreV3
    • getIndices

      public com.google.apphosting.datastore.DatastoreV3Pb.CompositeIndices getIndices(String appId)
      Specified by:
      getIndices in interface DatastoreV3
    • next

      public com.google.apphosting.datastore.DatastoreV3Pb.QueryResult next(com.google.apphosting.datastore.DatastoreV3Pb.NextRequest req)
      Specified by:
      next in interface DatastoreV3
    • put

      public com.google.apphosting.datastore.DatastoreV3Pb.PutResponse put(com.google.apphosting.datastore.DatastoreV3Pb.PutRequest req)
      Specified by:
      put in interface DatastoreV3
    • rollback

      public void rollback(com.google.apphosting.datastore.DatastoreV3Pb.Transaction req)
      Specified by:
      rollback in interface DatastoreV3
    • runQuery

      public com.google.apphosting.datastore.DatastoreV3Pb.QueryResult runQuery(com.google.apphosting.datastore.DatastoreV3Pb.Query req)
      Specified by:
      runQuery in interface DatastoreV3
    • updateIndex

      public void updateIndex(com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex req)
      Specified by:
      updateIndex in interface DatastoreV3