Class Transporter
- java.lang.Object
-
- org.eclipse.persistence.internal.sessions.remote.Transporter
-
- All Implemented Interfaces:
java.io.Serializable
public class Transporter extends java.lang.Object implements java.io.SerializableAs the name signifies the object is responsible for carrying read objects from the server to the client.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.ObjectobjectObject(s) read from the serverprotected java.util.MapobjectDescriptorsprotected DatabaseQueryquerybooleanwasOperationSuccessful
-
Constructor Summary
Constructors Constructor Description Transporter()Transporter(java.lang.Object object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexpand(AbstractSession session)Deserialize the object.java.lang.RuntimeExceptiongetException()Return the exception which this Transporter is holding.java.lang.ObjectgetObject()Returns the read object(s) from the server side.java.util.MapgetObjectDescriptors()Returns a hashtable of object descriptors.DatabaseQuerygetQuery()Return the query associated with this transporter.voidprepare(AbstractSession session)Serialize the object.voidsetException(java.lang.RuntimeException exception)Set the exception associated with this TransportervoidsetObject(java.lang.Object object)Set the read object(s) from the server side.voidsetObjectDescriptors(java.util.Map objectDescriptors)Get object to object descriptorvoidsetQuery(DatabaseQuery query)Set the query associated with this transportervoidsetWasOperationSuccessful(boolean wasOperationSuccessful)Set whether the operation which caused this transporter to be returned was successful.java.lang.StringtoString()booleanwasOperationSuccessful()Return whether the operation which caused this transporter to be returned was successful.
-
-
-
Field Detail
-
object
public java.lang.Object object
Object(s) read from the server
-
wasOperationSuccessful
public boolean wasOperationSuccessful
-
objectDescriptors
protected java.util.Map objectDescriptors
-
query
protected DatabaseQuery query
-
-
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:
toStringin classjava.lang.Object
-
wasOperationSuccessful
public boolean wasOperationSuccessful()
Return whether the operation which caused this transporter to be returned was successful.- Returns:
- boolean
-
-