oop « dao « Java Database Q&A

Home
Java Database Q&A
1.Blob
2.cassandra
3.column
4.Connection
5.Cursor
6.dao
7.Data Type
8.Database
9.Database Product
10.DataSource
11.Date
12.db2
13.derby
14.Development
15.Driver
16.Exception
17.file
18.hadoop
19.hbase
20.hsqldb
21.ibatis
22.JDBC
23.memcached
24.mongodb
25.MS Access
26.mysql
27.ODBC
28.Operation
29.oracle
30.postgresql
31.Record
32.result
33.Resultset
34.Schema
35.SQL
36.sqlite
37.SQLserver
38.Statement
39.stored procedure
40.sybase
41.Table
42.Transaction
43.Trigger
Java Database Q&A » dao » oop 

1. Should web app domain objects containing collections have "add" and "remove" item methods?    stackoverflow.com

Let's say I have a Person class that has a collection of Dog objects. The relationship is bidirectional.

public class Person {
  private List<Dog> dogs;
  // getter and setter ...

2. Hiding DAOs behind service, why?    stackoverflow.com

Upon reviewing a bunch of MVC style web applications, I'm noticing that it's common to have a very large service interface sitting in front of the business layer. The implementation ...

3. Is this how you go about calling your Dao's in your service layer?    stackoverflow.com

In your service layer, say you have a method that does XX, is this how you would reference your Dao classes?

public class SomeServiceImpl implements SomeService

    public void DoSomething(int ...

4. Creating a Publish-Subscribe Pattern to integrate to the DAO pattern    stackoverflow.com

Based on the question (http://stackoverflow.com/questions/2068425/how-to-create-a-client-notification-service-for-a-webapp-or-should-i-use-an-obser) I will like to know. I have a fully implemented DAO with Entity beans containing only getters and setters method. Each entity is mapped to an ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.