> Hi,
>
> are DAOs part of the business layer? I have to write
> some stuff for school and have to assign the classes
> involved in my project.
>
> Cheers
> Jonny
DAO is not supposed to be a business layer; however, many DAO patterns are badly implemented, people end up modifying the DAOs when the business requirements change.
To expand on that, if your business layer changes to include new requirements, it is perfectly likely that your data layer will need to change to accommodate them -there's nothing wrong with that.
Daffy seems to have it almost exactly the wrong way around (no surprise there); the job of the data layer is to protect your business layer from changes to the underlying data sink(s). It should be possible to swap Oracle for Sybase, or databases for flat files, and this will remain hidden behind your data layer. The business layer won't have to change to allow for that.
It is not the job of the data layer to anticipate every possible demand that the business layer will ever make of it. Just provide the minimum that's necessary to support your existing business layer, and enhance it as and when such a requirement arises.
Dave.