June 2001
Intermediate to advanced
496 pages
9h 3m
English
Data access code is embedded directly within a class that has other unrelated responsibilities.
Extract the data access code into a new class and move the new class logically and/or physically closer to the Data Source.

Create cleaner abstractions, increase cohesion, and reduce coupling, thus improving modularity and reusability.
Identify and extract the data access logic from the controller object.
Use Extract Class [Fowler] to create a new class and move data access code from the original class into the new Data Access Object (DAO) class. ...
Read now
Unlock full access