Class Transporter
- 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Object
object
Object(s) read from the serverprotected Map
objectDescriptors
protected DatabaseQuery
query
boolean
wasOperationSuccessful
-
Constructor Summary
Constructors Constructor Description Transporter()
Transporter(Object object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
expand(AbstractSession session)
Deserialize the object.RuntimeException
getException()
Return the exception which this Transporter is holding.Object
getObject()
Returns the read object(s) from the server side.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(RuntimeException exception)
Set the exception associated with this Transportervoid
setObject(Object object)
Set the read object(s) from the server side.void
setObjectDescriptors(Map 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.String
toString()
boolean
wasOperationSuccessful()
Return whether the operation which caused this transporter to be returned was successful.
-
-
-
Field Detail
-
object
public Object object
Object(s) read from the server
-
wasOperationSuccessful
public boolean wasOperationSuccessful
-
objectDescriptors
protected Map objectDescriptors
-
query
protected DatabaseQuery query
-
-
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
-
-