Reduce database code duplication

If a naive design is followed, JDBC code rapidly becomes repetitious. JDBC is one area where applying the "Don't Repeat Yourself" guideline found in The Pragmatic Programmer (Hunt and Thomas) has large rewards. Reducing code repetition: The following topics present examples of removing code repetition when accessing the database:

See Also :
Data exception wrapping
Define app name once