|
Oracle Application Development Framework Model and Business Components Java API Reference VERSION B16005-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
oracle.adf.model.adapter.dataformat.MethodDef
Defines a method of a data control.
| Field Summary | |
static java.lang.String |
RET_NAME |
| Fields inherited from interface oracle.binding.meta.OperationDefinition |
CUSTOM |
| Fields inherited from interface oracle.binding.meta.Definition |
TYPE_ACCESSOR, TYPE_ATTRIBUTE, TYPE_DATACONTROL, TYPE_DEFINITION, TYPE_DEFINITIONCONTEXT, TYPE_METHODRETURN, TYPE_NAMED, TYPE_OPERATION, TYPE_PARAMETER, TYPE_STRUCTURE, TYPE_VARIABLE |
| Constructor Summary | |
MethodDef(java.lang.String name, StructureDefinition parent)Creates a method definition. |
|
MethodDef(java.lang.String name, StructureDefinition parent, java.lang.String retType)Creates a method definition with a simple return type. |
|
| Method Summary | |
void |
addParameter(ParameterDefinition paramDef)Adds a parameter to the method. |
void |
addParameter(java.lang.String name, java.lang.String type)Adds a parameter to the method. |
java.lang.String |
getBindPath()Gets the bind path of the definition if set. |
DataControlDefinition |
getDataControlDefinition()Returns the definition of the DataControl that this method belongs to. |
Definition |
getDefinitionParent()Returns the parent of this method. |
int |
getDefinitionType()Retrieves the type of this definition. |
java.lang.String |
getFullName()Returns the full name of the definition. |
java.lang.String |
getName()Returns the name of this method. |
int |
getOperationId()Retrieves the operation id of the operation. |
DefinitionContainer |
getOperationParameters()Gets the parameters defined for the method. |
MethodReturnDefinition |
getOperationReturnType()Returns the return type of the method. |
java.util.Hashtable |
getProperties()Gets the table of properties. |
java.lang.Object |
getProperty(java.lang.String propertyName)Retrieves the value of a property with the given name. |
void |
setBindPath(java.lang.String path)Sets the bind path. |
void |
setReturnCollectionStructure(StructureDefinition def)Sets the collection structure for the return type. |
void |
setReturnName(java.lang.String name)Sets the return name. |
void |
setReturnType(MethodReturnDef def)Sets a return type. |
void |
setReturnType(java.lang.String type)Sets a return type. |
void |
setReturnType(java.lang.String type, boolean collection)Sets a return type. |
void |
setReturnType(StructureDefinition def)Sets a return type. |
void |
setReturnType(StructureDefinition def, boolean collection)Sets a return type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String RET_NAME
| Constructor Detail |
public MethodDef(java.lang.String name,
StructureDefinition parent)
name - name of the method.parent - structure definition that contains this method.
public MethodDef(java.lang.String name,
StructureDefinition parent,
java.lang.String retType)
name - name of the method.parent - structure definition that contains this method.retType - the class name of the simple return type.| Method Detail |
public void setReturnName(java.lang.String name)
public void addParameter(ParameterDefinition paramDef)
paramDef - definition of the parameter.
public void addParameter(java.lang.String name,
java.lang.String type)
name - name of the parameter.type - simple type name of the parameter.public void setReturnType(MethodReturnDef def)
def - a structure that describes a complex return type.public void setReturnType(StructureDefinition def)
def - a structure that describes a complex return type.public void setReturnType(java.lang.String type)
type - a simple java type.
public void setReturnType(StructureDefinition def,
boolean collection)
def - a structure that describes a complex return type.collection - true if the return type is a collection.
public void setReturnType(java.lang.String type,
boolean collection)
type - a simple java type.collection - true if the return type is a collection.public void setReturnCollectionStructure(StructureDefinition def)
public void setBindPath(java.lang.String path)
public java.lang.String getBindPath()
public java.lang.String getName()
getName in interface NamedDefinitionpublic Definition getDefinitionParent()
getDefinitionParent in interface NamedDefinitionStructureDefinition that contains this method.public java.lang.String getFullName()
getFullName in interface NamedDefinitionpublic java.lang.Object getProperty(java.lang.String propertyName)
NamedDefinitiongetProperty in interface NamedDefinitionpropertyName - Name of the property to be retrieved.public java.util.Hashtable getProperties()
NamedDefinitiongetProperties in interface NamedDefinitionpublic int getDefinitionType()
DefinitiongetDefinitionType in interface Definitionpublic MethodReturnDefinition getOperationReturnType()
getOperationReturnType in interface OperationDefinitionMethodReturnDefinition for the return type.public DataControlDefinition getDataControlDefinition()
getDataControlDefinition in interface OperationDefinitionDataControlDefinition of the DataControl that this method belongs to.public int getOperationId()
OperationDefinitiongetOperationId in interface OperationDefinitionpublic DefinitionContainer getOperationParameters()
getOperationParameters in interface OperationDefinitionDefinitionContainer containing the parameter definitions.ParameterDefinition, EmptyDefinitionContainer
|
Oracle Application Development Framework Model and Business Components Java API Reference VERSION B16005-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||