Documente Academic
Documente Profesional
Documente Cultură
05/02/2013
of JDBC or EJB interfaces. A typical DAO Design Pattern interface is shown below. public interface CustomerDAO { public void insert(Customer customer) throws CustomerDAOException; public void update(CustomerPK pk, Customer customer) throws CustomerDAOException; public void delete(CustomerPK pk) throws CustomerDAOException; public Customer[] findAll() throws CustomerDAOException; public Customer findByPrimaryKey(String email) throws CustomerDAOException; public Customer[] findByCompany(int companyId) throws CustomerDAOException; } It is important to note that DAO J2EE Design Pattern does not just apply to simple mappings of one object to one relational table, but also allows complex queries to be performed and allows for stored procedures and database views to be mapped into Java data structures. Additional useful information on Data Access Objects J2EE Design Pattern is available here; http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html http://www.corej2eepatterns.com/Patterns2ndEd/DataAccessObject.htm
05/02/2013
appropriate for an application. This approach is easy to adopt because almost all databases use a standard language for defining their structure (SQL).
Additional Resources
FireStorm/DAO is a database access tool based on the Data Access Object design pattern. Download FireStorm/DAO CodeFutures provides a free program to analyze the performance of your MySQL database. Free MySQL Performance Analysis Read about how Database Sharding helps many major companies to linearly scale their database applications. Request Database Sharding White Paper dbShards economically scales large, high transaction volume databases using Database Sharding. View Introduction to dbShards Video
Products
www.codefutures.com/j2ee-design-pattern/
3/4
05/02/2013
dbShards FireStorm/DAO
FireStorm/DAO
FireStorm/DAO Overview DAO Benefits FireStorm/DAO Features FireStorm/DAO Architecture FireStorm/DAO FAQs DAO Design Pattern DAO Tutorial DAO Download
FireStorm/DAO Editions
Product Range Architect Edition OEM Edition Free MySQL Performance Analysis Click Here DATABASE PERFORMANCE TOOLS dbShards economically scales large, high transaction volume databases using Database Sharding, dramatically improving the response times and scalability of OLTP databases, Software as a Service applications, and any database application with many concurrent users. FireStorm/DAO is a database access tool that generates Data Access Objects based on Java DAO, JDBC DAO, Hibernate DAO, and Spring DAO. Site Map | Legal | Site Search Technologies Supported: Database Sharding | Data Access Object Spring DAO Hibernate DAO | JDBC DAO | Java DAO | DAO Code Copyright 2003-2009 CodeFutures Corporation. All rights reserved. dbShards, FireStorm/DAO, FireStorm/SDO, and CodeFutures are trade marks of CodeFutures Corporation.
www.codefutures.com/j2ee-design-pattern/
4/4