Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


samar
Java Objects
1 Answer(s)      3 years and 6 months ago
Posted in : Java Interview Questions


What are Data Transfer Objects and where are they used?

Advertisement
View Answers

October 30, 2010 at 3:40 PM


Data transfer object (DTO), formerly known as value objects or VO,is a design pattern used to transfer data between software application subsystems. DTOs are often used in conjunction with data access objects to retrieve data from a database.

A DTO is nothing more than a container class that exposes properties but no methods. A DTO is helpful whenever you need to group values in ad hoc structures for passing data around.

When DTOs are used, the presentation layer and the service layer share data contracts rather than classes. A data contract is essentially a neutral representation of the data that interacting components exchange. The data contract describes the data a component receives, but it is not a system-specific class, like an entity. At the end of the day, a data contract is a class, but it is more like a helper class specifically created for a particular service method.

DTOs serve dual purposes: first, they work around the problem that entity beans are not serializable; second, they implicitly define an assembly phase where all data to be used by the view are fetched and marshalled into the DTOs before returning control to the presentation tier.

Thanks.



Related Tutorials/Questions & Answers:
Java Objects
Java Objects  What are Data Transfer Objects and where are they used
Java objects
Java objects  What are the other ways to create an object other than creating as new object
Advertisements
Java Objects - Java Beginners
Java Objects  Hi I have the following question, What method in Java is used to destroy your objects. Thanks in advance
Objects in Java
Objects in Java Whatever we can see in this world all the things are a object. And all the objects are categorized in a special group. That group is termed as a class. All the objects are direct interacted with its class that mean
Active Objects - Java Beginners
Active Objects  Design a class for complex nos in java in addition to methods for basic operations on complex number. Provide a method to return the number of active objects created  Hi Friend, Try the following code
Objects - Java Beginners
of the human and should be represented by separate objects. All of your objects...) { //Declare and create a Headmain object //and Three ArmsMain objects...; } } -------------------------------- Read for more information. http://www.roseindia.net/java
Objects - Java Beginners
Objects  Hello, assist me crack this programming question. Develop a class to represents a human. The head, arms and legs should be properties of the human and should be represented by separate objects. All of your objects
Avanced objects - Java Beginners
of the human and should be represented by separate objects. All of your objects should
java question related to objects
java question related to objects  what is the output of the following code? public class objComp { Public static void main(String args[]) { Int result = 0; objComp oc= new objComp(); object o = oc; if( o==oc) result =1; if(o
Map Java Objects with Database tables
Map Java Objects with Database tables  How to map Java Objects with Database tables?   First write Java domain objects ie. beans with setter and getter methods. Then map java class to table and database columns to Java
Java arraylist of objects
In arrayList object is added by default This can be object of String, Integer or any Wrapper class Example of Java Arraylist of Objects importjava.util.ArrayList; importjava.util.List; publicclass
Mutable and immutable Objects - Java Beginners
Mutable and immutable Objects  Hi, Please tell me about Mutable and immutable Objects. What is mutable object and immutable object and how to use it correctly. Thanks   Hello, Mutable are those object which
Video Tutorial - Classes and Objects in Java
Video Tutorial on Classes and Objects in Java teaches you with example code In this video tutorial you will learn about Classes and Objects in Java... will learn what are Classes and Objects in Java program. You will also learn how
Java Data Objects
Java Data Objects       The Java Data Objects (JDO) API is a specification of Java model abstraction... to the domain model. JDO persistent objects are simple java classes therefore
java code to compare two hash map objects
java code to compare two hash map objects  java code to compare two hash map objects
Use of wrapper objects - Java Interview Questions
Use of wrapper objects  What is the role & use of Java wrapper objects?  Hi Friend, Please visit the following link: http://www.roseindia.net/java/wrapper-class/ Thanks
objects create at run time - Java Interview Questions
objects create at run time  how to create objects at runtime,other than instantiation.  Hi friend, Object : Objects are the basic run... of the rectangle class. In real-world objects share two characteristics: They have all
JDO - Java Data Objects Tutorials
JDO - Java Data Objects Tutorials   .... The Java Data Objects or JDO for short is Java's new API for interacting..., transparently transferring data between in-memory Java objects and your
Java Data Objects
JDO - Java Data Objects   ... and benefits of JDO specification. The Java Data Objects or JDO for short is Java's... Java model abstraction of persistence, developed as Java Specification Request
Objects
to explain, how to represent objects in Java using classes, methods... Objects       Objects In this section we are going to illustrate how the real life objects are the key
How do you map Java Objects with Database tables?
How do you map Java Objects with Database tables?  Hi, How do you map Java Objects with Database tables? thanks
Counting Objects Clandestinely - Java Tutorials
Counting Objects Clandestinely 2001-12-28 The Java Specialists' Newsletter [Issue 038a] - Counting Objects Clandestinely Author: Dr. Heinz M. Kabutz... Java programmers ;-). Counting Objects Clandestinely A few months ago I
Counting Objects Clandestinely - Java Tutorials
Counting Objects Clandestinely 2001-12-28 The Java Specialists' Newsletter [Issue 038b] - Counting Objects Clandestinely - Follow-up Author: Dr. Heinz M... that made me realise that a follow-up article would be appropriate: Q: Why do
Serializing Objects Into Database - java tutorials
Serializing Objects Into Database 2001-05-24 The Java Specialists' Newsletter [Issue 020] - Serializing Objects Into Database Author: Dr. Heinz M... at the SQLException. Back to the problem of writing serialized Java objects
How to print different Messge for the same NumberFormatException on different cause objects in JAVA?
How to print different Messge for the same NumberFormatException on different cause objects in JAVA?  How to print different Messge for the same NumberFormatException on different cause objects in JAVA? try { int
Create a deque linked list of Entry Objects - Java Beginners
successfully created a Square Matrix List of Entry Objects. The detail desciption and my java code solution follows: A) Description 1) The List ADT... of Objects. The Objects referred to by these List elements will be defined
Implicit objects
Implicit objects  What are the implicit objects
Data objects
Data objects   hello,, What are data objects?   hii, Sequences, Views, clusters, Tables, index and cluster are called data objects for a database
Q, 12 WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java
Q, 12 WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java  Q, 12 WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java
WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java
WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java  WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java   
WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java
WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java  WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java   
WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java
WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java  WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java   
Classes and Objects
Classes and Objects       Objects... the main() method.  A class can have more than one instances (objects), let us... techniques. A class defines the properties of  objects and methods used
classes and objects
classes and objects  Define a class named Doctor whose objects are records for a clinicâ??s doctors. Derive this class from the class Person... and Billing, whose objects are records for a clinic. Derive Patient from
Mapping Objects to XML Files using Java 5 Annotations,java newsletter,java,tutorial
Mapping Objects to XML Files using Java 5 Annotations 2004-10-17 The Java Specialists' Newsletter [Issue 097] - Mapping Objects to XML Files using Java 5..., over to Amotz... Mapping Objects to XML Files using Java 5 Annotations
can i restrict a class that it will not allows create more than two objects - Java Interview Questions
can i restrict a class that it will not allows create more than two objects  hi all, can i restrict a class that it will not allows create more than two objects can any help me please. Thaks bala k
Are objects passed by value or by reference?
Are objects passed by value or by reference?  Are objects passed by value or by reference
count objects php
count objects php  How to Count and show objects in PHP
class with in its own objects?
class with in its own objects?  Is it a good idea to declare a class with in its own objects
What are the benefits of detached objects?
What are the benefits of detached objects?   Hi, What are the benefits of detached objects? Thanks
Benefits of detached objects in hibernate
Benefits of detached objects in hibernate  What are benefits of detached objects in hibernate?   Detached objects can be passed across... Transfer Objects). You can later on re-attach the detached objects to another
Flex Objects
: #FFFFCC; } Objects are real entity conforming the template or blueprint defined by its class. The class defines the properties and behavior for its objects... objects of these classes according to the need of your application
implicit objects in jsp
implicit objects in jsp  hello, how many implicit objects in jsp???   hello, I am giving implicit object out,config,page,application,request,page context,response,session
Transient and detached objects
Transient and detached objects  Explain the difference between transient (i.e. newly instantiated) and detached objects in hibernate
Program to implement array of Objects.
Program to implement array of Objects.  Create a class it has.... Initialize an array of objects. Pass a name from the command line & search for the name in the array of objects , if it is existing print the information
JSP Implicit Objects
JSP Implicit Objects  What are implicit objects in JSP? and provide List them? Thanks in advance   Hi, In the JSP, the web container are created some method that are contain information related to a particular
Mapping objects in XML - Spring
Mapping objects in XML   Hello, I´ve read that you can define an object in the configuration XML as follows: tom Ok, but, if I want to set a different value for "name" each time I create
Implicit Objects In JSP
application purpose. A Java developer can use these objects directly... are called the Java objects that implements the Servlet and JSP API's interfaces...Implicit Objects In JSP In this section we will read about the implicit
associate functions with objects using JavaScript
associate functions with objects using JavaScript  How to associate functions with objects using JavaScript
 

 

 

DMCA.com