Class Transporter

  • All Implemented Interfaces:
    java.io.Serializable

    public class Transporter
    extends java.lang.Object
    implements java.io.Serializable
    As the name signifies the object is responsible for carrying read objects from the server to the client.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Transporter()  
      Transporter​(java.lang.Object object)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void expand​(AbstractSession session)
      Deserialize the object.
      java.lang.RuntimeException getException()
      Return the exception which this Transporter is holding.
      java.lang.Object getObject()
      Returns the read object(s) from the server side.
      java.util.Map getObjectDescriptors()
      Returns a hashtable of object descriptors.
      DatabaseQuery getQuery()
      Return the query associated with this transporter.
      void prepare​(AbstractSession session)
      Serialize the object.
      void setException​(java.lang.RuntimeException exception)
      Set the exception associated with this Transporter
      void setObject​(java.lang.Object object)
      Set the read object(s) from the server side.
      void setObjectDescriptors​(java.util.Map objectDescriptors)
      Get object to object descriptor
      void setQuery​(DatabaseQuery query)
      Set the query associated with this transporter
      void setWasOperationSuccessful​(boolean wasOperationSuccessful)
      Set whether the operation which caused this transporter to be returned was successful.
      java.lang.String toString()  
      boolean wasOperationSuccessful()
      Return whether the operation which caused this transporter to be returned was successful.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • object

        public java.lang.Object object
        Object(s) read from the server
      • wasOperationSuccessful

        public boolean wasOperationSuccessful
      • objectDescriptors

        protected java.util.Map objectDescriptors
    • Constructor Detail

      • Transporter

        public Transporter()
      • Transporter

        public Transporter​(java.lang.Object object)
    • Method Detail

      • getException

        public java.lang.RuntimeException getException()
        Return the exception which this Transporter is holding. An exception will only be returned when the operation that returned this transporter was not successful.
        Returns:
        java.lang.RuntimeException
      • prepare

        public void prepare​(AbstractSession session)
        Serialize the object.
      • expand

        public void expand​(AbstractSession session)
        Deserialize the object.
      • getObject

        public java.lang.Object getObject()
        Returns the read object(s) from the server side.
      • getObjectDescriptors

        public java.util.Map getObjectDescriptors()
        Returns a hashtable of object descriptors.
      • getQuery

        public DatabaseQuery getQuery()
        Return the query associated with this transporter.
        Returns:
        org.eclipse.persistence.queries.DatabaseQuery
      • setException

        public void setException​(java.lang.RuntimeException exception)
        Set the exception associated with this Transporter
        Parameters:
        java - .lang.RuntimeException
      • setObject

        public void setObject​(java.lang.Object object)
        Set the read object(s) from the server side.
      • setObjectDescriptors

        public void setObjectDescriptors​(java.util.Map objectDescriptors)
        Get object to object descriptor
      • setQuery

        public void setQuery​(DatabaseQuery query)
        Set the query associated with this transporter
        Parameters:
        org - .eclipse.persistence.queries.DatabaseQuery
      • setWasOperationSuccessful

        public void setWasOperationSuccessful​(boolean wasOperationSuccessful)
        Set whether the operation which caused this transporter to be returned was successful.
        Parameters:
        boolean -
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • wasOperationSuccessful

        public boolean wasOperationSuccessful()
        Return whether the operation which caused this transporter to be returned was successful.
        Returns:
        boolean