• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

CMP vs BMP?

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bring out your dead! Or a tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic