ActiveRecord

ActiveRecord - Object-relation mapping put on rails
Download

ActiveRecord Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • Jeremy Kemper and David Heinemeier Hansson
  • Publisher web site:
  • http://ar.rubyonrails.com/
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 441 KB

ActiveRecord Tags


ActiveRecord Description

ActiveRecord - Object-relation mapping put on rails Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database tables and classes together for business objects, like Customer or Subscription, that can find, save, and destroy themselves without resorting to manual SQL.Active Record connects business objects and database tables to create a persistable domain model where logic and data are presented in one wrapping. Active Record's main contribution to the pattern is to relieve the original of two stunting problems: lack of associations and inheritance. By adding a simple domain language-like set of macros to describe the former and integrating the Single Table Inheritance pattern for the latter, Active Record narrows the gap of functionality between the data mapper and active record approach.Here are some key features of "ActiveRecord":· Automated mapping between classes and tables, attributes and columns.· Associations between objects controlled by simple meta-programming macros.· Aggregations of value objects controlled by simple meta-programming macros.· Validation rules that can differ for new or existing objects· Acts that can make records work as lists or trees:· Callbacks as methods or queues on the entire lifecycle (instantiation, saving, destroying, validating, etc).· Observers for the entire lifecycle· Inheritance hierarchies· Transaction support on both a database and object level. The latter is implemented by using Transaction::Simple· Reflections on columns, associations, and aggregations· Direct manipulation (instead of service invocation)· Database abstraction through simple adapters (~100 lines) with a shared connector· Logging support for Log4r and LoggerNOTE: ActiveRecord is licensed and provided under the MIT/X Consortium License.


ActiveRecord Related Software