Module org.eclipse.persistence.core
Class Transporter
java.lang.Object
org.eclipse.persistence.internal.sessions.remote.Transporter
- All Implemented Interfaces:
Serializable
As the name signifies the object is responsible for carrying read objects from the server to the client.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionObject(s) read from the serverprotected Map
<Object, ObjectDescriptor> protected DatabaseQuery
boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
expand
(AbstractSession session) Deserialize the object.Return the exception which this Transporter is holding.Returns the read object(s) from the server side.Returns a hashtable of object descriptors.getQuery()
Return the query associated with this transporter.void
prepare
(AbstractSession session) Serialize the object.void
setException
(RuntimeException exception) Set the exception associated with this Transportervoid
Set the read object(s) from the server side.void
setObjectDescriptors
(Map<Object, ObjectDescriptor> objectDescriptors) Get object to object descriptorvoid
setQuery
(DatabaseQuery query) Set the query associated with this transportervoid
setWasOperationSuccessful
(boolean wasOperationSuccessful) Set whether the operation which caused this transporter to be returned was successful.toString()
boolean
Return whether the operation which caused this transporter to be returned was successful.
-
Field Details
-
object
Object(s) read from the server -
wasOperationSuccessful
public boolean wasOperationSuccessful -
objectDescriptors
-
query
-
-
Constructor Details
-
Transporter
public Transporter() -
Transporter
-
-
Method Details
-
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
Serialize the object. -
expand
Deserialize the object. -
getObject
Returns the read object(s) from the server side. -
getObjectDescriptors
Returns a hashtable of object descriptors. -
getQuery
Return the query associated with this transporter.- Returns:
- org.eclipse.persistence.queries.DatabaseQuery
-
setException
Set the exception associated with this Transporter -
setObject
Set the read object(s) from the server side. -
setObjectDescriptors
Get object to object descriptor -
setQuery
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
-
wasOperationSuccessful
public boolean wasOperationSuccessful()Return whether the operation which caused this transporter to be returned was successful.- Returns:
- boolean
-