|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
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
public class MethodDef
Defines a method of a data control.
Field Summary | |
---|---|
protected java.util.Hashtable |
mProperties
|
static java.lang.String |
RET_NAME
|
static java.lang.String |
SHOW_PARAMETERS
|
Fields inherited from interface oracle.binding.meta.OperationDefinition |
---|
CUSTOM |
Fields inherited from interface oracle.binding.meta.Definition |
---|
TYPE_ACCESSOR, TYPE_ATTRIBUTE, TYPE_CRITERIA, TYPE_CRITERIA_ITEM, TYPE_CRITERIA_OPERATOR, TYPE_CRITERIA_ROW, TYPE_DATACONTROL, TYPE_DEFINITION, TYPE_DEFINITIONCONTEXT, TYPE_NAMED, TYPE_OPERATION, TYPE_OPERATIONRETURN, 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,
boolean isConstructor)
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. |
OperationReturnDefinition |
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. |
boolean |
isConstructor()
|
boolean |
isStatic()
|
void |
setBindPath(java.lang.String path)
Sets the bind path. |
void |
setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
|
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(java.lang.String javaType,
java.lang.String elementName,
java.lang.String elementJavaType)
Sets a return type of scalar collection 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
public static final java.lang.String SHOW_PARAMETERS
protected java.util.Hashtable mProperties
Constructor Detail |
---|
public MethodDef(java.lang.String name, StructureDefinition parent, boolean isConstructor)
name
- name of the method.parent
- structure definition that contains this method.isConstructor
- boolean flag to indicate whether this operation is
a constructor.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 setReturnType(java.lang.String javaType, java.lang.String elementName, java.lang.String elementJavaType)
javaType
- java type of the parameter.elementName
- the name of element in the collection.elementJavaType
- java type of each collection element.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 NamedDefinition
public Definition getDefinitionParent()
getDefinitionParent
in interface NamedDefinition
public java.lang.String getFullName()
getFullName
in interface NamedDefinition
public java.lang.Object getProperty(java.lang.String propertyName)
NamedDefinition
getProperty
in interface NamedDefinition
propertyName
- Name of the property to be retrieved.
public java.util.Hashtable getProperties()
NamedDefinition
getProperties
in interface NamedDefinition
public void setProperty(java.lang.String propertyName, java.lang.Object propertyValue)
public int getDefinitionType()
Definition
getDefinitionType
in interface Definition
public OperationReturnDefinition getOperationReturnType()
getOperationReturnType
in interface OperationDefinition
OperationReturnDefinition
for the return type.public DataControlDefinition getDataControlDefinition()
getDataControlDefinition
in interface OperationDefinition
DataControlDefinition
of the DataControl that this
method belongs to.public int getOperationId()
OperationDefinition
getOperationId
in interface OperationDefinition
public DefinitionContainer getOperationParameters()
getOperationParameters
in interface OperationDefinition
DefinitionContainer
containing the parameter
definitions.ParameterDefinition
,
EmptyDefinitionContainer
public boolean isStatic()
isStatic
in interface OperationDefinition
public boolean isConstructor()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |