What is SCAFFOLD?

Posted by Anantha Narayanan On 10:48 PM No comments

Scaffold in normal English means

"scaf·fold·ing/ˈskafəldiNG/Noun:
  1. A temporary structure on the outside of a building, made of wooden planks and metal poles, used by workers while building, repairing, or...
  2. The materials used in such a structure."

In Grails and some more "Model-View-Controller (MVC for short)" frameworks this term is used to describe the automatic "Create-Read-Update-Delete" database functions that are constructed and executed at run time.

For example if you have defined a domain class in Grails, the table can be created by the framework. More, Grails also allows you to have web interface for the domain automatically for the said operations on your table:
  • CREATE (INSERT)
  • READ (QUERY)
  • UPDATE
  • DELETE
These above operations are termed as scaffolding or CRUD in Grails.

A real use of a SCAFFOLD is in prototyping your design, wherein most of these code does not make much importance to you. Once the design is frozen you may move to more secure and customized way of CRUD operations.

0 comments:

Post a Comment

Recommended Post Slide Out For Blogger