org.apache.jdo.impl.fostore
Class Status

java.lang.Object
  extended byorg.apache.jdo.impl.fostore.Status

class Status
extends java.lang.Object

Represents a quick summary of the result of processing a request.

Author:
Dave Bristor

Field Summary
(package private) static Status ERROR
          Request failed.
(package private) static Status FATAL
          Request failed fatally in server.
(package private) static Status LOGIN
          Could not login to database.
private static int MAX_STATUS
          Maximum status value.
private static int MIN_STATUS
          Minimum status value.
private static org.apache.jdo.util.I18NHelper msg
          I18N support.
(package private) static Status OK
          Request was successfully processed.
(package private) static Status OPTIMISTIC
          Optimistic failure.
(package private) static Status ROLLBACK
          Database rolled back due to user request.
private  int status
          Status value.
private static Status UNKNOWN
          Request is being processed.
(package private) static Status WARN
          Request succeeded, but with warnings.
 
Constructor Summary
(package private) Status(java.io.DataInput in)
          Used to 'reconstitute' a Status value from a DataInput.
private Status(int status)
          Used to create the public static final elements.
 
Method Summary
 boolean equals(java.lang.Object other)
          Compares this to another Status.
(package private)  int getLength()
          Returns length of a Status value's representation in bytes.
(package private) static void initialize(Reply reply)
          Used to initialize a reply
 java.lang.String toString()
           
(package private)  void write(java.io.DataOutput out)
          Used to externalize a Status value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

msg

private static final org.apache.jdo.util.I18NHelper msg
I18N support.


UNKNOWN

private static final Status UNKNOWN
Request is being processed. Should be used only by Reply's constructor, to write a value which will be overwritten once the requests's actual status is known.


OK

static final Status OK
Request was successfully processed.


WARN

static final Status WARN
Request succeeded, but with warnings.


ERROR

static final Status ERROR
Request failed.


FATAL

static final Status FATAL
Request failed fatally in server.


ROLLBACK

static final Status ROLLBACK
Database rolled back due to user request.


LOGIN

static final Status LOGIN
Could not login to database.


OPTIMISTIC

static final Status OPTIMISTIC
Optimistic failure. Verify, delete, or duplicate oid.


MIN_STATUS

private static final int MIN_STATUS
Minimum status value.

See Also:
Constant Field Values

MAX_STATUS

private static final int MAX_STATUS
Maximum status value.

See Also:
Constant Field Values

status

private final int status
Status value.

Constructor Detail

Status

private Status(int status)
Used to create the public static final elements.


Status

Status(java.io.DataInput in)
 throws java.io.IOException
Used to 'reconstitute' a Status value from a DataInput.

Method Detail

initialize

static void initialize(Reply reply)
                throws java.io.IOException
Used to initialize a reply

Throws:
java.io.IOException

write

void write(java.io.DataOutput out)
     throws java.io.IOException
Used to externalize a Status value.

Throws:
java.io.IOException

getLength

int getLength()
Returns length of a Status value's representation in bytes.


equals

public boolean equals(java.lang.Object other)
Compares this to another Status.


toString

public java.lang.String toString()