com.bea.ales.management
Class RoleQueryResult

java.lang.Object
  |
  +--com.bea.ales.management.RoleQueryResult

public class RoleQueryResult
extends java.lang.Object

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


Method Summary
 void close()
          Close this query result.
 Role find(Scope scope, java.lang.String name)
          Find the role by the given name in the result.
 int getSize()
           
 boolean hasNext()
          Determine whether there is next role in the result.
 boolean hasPrevious()
          Determine whether there is the previous role in the result.
 Role next()
          Get the next role in the result.
 Role previous()
          Get the previous role in the result.
 void refresh()
          Refresh the query result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

public boolean hasNext()
                throws ManagementException
Determine whether there is next role in the result.

Returns:
true if there is next role in the result, or false if not.
Throws:
ManagementException - if the operation fails.

hasPrevious

public boolean hasPrevious()
                    throws ManagementException
Determine whether there is the previous role in the result.

Returns:
true if there is the previous role in the result, or false if not.
Throws:
ManagementException - if the operation fails.

next

public Role next()
          throws ManagementException
Get the next role in the result.

Returns:
the next role in the result.
Throws:
ManagementException - if the operation fails.

previous

public Role previous()
              throws ManagementException
Get the previous role in the result.

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

find

public Role find(Scope scope,
                 java.lang.String name)
          throws ManagementException
Find the role by the given name in the result.

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

close

public void close()
           throws ManagementException
Close this query result. The query result will no longer be accessable.

Throws:
ManagementException - if operation fails.

refresh

public void refresh()
             throws ManagementException
Refresh the query result.

Throws:
ManagementException - if operation fails.

getSize

public int getSize()


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