• Post Reply Bookmark Topic Watch Topic
  • New Topic

CMP remote component interface business methods  RSS feed

 
Ramakrishnan Ponmudi
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have 2 question regd CMP
i)In CMP's component interface, is it legal to have setPrimaryKeyField(String key)?
i get remote exceptions when calling this method.
ii)is it possible to change more than one field for a entity in the database using a business method.
 
Greg Charles
Sheriff
Posts: 3014
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i) No, it is illegal to expose setters for the primary key fields to the client.

ii) Yes, of course your business methods can do whatever they want (except change the primary key!) In the implementation of these methods you would call several of the abstract setters that are implemented by the container.
 
Ramakrishnan Ponmudi
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Greg Charles, thanks for your answer.
is it mentioned in spec.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!