Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.1.0)

E17483-02

oracle.binding
Interface OperationBinding

All Superinterfaces:
ControlBinding
All Known Subinterfaces:
OperationBinding
All Known Implementing Classes:
JUActionBinding, JUCtrlActionBinding

public interface OperationBinding
extends ControlBinding

A ControlBinding that binds an datacontrol action, including navigational actions such as "Next" and "Prev", or other actions such as "Commit" and "Rollback", to a view component.
This interface is implemented by the data binding framework, and is made available to the View components through the binding container.


Method Summary
 java.lang.Object execute()
          Executes this OperationBinding, for example, as a result of a UI button being pressed.
 java.util.List getErrors()
          Returns a list of errors that were raised during the last invoke operation call.
 OperationInfo getOperationInfo()
          Returns a description of the operation to invoke.
 java.util.Map getParamsMap()
          Retuns a map of name-value pairs of arguments and argument values to be passed to the bound operation.
 java.lang.Object getResult()
          Returns the result of invoking the operation bound by this binding (if the method has been already invoked.
 boolean isOperationEnabled()
          Whether the action binding is enabled or disabled.
 
Methods inherited from interface oracle.binding.ControlBinding
getName, getPath, release, resolvePath, setListener
 

Method Detail

isOperationEnabled

boolean isOperationEnabled()
Whether the action binding is enabled or disabled.

Returns:
True if the action is currently enabled. False otherwise.

execute

java.lang.Object execute()
Executes this OperationBinding, for example, as a result of a UI button being pressed. This should translate into invoking some operation on the underlying data control. If there are exceptions within the invoke operation, these exceptions should be accessible via getErrors().

Returns:
the result of the operation (null if the operation has no return type (void).

getErrors

java.util.List getErrors()
Returns a list of errors that were raised during the last invoke operation call.

Returns:
A list of Throwable that were raised during setInputValue(). It returns null if there is no error occurred.
See Also:
execute()

getOperationInfo

OperationInfo getOperationInfo()
Returns a description of the operation to invoke. If this operation is a built in operation, this method may return null or no MethodInfo.


getParamsMap

java.util.Map getParamsMap()
Retuns a map of name-value pairs of arguments and argument values to be passed to the bound operation.


getResult

java.lang.Object getResult()
Returns the result of invoking the operation bound by this binding (if the method has been already invoked. This method may not force the method invocation.) This method may return null in case the method has not been invoked.


Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.1.0)

E17483-02

Copyright © 1997, 2011, Oracle. All rights reserved.