Class Transporter

  • All Implemented Interfaces:
    Serializable

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

      • object

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

        public boolean wasOperationSuccessful
      • objectDescriptors

        protected Map objectDescriptors
    • Constructor Detail

      • Transporter

        public Transporter()
      • Transporter

        public Transporter​(Object object)
    • Method Detail

      • getException

        public 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 Object getObject()
        Returns the read object(s) from the server side.
      • getObjectDescriptors

        public 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​(RuntimeException exception)
        Set the exception associated with this Transporter
        Parameters:
        exception -
      • setObject

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

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

        public void setQuery​(DatabaseQuery query)
        Set the query associated with this transporter
        Parameters:
        query -
      • setWasOperationSuccessful

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

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