Class RemoteCursoredStream

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Enumeration, java.util.Iterator

    public class RemoteCursoredStream
    extends CursoredStream

    Purpose: The object is used as a wrapper to the CursoredStream object in the remote transaction (via RMI, CORBA, etc.)

    Responsibilities: Wraps a database result set cursor to provide a stream to the remote client side on the resulting selected objects.

    Since:
    TOPLink/Java 3.0
    Author:
    King (Yaoping) Wang
    See Also:
    Serialized Form
    • Field Detail

      • id

        protected java.rmi.server.ObjID id
        This is a unique id for remote cursored stream
      • isClosed

        protected boolean isClosed
        Return if the stream is closed.
      • pageSize

        protected int pageSize
        Return the cursored stream page size.
    • Constructor Detail

      • RemoteCursoredStream

        public RemoteCursoredStream​(CursoredStream serverCursoredStream)
    • Method Detail

      • getCursorSize

        protected int getCursorSize()
        INTERNAL: Retreive the size of the wrapped cursored stream.
        Overrides:
        getCursorSize in class CursoredStream
      • getID

        public java.rmi.server.ObjID getID()
        INTERNAL: Retrieve the OID of the wrapped cursored stream.
      • isClosed

        public boolean isClosed()
        INTERNAL: Return if the stream is closed.
        Overrides:
        isClosed in class Cursor