|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.services.beans.BaseBean
com.fatwire.services.beans.ServiceBean<T>
T
- type of the entity encapsulated into this.public class ServiceBean<T>
This class is a generic abstraction for a value object returned from a service.
All services must use this bean to wrap object entities that they want to return. The response object provides the following information:
ServiceResponse
,
PermissionBean
,
Serialized FormField Summary | |
---|---|
protected T |
entity
Entity associated with this service bean. |
protected ServiceResponse |
response
Response object associated with this service bean. |
Constructor Summary | |
---|---|
ServiceBean()
|
Method Summary | |
---|---|
T |
getEntity()
Returns the entity associated with this value object. |
ServiceResponse |
getResponse()
Returns the response object associated with this value object. |
void |
setEntity(T entity)
Sets the entity associated with this value object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final ServiceResponse response
protected T entity
Constructor Detail |
---|
public ServiceBean()
Method Detail |
---|
public ServiceResponse getResponse()
ServiceResponse
public void setEntity(T entity)
Sets the entity associated with this value object.
Typically the entity is used to hold extra information beyond the response, which will be specific to the service in which it is used.
entity
- the entity to set into the value object.public T getEntity()
Returns the entity associated with this value object.
Typically the entity is used to hold extra information beyond the response, which will be specific to the service in which it is used.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |