java.lang.Object
org.eclipse.persistence.internal.sessions.remote.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:
  • Field Details

    • object

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

      public boolean wasOperationSuccessful
    • objectDescriptors

      protected Map<Object,ObjectDescriptor> objectDescriptors
    • query

      protected DatabaseQuery query
  • Constructor Details

    • Transporter

      public Transporter()
    • Transporter

      public Transporter(Object object)
  • Method Details

    • 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<Object,ObjectDescriptor> 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
    • setObject

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

      public void setObjectDescriptors(Map<Object,ObjectDescriptor> objectDescriptors)
      Get object to object descriptor
    • setQuery

      public void setQuery(DatabaseQuery query)
      Set the query associated with this transporter
    • setWasOperationSuccessful

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

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

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