com.bea.ales.management
Class ResourceQueryResult

java.lang.Object
  |
  +--com.bea.ales.management.query.MultiQueryResultImpl
        |
        +--com.bea.ales.management.ResourceQueryResult

public class ResourceQueryResult
extends com.bea.ales.management.query.MultiQueryResultImpl

This class represents the result of executing a query on resources. It provides methods to iterate over the result and find resources from the result.


Method Summary
 Resource find(java.lang.String name)
          Find the resource by the given name.
 Resource next()
          Get the next resource in the result.
 Resource previous()
          Get the previous resource in the result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

next

public Resource next()
              throws ManagementException
Get the next resource in the result.

Returns:
the next resource, or null if there is no next item.
Throws:
ManagementException - if the operation fails.

previous

public Resource previous()
                  throws ManagementException
Get the previous resource in the result.

Returns:
the previous resource in the result.
Throws:
ManagementException - if the operation fails.

find

public Resource find(java.lang.String name)
              throws ManagementException
Find the resource by the given name.

Parameters:
name - the resource name to look for
Returns:
the resource object if found, or null if the name is not found.
Throws:
ManagementException - if the operation fails.


Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.