com.softwareag.mdm.adaptation
Class RequestResult

java.lang.Object
  extended bycom.softwareag.mdm.adaptation.RequestResult

public final class RequestResult
extends Object

Represents the result of a Request.

The content is accessed through array-like iterations.

See Also:
Request, Concurrency and isolation levels

Method Summary
 boolean contains(Adaptation anOccurrence)
          Returns true if the occurrence specified belongs to the result of this request (even if the occurrence is obsolete).
 Adaptation getAdaptation(int anIndex)
          Returns the occurrence at the position specified in this result.
 Request getRequest()
          Returns the request that has created this result.
 int getSize()
           
 AdaptationTable getTable()
           
 boolean isEmpty()
          Returns true if result is empty (its size is 0).
 boolean isObsolete()
          Returns true if result may have changed since last computation.
 void refresh()
           
 boolean refreshIfNeeded()
          Performs a refresh of the result if it may have changed.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSize

public int getSize()

getTable

public AdaptationTable getTable()

getAdaptation

public Adaptation getAdaptation(int anIndex)
                         throws ArrayIndexOutOfBoundsException
Returns the occurrence at the position specified in this result.

Throws:
ArrayIndexOutOfBoundsException

isEmpty

public boolean isEmpty()
Returns true if result is empty (its size is 0).


isObsolete

public boolean isObsolete()
Returns true if result may have changed since last computation.

This happens if table has been updated or if request has been changed (via a set... method).

See Also:
refreshIfNeeded()

toString

public String toString()

refresh

public void refresh()
             throws IncompatibleChangeError
Throws:
IncompatibleChangeError

refreshIfNeeded

public boolean refreshIfNeeded()
                        throws IncompatibleChangeError
Performs a refresh of the result if it may have changed.

Returns:
true if a refresh has been done, false otherwise.
Throws:
IncompatibleChangeError
See Also:
isObsolete()

getRequest

public Request getRequest()
Returns the request that has created this result.


contains

public boolean contains(Adaptation anOccurrence)
Returns true if the occurrence specified belongs to the result of this request (even if the occurrence is obsolete).



(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.