JeeWiz Home  
The Model-Driven System Builder

JeeWiz Architect's Guide
 
Contents  >   14.  'Business Object' Reference
 


14.29 Method Object

Used on
internalClass
Superclassjava:method
Subclassed By
bomCreator
businessMethod
DescriptionThis is the businessObject meta-model's 'method' which is used on an internal-class and its derivatives (like business-object).

The businessObject's method is derived from the Java 'method', enhancing it in the following ways:

  • the method and its parameters can have constraints
  • collections can be given a definition of the objects they contain
  • the implementation is moved to the implementation class (although this can be prevented by the 'implement-in-base' flag).
This method is distinct from the business method because it does not have the notion of "exposing to users".
Contained
Lists
1
Name  parameter
Type  parameter
Description  This overrides the parameter list from the Java meta-model, so we get business-object level parameters.
Previous Model  java:parameter
GenerateAllList  false
 
2
Name  exception
Type  String
Inherited from  java:interfaceMethod
 
3
Name  constraint
Type  constraint
Description  Constraints for this method.
GenerateAllList  false
Inherited
properties
name from java:interfaceMethod.name

description from java:interfaceMethod.description

template from java:interfaceMethod.template

text from java:method.text

jwpattern (base property)

returnType from java:interfaceMethod.returnType

annotation from java:interfaceMethod.annotation

access from java:interface.access

abstract from java:method.abstract

static from java:method.static

final from java:method.final

synchronized from java:method.synchronized

native from java:method.native

generateLogLevel from constraint.generateLogLevel

 14.29.1  Property 'returnElementType'
 14.29.2  Property 'implementInBase'
 14.29.3  Property 'uid'

14.29.1  Property 'returnElementType'
DescriptionThe return-element-type defines the types of objects in a collection, and is used to specify test values.

The value specified for return-element-type can be either the concrete class, a base class or an interface implemented by objects in the collection.
TypeString
Default\null

14.29.2  Property 'implementInBase'
DescriptionNormally methods at the business object level may have an implementation in the implementation class.

This can be prevented by setting the 'implement-in-base' flag: this forces the implementation into the base class and prevents the user providing an overriding implementation.

If this is true, then the implementation text - if appropriate - must be provided in the specification, and this implementation will be included in the base class.

If no implementation text is provided, then a null implementation is generated in the base class.
Typeboolean
Defaultfalse

14.29.3  Property 'uid'
DescriptionThe 'uid' is a Unique IDentifier for a methods in the business object model (and derivatives like J2EE).

The 'uid' uniquely identifies the method, even if the name or signature of the method changes.

This will normally be generated by the modelling tool; if not, it can be entered manually (but make sure it is unique!).
TypeString
 


Copyright (c) 2001-2008 New Technology/enterprise Ltd.