tags:

views:

29

answers:

2

The subject line says it all. Googling DAL & DAO returns only C# .NET related results.
Is there a DAL/DAO equivalent pattern in the Java world? Are there any reference implementations available?

+2  A: 

The patterns DAL and DAO are not language specific. Using them is good style in Java, too.

The Springframework provides a nice implementation of DAOs.

tangens
+2  A: 

Of course it applies to Java as well: Don't Repeat The DAO!

Have a look at Fowler's Patterns of Enterprise Application Architecture. Core J2EE Patterns also refers to DAO.

It'd be interesting to check the dates on your C#/.NET references. I'd bet that the idea started on the Java side and was adopted later by .NET. Microsoft probably had another persistence technology that was their "best practice". If I recall correctly, VB used to tie UI elements closely to columns, without an intermediate layer in-between to separate the view from the database.

duffymo