Class Cursor

    • Field Detail

      • GLOBAL

        public static final java.lang.String GLOBAL
        The scope of a global cursor. A global cursor is a cursor that is not specific to one tld.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Cursor

        public Cursor()
    • Method Detail

      • createVKey

        public static VKey<Cursor> createVKey​(com.googlecode.objectify.Key<Cursor> key)
      • getLastUpdateTime

        public org.joda.time.DateTime getLastUpdateTime()
      • getScope

        public java.lang.String getScope()
      • createGlobalKey

        public static com.googlecode.objectify.Key<Cursor> createGlobalKey​(Cursor.CursorType cursorType)
        Creates a unique key for a given global cursor type.
      • createGlobal

        public static Cursor createGlobal​(Cursor.CursorType cursorType,
                                          org.joda.time.DateTime cursorTime)
        Creates a new global cursor instance.
      • getCursorTimeOrStartOfTime

        public static org.joda.time.DateTime getCursorTimeOrStartOfTime​(java.util.Optional<Cursor> cursor)
        Returns the current time for a given cursor, or START_OF_TIME if the cursor is null.
      • getCursorTime

        public org.joda.time.DateTime getCursorTime()