摘要 |
A method for decoupling object-oriented service components from application-specific business entities is provided to enable a developer to make a business logic by defining a data type of the component without depending on a business entity type of an application and using data type information. A method signature is defined by using a root type succeeded to all business entity types without using the business entity type of the application when a service method of a developing component object uses the business entity defined in a user defined data type as a parameter or a return value(S13). A component data type, which is used instead of the business entity of the component, and a converter interface type implemented by a data type converter, which is made for developing the application in the future, are defined in a service method code(S14). The code for converting a root type variable received as the parameter of the service method into the component data type by using a conversion operator is written to a first statement of the service method(S15). The service method is completed by using a variable of the component data type without using a business entity object received as the parameter(S16).
|