Class Cursor

  • All Implemented Interfaces:

    public class Cursor
    extends java.lang.Object
    implements SqlEntity
    Shared entity for date cursors. This uses a compound primary key as defined in Cursor.CursorId.
    • 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
    • Method Detail

      • create

        public static Cursor create​(Cursor.CursorType type,
                                    java.lang.String scope,
                                    org.joda.time.DateTime cursorTime)
        Constructs a Cursor object.
      • getScope

        public java.lang.String getScope()
        Returns the scope of the cursor. The scope will typically be the tld the cursor is referring to. If the cursor is a global cursor, the scope will be GLOBAL.
      • getCursorTime

        public org.joda.time.DateTime getCursorTime()
        Returns the time the cursor is set to.
      • getLastUpdateTime

        public org.joda.time.DateTime getLastUpdateTime()
        Returns the last time the cursor was updated.