au.gov.tas.dpiwe.mr.response
Class StoreResponse

java.lang.Object
  extended by au.gov.tas.dpiwe.mr.response.Response
      extended by au.gov.tas.dpiwe.mr.response.StoreResponse
All Implemented Interfaces:
Serializable

public class StoreResponse
extends Response

The servlet's output for the store command, containing the repassivated persistent entity bean after synchronization.

Since:
Mr Architecture 1.0
Version:
1.0.0.2
Author:
Kade Hansson
See Also:
StoreCommand, Serialized Form

Field Summary
protected  boolean cloned
          Indicates whether the bean was cloned at store-time.
 
Fields inherited from class au.gov.tas.dpiwe.mr.response.Response
bean
 
Constructor Summary
StoreResponse(EntityBean bean, boolean cloned)
          Construct a new store response.
 
Method Summary
 Command getCommand(Container container)
          Returns a duplicate of the command which generated this response, or null if the operation is not supported for this response type.
 
Methods inherited from class au.gov.tas.dpiwe.mr.response.Response
getResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cloned

protected boolean cloned
Indicates whether the bean was cloned at store-time.

Constructor Detail

StoreResponse

public StoreResponse(EntityBean bean,
                     boolean cloned)
Construct a new store response.

Parameters:
bean - the bean whose state has been committed.
cloned - true if this bean was cloned before it was stored, false otherwise.
Method Detail

getCommand

public Command getCommand(Container container)
Description copied from class: Response
Returns a duplicate of the command which generated this response, or null if the operation is not supported for this response type.

Overrides:
getCommand in class Response
Returns:
a command corresponding to this response.