Persistent state pattern

  • Authors:
  • André V. Saúde;Ricardo A. S. S. Victório;Gabriel C. A. Coutinho

  • Affiliations:
  • Universidade Federal de Lavras;Mitah Technologies Inc.;Mitah Technologies Inc.

  • Venue:
  • Proceedings of the 17th Conference on Pattern Languages of Programs
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Finite State Machines (FSM) provide a powerful way to describe dynamic behavior of systems and components. Implementations of FSM in Object-Oriented (OO) languages have been widely studied since the classical State Pattern has been introduced. Various design patterns were derived from the State Pattern, but all of the focus on object's behavior. This paper describes the Persistent State Pattern, an extension to the State Pattern for persistent data. The Persistent State Pattern integrates transaction management with classical and enterprise design patterns. It can be used with OO databases and relational databases, and it can also be incorporated by an object-relation mapping framework. We show how the Persistent State Pattern may be useful for model or event driven development.