Skip navigation links
oracle.dss.util
Class Operation
java.lang.Object
oracle.dss.util.Operation
- All Implemented Interfaces:
- java.io.Serializable
-
public class Operation
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
- For internal use only. Application developers should not use this
- Base class representing a wrapped API-unit of operation
Constructor Summary |
Operation(java.lang.String n, Parameter[] p, boolean gc)
Construct an operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
protected java.lang.String name
parameters
protected Parameter[] parameters
m_generatesCursor
protected boolean m_generatesCursor
Operation
public Operation(java.lang.String n,
Parameter[] p,
boolean gc)
- Construct an operation.
- Parameters:
n
- exact name of the API method
p
- array of parameters for the operation's method
gc
- true
if the given operation can generate a cursor when it finishes
execute
public java.lang.Object execute(java.lang.Object executionTarget)
throws java.lang.reflect.InvocationTargetException
- Execute the operation on a given implementing object.
-
- Parameters:
executionTarget
- the object on which to execute the method. It is the caller's responsibility to ensure that executionTarget implements the stored method.
- Returns:
- return value of called operation method, if any
- Throws:
java.lang.reflect.InvocationTargetException
- just a way of passing on any random exception thrown by the method
setParameters
public void setParameters(Parameter[] p)
-
- For internal use only. Application developers should not use this
setName
public void setName(java.lang.String n)
-
- For internal use only. Application developers should not use this
getName
public java.lang.String getName()
-
- For internal use only. Application developers should not use this
getParameters
public Parameter[] getParameters()
-
- For internal use only. Application developers should not use this
setGeneratesCursor
public void setGeneratesCursor(boolean generatesCursor)
-
- For internal use only. Application developers should not use this
generatesCursor
public boolean generatesCursor()
- Return whether or not the operation generates a cursor.
-
- Returns:
true
if operation normally generates a cursor
toString
public java.lang.String toString()
- Override.
-
- Overrides:
toString
in class java.lang.Object
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.