|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A base interface for every application specific <ManagedEntity>KeyResult
interface.
A <ManagedEntity>KeyResult
interface must comply with the following template:
public interface <ManagedEntity>KeyResult extends ManagedEntityKeyResult { public <ManagedEntity>Key get<ManagedEntity>Key(); }
The managed entity key result encapsulates all the information necessary to indicate the result of a BEST EFFORT operation on a specific managed entity.
The managed entity key result is used in operations involving the update of multiple managed entities, in the deletion of multiple managed entities or in the creation of multiple managed entities or in bulk business operations.
The base ManagedEntityKeyResult
interface contains the managed entity key,
a boolean value indicating if the operation on the targeted managed entity was
succesful and finally the exception that would have been thrown if this operation
had been attempted on the individual Managed Entity.
Method Summary | |
java.lang.Exception |
getException()
Returns the Exception associated with an operation failure. |
ManagedEntityKey |
getManagedEntityKey()
Return the Managed Entity Key for which an operation result is reported. |
boolean |
isSuccess()
Returns the success state of the operation. |
void |
setException(java.lang.Exception ex)
Set the exception associated with an operation failure. |
void |
setManagedEntityKey(ManagedEntityKey key)
Set the key of the managed entity targeted by the operation. |
void |
setSuccess(boolean success)
Set the Success state of the operation. |
Method Detail |
public ManagedEntityKey getManagedEntityKey()
public boolean isSuccess()
public java.lang.Exception getException()
null
otherwise.public void setException(java.lang.Exception ex) throws java.lang.IllegalArgumentException
ex
-
java.lang.IllegalArgumentException
public void setManagedEntityKey(ManagedEntityKey key) throws java.lang.IllegalArgumentException
key
-
java.lang.IllegalArgumentException
public void setSuccess(boolean success) throws java.lang.IllegalArgumentException
success
-
java.lang.IllegalArgumentException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |