Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

oracle.adf.model
Interface OperationBinding

All Superinterfaces:
ControlBinding, OperationBinding

public interface OperationBinding
extends ControlBinding, OperationBinding


Method Summary
 java.util.List getErrors()
          Returns a list of errors that were raised during the last invoke operation call.
 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.
 void invoke()
          Invokes this OperationBinding, for example, as a result of a UI button being pressed.
 boolean isOperationEnabled()
          Whether the action binding is enabled or disabled.
 
Methods inherited from interface oracle.adf.model.ControlBinding
release, setListener
 
Methods inherited from interface oracle.binding.OperationBinding
execute, getOperationInfo
 
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.

Specified by:
isOperationEnabled in interface OperationBinding
Returns:
True if the action is currently enabled. False otherwise.

invoke

void invoke()
Invokes 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().


getErrors

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

Specified by:
getErrors in interface OperationBinding
Returns:
A list of Throwable that were raised during setInputValue(). It returns null if there is no error occurred.
See Also:
invoke()

getParamsMap

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

Specified by:
getParamsMap in interface OperationBinding

getResult

java.lang.Object getResult()
Description copied from interface: OperationBinding
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.

Specified by:
getResult in interface OperationBinding

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

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