logo

Java Data Persistence Technology

   

Added on  2022-10-04

19 Pages3029 Words167 Views
Running head: JAVA DATA PERSISTENCE TECHNOLOGY
JAVA DATA PERSISTENCE TECHNOLOGY
Name of the Student
Name of the University
Author Note

1JAVA DATA PERSISTENCE TECHNOLOGY
Table of Contents
Introduction......................................................................................................................................2
Java serialization..............................................................................................................................3
Advantages:.................................................................................................................................4
Disadvantages:.............................................................................................................................4
Java Database Connectivity.............................................................................................................5
Advantages:.................................................................................................................................7
Disadvantages:.............................................................................................................................7
Java data object................................................................................................................................8
Advantages:...............................................................................................................................11
Disadvantages:...........................................................................................................................11
JDO architecture........................................................................................................................11
Java persistence APIs....................................................................................................................12
Java persistence APIs architecture.............................................................................................15
Conclusion.....................................................................................................................................15
References......................................................................................................................................17

2JAVA DATA PERSISTENCE TECHNOLOGY
Introduction
This report aims to describe the concept that is associated with the java data persistence
technology. Data persistence is mainly referred to the concept that data survives even after the
process associated with the data has ended. In order to make a data persistent, it becomes
essential to write it in non-volatile storage. In other words, it can be stated that data persistence
is the concept that is used for the purpose of defining a piece of information is saved within the
media. The data can be easily recovered from the system even after the process stops the
execution (Iordanov and VMware 2016). The main aim of data persistence within an enterprise
information system is that it ensures better protection towards the data.Different companies are
creating data persistence to make transactions and social events successful. This also supports
effective continuity throughout the enterprise. Thus it becomes essential to have proper data
persistence within the enterprise information system.
The different java persistence technology that is going to be described in the report
includes the java data objects, java database connectivity, java serialization and java persistence
APIs. Java persistence API is mainly used for the purpose of specifying the access that is offered
towards Java and ensures that proper link and persistency is maintained between the Java objects
and relational database. On the other hand, java data objects is mainly a specification that is used
for the purpose of developing to enable transparent persistence with the use of java objects. Java
Database Connectivity is the third technology of java persistence that contains an application
programming interface for providing support towards the programming language Java
(Benelallamet al. 2014).Lastly, the concept of Serialization is referred to the mechanism that used
for converting the state of an object into a byte stream. The report will focus on describing these

3JAVA DATA PERSISTENCE TECHNOLOGY
technologies briefly so that it becomes easy to understand the concept of java persistence
technologies.
Java serialization
Java serialization is mainly referred to as the mechanism that is used for the purpose of
writing the different states that are associated with an object into a byte stream. This ensures that
the object can be represented in their respective bytes, including all the objects data that contains
all the data regarding the object type. The reverse process is known as deserialization in java
where the main aim is to convert the byte stream (Goeminne et al. 2014). The actions are
performed on a platform-independent area that ensures an object can be serialized in any
platform. In order to serialize an object, the method that is being called is write object() with
method ObjectOutputStream. To serialize an object, there is a special command used that sends
it to the output stream. The command that is used is:
public final void writeObject(Object x) throws IOException
Example for Java serialization:
public class Employee implements java.io.Serializable {
public String name;
public String address;
public transient int SSN;
public int number;

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Data Persistence
|17
|3328
|342

Report on Enterprise Software Development
|14
|2362
|90

Web Enterprise Development: Design, Functionality, Maintenance, SSL and Halmark
|20
|1692
|403

Object Relational Mapping
|9
|1915
|449

Mobile Database Report 2022
|12
|2591
|36

Data System and Integration
|8
|2618
|79