OwlSoft / Owl

This repository contains the remote server system of the owl suite (Owl) and the service client (Owlet)
5 stars 0 forks source link

Reorganize Dao names and structure #2

Closed Danielku15 closed 12 years ago

Danielku15 commented 12 years ago

There's quite an inconsistent package structure and class naming in the daos

I'd recommend a structure like this

at.owlsoft.owl.dao.IDao at.owlsoft.owl.dao.DaoFactory change it from an interface to an abstract class providing a singleton to a Db4oDaoFactory instance. public DaoFactory getInstance() { ... } at.owlsoft.owl.dao.IActivityDao (as mentioned in issue #1) Upper layers should have no idea of db4o. They should only know those interfaces/base classes.

at.owlsoft.owl.dao.db4o.Db4oDaoFactory at.owlsoft.owl.dao.db4o.Db4oDaoBase Abstract base class for all Db4o Daos (currently there are two db4o base classes??) at.owlsoft.owl.dao.Db4oActivityDao (as mentioned in issue #1) at.owlsoft.owl.dao.Db4oConfigurationDao ...