|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.obsearch.OperationStatus
public class OperationStatus
This class is used to return the result of operations performed by OBSearch. The result also includes an id field that, depending on the operation returns the last inserted or deleted object.
Constructor Summary | |
---|---|
OperationStatus()
Creates a default status with status Status.Error and an id of -1. |
|
OperationStatus(Status status)
Initializes the object with the given status and an id of -1 |
|
OperationStatus(Status status,
int id)
Creates a new status object. |
Method Summary | |
---|---|
long |
getId()
Returns the id of the affected item of the operation -1 if the id does not apply. |
String |
getMsg()
|
Status |
getStatus()
|
void |
setId(long id)
Sets the id returned in the enumeration. |
void |
setMsg(String msg)
|
void |
setStatus(Status status)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperationStatus()
public OperationStatus(Status status)
status
- The status that will be used.public OperationStatus(Status status, int id)
status
- The status the object will holdid
- The id of the affected object.Method Detail |
---|
public String getMsg()
public void setMsg(String msg)
public Status getStatus()
public void setStatus(Status status)
public void setId(long id)
id
- The new id.public long getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |