Separate Data Access Code

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

For further information see page 113 of Core J2EE Patterns by Alur, Crupi, and Malks

| Refactoring Home | | Alphabetical List |