Unit Of Work
   HOME

TheInfoList



OR:

A unit of work is a
behavioral pattern In software engineering, behavioral design patterns are design patterns that identify common communication patterns among objects. By doing so, these patterns increase flexibility in carrying out communication. Design patterns Examples of this t ...
in
software development Software development is the process of designing and Implementation, implementing a software solution to Computer user satisfaction, satisfy a User (computing), user. The process is more encompassing than Computer programming, programming, wri ...
. Martin Fowler has defined it as everything one does during a business transaction which can affect the
database In computing, a database is an organized collection of data or a type of data store based on the use of a database management system (DBMS), the software that interacts with end users, applications, and the database itself to capture and a ...
. When the unit of work is finished, it will provide everything that needs to be done to change the database as a result of the work. A unit of work encapsulates one or more code repositories e/sup> and a list of actions to be performed which are necessary for the successful implementation of self-contained and
consistent In deductive logic, a consistent theory is one that does not lead to a logical contradiction. A theory T is consistent if there is no formula \varphi such that both \varphi and its negation \lnot\varphi are elements of the set of consequences ...
data change. A unit of work is also responsible for handling concurrency issues, and can be used for transactions and stability patterns. eref name="releaseit">{{citation, author=Michael T. Nygard, date=2007, isbn=978-0-9787392-1-8, language=en, publisher=O’Reilly, title=Release It! Design and Deploy Production-Ready Software


See also

*
ACID An acid is a molecule or ion capable of either donating a proton (i.e. Hydron, hydrogen cation, H+), known as a Brønsted–Lowry acid–base theory, Brønsted–Lowry acid, or forming a covalent bond with an electron pair, known as a Lewis ...
(atomicity, consistency, isolation, durability), a set of properties of database transactions *
Database transaction A database transaction symbolizes a unit of work, performed within a database management system (or similar system) against a database, that is treated in a coherent and reliable way independent of other transactions. A transaction generally rep ...
, a unit of work within a database management system *
Equi-join A join clause in the Structured Query Language (SQL) combines columns from one or more tables into a new table. The operation corresponds to a join operation in relational algebra. Informally, a join stitches two tables and puts on the same row ...
, a type of join where only equal signs are used in the join predicate * Lossless join decomposition, decomposition of a relation such that a natural join of the resulting relations yields back the original relation


References

Software engineering