The Transfer Object pattern is use when we want to exceed data with many attributes in one attempt from client to server. Transfer object is also recognized as Value Object. Transfer Object is a simple POJO class having getter/setter methods and is serializable so that it can be transferred over the network. It does not have any behaviour. Server Side business class usually fetches data from the database and fills the POJO and send it to the client or pass it by value. For client, transfer object is read-only. User can create its own transfer object and pass it to server to update values in database in one attempt. Following are the entities of this kind of design pattern.
We are obtainable to make a Student BO as Business Object, Student as Transfer Object expressive our entities.
TransferObjectPatternDemo, our demo class, is stand-in as a user here and will use Student BO and Student to express Transfer Object Design Pattern.
Create Transfer Object.
Build Business Object.
Use the Student BO to demonstrate Transfer Object Design Pattern.
Verify the output.
Design Patterns Related Interview Questions
|Java Script Interview Questions||AJAX Interview Questions|
|Graphic Design Interview Questions||Adobe Indesign Interview Questions|
|Java-Multithreading Interview Questions||Database Design Interview Questions|
|Compiler Design Interview Questions||CSS Advanced Interview Questions|
|Java Design Patterns Interview Questions||Hardware design Interview Questions|
|Material Design Lite Interview Questions||Object Oriented Analysis and Design Interview Questions|
|Standard Template Library (STL) Interview Questions|
Design Patterns Tutorial
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.