Package com.google.apphosting.datastore.DatastoreV3Pb

Examples of com.google.apphosting.datastore.DatastoreV3Pb.CompiledCursor


public final class Cursor implements Serializable {
  static final long serialVersionUID = 3515556366838971499L;
  private CompiledCursor compiledCursor;

  Cursor() {
    compiledCursor = new CompiledCursor();
  }
View Full Code Here


  /**
   * @return a new cursor to the location in a query sorted in the reverse direction
   * @see com.google.appengine.api.datastore.Query#reverse()
   */
  public Cursor reverse() {
    CompiledCursor clone = compiledCursor.clone();
    if (clone.hasPosition()) {
      clone.getPosition().setStartInclusive(!clone.getPosition().isStartInclusive());
    } else if (clone.hasPostfixPosition()) {
      IndexPostfix postfixPosition = clone.getPostfixPosition();
      postfixPosition.setBefore(!postfixPosition.isBefore());
    } else if (clone.hasAbsolutePosition()) {
      IndexPosition absolutePosition = clone.getAbsolutePosition();
      absolutePosition.setBefore(!absolutePosition.isBefore());
    }
    return new Cursor(clone);
  }
View Full Code Here

TOP

Related Classes of com.google.apphosting.datastore.DatastoreV3Pb.CompiledCursor

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.