|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jabb.util.bean.GenericResult
public class GenericResult
Generic bean to contain result/response information.
通用的存放返回结果的Bean。
| Field Summary | |
|---|---|
protected Object |
attachment
Any further information. |
protected String |
errorMessage
Detail of the error if there is any. 出错消息(仅针对操作不成功的情况) |
protected boolean |
successful
Whether the request was processed successfully. 是否成功处理了请求。 |
| Constructor Summary | |
|---|---|
GenericResult()
|
|
GenericResult(boolean successful)
|
|
GenericResult(boolean successful,
String errorMsg)
Constructor without the need of attachment parameter. |
|
GenericResult(boolean successful,
String errorMsg,
Object att)
Constructor. 创建一个对象实例。 |
|
| Method Summary | |
|---|---|
Object |
getAttachment()
|
String |
getErrorMessage()
|
boolean |
isSuccessful()
|
void |
setAttachment(Object attachment)
|
void |
setErrorMessage(String errorMessage)
|
void |
setSuccessful(boolean successful)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean successful
protected String errorMessage
protected Object attachment
| Constructor Detail |
|---|
public GenericResult(boolean successful,
String errorMsg,
Object att)
successful - Successful or noterrorMsg - Error messageatt - Attachement
public GenericResult(boolean successful,
String errorMsg)
successful - Successful or noterrorMsg - Error messagepublic GenericResult(boolean successful)
public GenericResult()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean isSuccessful()
public void setSuccessful(boolean successful)
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
public Object getAttachment()
public void setAttachment(Object attachment)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||