• Post Reply Bookmark Topic Watch Topic
  • New Topic

CMP vs BMP?

 
Sreedhar mar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

what is the difference between BMP and CMP. How to decide, on what situation BMP and CMP are usefull(used).


bye
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CMP - it means it is container dependent. it differs container to container. we can not easily switch to another container, while using CMP. It frees the developer from most of the stuff, i.e. writing SQL in the code.

BMP - it is more towards Database dependent. it differs database to database, unless we use ANSI syntax while querying the DB. we can not easily switch to another database, even when use ANSI syntax, cuz some databases doesn't support ANSI syntax but mostly does. if we have to use more complex queries then we go for BMP. developer have to bother with query stuff.

i suggest you to read the docs, cuz there is no better substitute. I used to say this for this kind of posts.

may somebody else emphasis it more.
 
Sebastian Hennebrueder
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CMP makes all kind of select, insert, update statements for you.

In addition it may check for your foreign key relation.

BMP means manually coding of sql statements.

I prefere coding CMPs as it is faster and there is less risk of bugs in your statements.

Normally there is no need to use BMP for complex queries as you can create read-only cmps reading from very complex database views.

CMP are a little bit container dependent if you use advanced features from these containers. As most containers use special xml files for their advanced feature you may code for several containers at the same time.

You should use a tool like myeclipse, lomboz, jbuilder or any other to create your xml and interface files.

regards Sebastian
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!