cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding IAspect and CAF

Former Member
0 Kudos

Hi all,

I have some queries regarding the following:

1. What is the use of IAspect?

2. For what purpose IServiceModule is used?

3. Any documentation to learn more about IAspect, IServiceModule and CAF?

Regards

Bala

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Need more information on IAspect, IServiceModule and other commonly used CAF interfaces. Some complex examples of using IAspect would be helpful.

Regards,

seema

Former Member
0 Kudos

Balachandar,

1. IAspect is an observable "live" list (java.util.List) of business objects. Typically IAspect is returned from IQuery execution, but it may be composed directly via IServiceModule.createAspect(...). Observable means that list uses mechanism of events to notify interested parties (like WD conext nodes) about addition/changing/removal of elements. "Live" means that any such changes are propagated back to middle tier at time of commit (do not remember exactly, IServiceModule.commit() AFAIK). As a result, appending new records causes insertion of records into database, removal of records causes deletion of records from database, etc.

2. IServiceModule is an entry point to functionality exposed by business service. It provides factoy methods to create all necessary queries (IQuery) and object collections (IAspect) as well as functionality to manage transactions (rollback/commit).

3. Tutorials: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1eb928a1-0601-0010-f890-be9169f0d856">Creating Composite Applications</a>, <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/88bcb7c6-0701-0010-8fb7-a6964dd3ee00">Creating a WebDynpro UI for Composite Application</a>

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Former Member
0 Kudos

Hi Valery.

Thanx for the valuable answers.

Im beginner to CAF, I have some more queries.

1.What is IServiceFacade?

2.What is difference between ModelNode and ValueNode?

3.What does ModelUtility.logExecute(IWDNode, IWDNode) method do?

4.what does these naming conventions represent?

a. AQProduct

b. PQProductFindAll

c. QQProductServiceAll

5. Any link to get more info on the attributes, methods related to IAspect, IQuery, IServiceModule, IServiceFacade etc?

Regards

Bala

Former Member
0 Kudos

Balachandar,

1. IServiceFacade is..., well, service facade -- factory that provides access to business services (IServiceModule).

2. ModelNode is "bound" to some model class. It's metainformation (typically) reflects metainformation of model class (attribute<-> property names, types etc). Elements of model node must have model objects, while any access (both read and write) to element attributes is delegated to corresponding properties of model objects. ValueNode is free-form context structure: you may declare whatever attributes you want; elements containt data on it's own and may not have associated model object.

3. Don't know, ModelUtitlity is something very-caf-specific or application-specific

4. Frankly, I do not remeber -- first seems to be naming convention for Aspect, second for Query Parameter, third one for Query itself.

5. Better re-post your question to "specialized" forums:

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com