Unit of work
A unit of work[1] is a behavioral pattern in software development. Martin Fowler has defined it as everything one does during a business transaction which can affect the database.[2] 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.[2]
A unit of work encapsulates one or more code repositories[de] and a list of actions to be performed which are necessary for the successful implementation of self-contained and consistent data change. A unit of work is also responsible for handling concurrency issues,[3][4] and can be used for transactions[3][4] and stability patterns.[de][5]
See also
- ACID (atomicity, consistency, isolation, durability), a set of properties of database transactions
- Database transaction, a unit of work within a database management system
- Equi-join, 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
- ^ Martin Fowler. Patterns of Enterprise Application Architecture. ISBN 0-321-12742-0.
- ^ a b Martin Fowler (2002), Patterns of Enterprise Application Architecture, Amsterdam: Addison-Wesley-Longman, ISBN 0-321-12742-0
- ^ a b Martin Fowler. "Unit of Work". Retrieved 2018-03-08.
- ^ a b "Unit of Work". Portland Pattern Repository. Retrieved 2018-03-08.
- ^ Michael T. Nygard (2007), Release It! Design and Deploy Production-Ready Software, O’Reilly, ISBN 978-0-9787392-1-8
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.