com.bea.ales.management
Class ConstantQueryResult

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

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

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


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

Method Detail

next

public Constant next()
              throws ManagementException
Get the next constant in the result.

Returns:
The next Constant. If there is no next one, null will be returned.
Throws:
ManagementException - if the operation fails.

previous

public Constant previous()
                  throws ManagementException
Get the previous constant in the result.

Returns:
The previous Constant. If there is no previous one, null will be returned.
Throws:
ManagementException - if the operation fails.

find

public Constant find(java.lang.String name)
              throws ManagementException
Find a constant by name.

Parameters:
name - name to look for.
Returns:
constant which has the specified name; or null if not found.
Throws:
ManagementException - if the operation fails.


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