I just started writing GAE web applications in Java, so I'm new to this. I use JDO to store data. I read a lot of online materials (forums, tutorials ...) and I see DAO everywhere, but I really don't understand what it is. Yes, a data access object, a technique ... But when someone calls the userDAO variable, what will the variable contain?
Consider the following code (from the GAE documentation):
PersistenceManager pm = PMF.get().getPersistenceManager(); Employee e = new Employee("Alfred", "Smith", new Date()); try { pm.makePersistent(e); } finally { pm.close(); }
It's really simple, it makes sense to me ... but what in this example would you call DAO?
This is probably a stupid question, but it helped me a lot.
tobik source share