what is BUSINESS DELIGATE PATTERN,DAO,VO,DTO?

Answers were Sorted based on User's Feedback



what is BUSINESS DELIGATE PATTERN,DAO,VO,DTO?..

Answer / yathirajulu.mettupally

DTO pattern in j2ee is... Data Transerfer Object, which
exchange the data with enterprise beans.
VO : Value Objects is nothing but java beans which consists
getter & setter methods.
DAO: Data Access Object is consisting of business-loigic &
connecting to database.
Deligate Pattern:Which is a adapter(mediator)class decouples
presentation cliet & business-logic.

Is This Answer Correct ?    19 Yes 3 No

what is BUSINESS DELIGATE PATTERN,DAO,VO,DTO?..

Answer / musarath

DAO is the Data acess Objects and VO is the value objects
which acts as a Model in MVC architecture...VO is nothing
but a bean consisting of getter and setter methods.DAO
consisits of business logic and code connecting the
database.

Not Sure of DTO and business delegate patterns.

Is This Answer Correct ?    16 Yes 5 No

what is BUSINESS DELIGATE PATTERN,DAO,VO,DTO?..

Answer / kathiravan j

Let's say I have three tables:

Employee (contains employee_id, employee_name, and dept_id)
Department (contains dept_id, dept_name, loc_id)
Location (contains loc_id, location_name)

How deep do your classes go to replicate the data?
Do you do this...

public class Employee {
private int id;
private String name;
private int deptId; // just the id

// .. implementation details
}

or do you do this

public class Employee {
private int id;
private String name;
private Department dept; // all of the data

// .. implementation details
}

and so on and so on. Class Department has the same type of
problem. Does it hold just the id for location or a
variable class Location?

Should DAOs just fill in the id (keys) so it is up to the
application using the DAOs to get the Employee class, then
the Department class, and the the Location class like:

Employee emp = EmployeDAO.getEmployee(1);
Department dept = DepartmentDAO.getDepartment(emp.getDeptId
());
Location loc = LocationDAO.getLocation(dept.getLocId());
System.out.println(emp.getEmpName() + " works in " +
loc.getLocationName());

or

Employee emp = EmployeDAO.getEmployee(1);
System.out.println(emp.getEmpName() + " works in " +
emp.getDept().getLoc().getLocationName());

Now this is just a simple example, but where do you draw
the line? It's possible to go on and on and on and cycle
back to employee... Taking another approach to the same
question...Say I have an employee_type table having values
of fulltime, parttime, etc. Whay do you store in the
employee class now? Just a String with the value of the
type or the key to the employee_type table? Is it
application dependent?

Is This Answer Correct ?    10 Yes 2 No

what is BUSINESS DELIGATE PATTERN,DAO,VO,DTO?..

Answer / kris

every thing here
http://java.sun.com/blueprints/patterns/catalog.html

Is This Answer Correct ?    5 Yes 3 No

what is BUSINESS DELIGATE PATTERN,DAO,VO,DTO?..

Answer / ravikiran(aptech mumbai)

Business Delegate:Is a design pattern used to hide the
remoteness of any component to the accessor

DAO:Is the data access object used to make the database
logic away fom the busines logic.By witing it in a seperate
method and calling in action

VO:Is the value object used in the development of enterprise
distributed applications to get and set the values

DTO:Is the data transfer object which will expose the
business methods to the jsps to call with out passing threw
the network barrier every time

Is This Answer Correct ?    8 Yes 6 No

what is BUSINESS DELIGATE PATTERN,DAO,VO,DTO?..

Answer / kathiravan j

DAO is Data Access Object where we can access object using
dataf

Is This Answer Correct ?    5 Yes 4 No

Post New Answer

More Struts Interview Questions

How the exceptions are handled in struts?

0 Answers  


Can you explain struts.properties in struts2?

0 Answers  


Hi frnds iam new to struts wen iam running helloworld application using struts iam getting the error as belwo kindly any one can solve it plzz .....thanks in advance......... Nov 18, 2009 9:27:46 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:StrutsExample1' did not find a matching property. Nov 18, 2009 9:27:46 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Struts1' did not find a matching property. Nov 18, 2009 9:27:46 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\sys tem32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOW S\System32\Wbem;C:\Program Files\Java\jdk1.5.0_18\bin; Nov 18, 2009 9:27:46 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8081 Nov 18, 2009 9:27:46 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 678 ms Nov 18, 2009 9:27:46 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Nov 18, 2009 9:27:46 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 Nov 18, 2009 9:27:46 PM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet action as unavailable Nov 18, 2009 9:27:46 PM org.apache.catalina.core.ApplicationContext log SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@ca2dce org.apache.struts.action.ActionServlet java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1233) at org.apache.catalina.core.StandardWrapper.loadServlet(Standar dWrapper.java:1095) at org.apache.catalina.core.StandardWrapper.load(StandardWrappe r.java:993) at org.apache.catalina.core.StandardContext.loadOnStartup(Stand ardContext.java:4149) at org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4458) at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443) at org.apache.catalina.core.StandardService.start(StandardServi ce.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer .java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583 ) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3) Nov 18, 2009 9:27:46 PM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /Struts1 threw load() exception java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1233) at org.apache.catalina.core.StandardWrapper.loadServlet(Standar dWrapper.java:1095) at org.apache.catalina.core.StandardWrapper.load(StandardWrappe r.java:993) at org.apache.catalina.core.StandardContext.loadOnStartup(Stand ardContext.java:4149) at org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4458) at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443) at org.apache.catalina.core.StandardService.start(StandardServi ce.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer .java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583 ) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3) Nov 18, 2009 9:27:46 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8081 Nov 18, 2009 9:27:46 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Nov 18, 2009 9:27:46 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/31 config=null Nov 18, 2009 9:27:46 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 616 ms

2 Answers  


diffrence between dispatch action and lookupdispatch action write simple web appliction (insert records in database)

8 Answers   Athena Health Care, Symphony, TCS,


I have 4 jsp pages .At last page we have a submit button when we click it it will store all jsps data which we provide will store into database. how we can make it possible

1 Answers   MNC,






What is the use of jsonvalidation?

0 Answers  


tell me struts flow ?

5 Answers   BA Continnum Solutions, Exira, Fidelity, iGate,


Are the struts tags xhtml compliant ?

0 Answers  


how to write uploadphoto in the insert update delete using struts? write code struts and jsp jdbc

1 Answers  


why do we typecast ActionForm into out plain java bean class in Action class?

5 Answers  


What are Struts properties?

2 Answers   VI eTrans,


What is struts? Explain

0 Answers  


Categories