























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























Object-oriented databases are a type of database management system. Different database management systems provide additional functionalities. Object-oriented databases add the database functionality to object programming languages , creating more manageable code bases.
An object database is managed by an o bject- o riented d ata b ase m anagement s ystem (OODBMS). The database combines object-oriented programming concepts with relational database principles.
Objects are the basic building block and an instance of a class, where the type is either built-in or user-defined. Classes provide a schema or blueprint for objects, defining the behaviour. Methods determine the behaviour of a class. Pointers help access elements of an object database and establish relations between objects.
The main characteristic of objects in OODBMS is the possibility of user-constructed types. An object created in a project or application saves into a database as is.
Object-oriented databases directly deal with data as complete objects. All the information comes in one instantly available object package instead of multiple tables.
In contrast, the basic building blocks of relational databases, such as PostgreSQL or MySQL, are tables with actions based on logical connections between the table data.
These characteristics make object databases suitable for projects with complex data which require an object-oriented approach to programming. An object-oriented management system provides supported functionality catered to object-oriented programming where complex objects are central. This approach unifies attributes and behaviours of data into one entity.
Object-oriented databases closely relate to object-oriented programming concepts. The four main ideas of object-oriented programming are:
Polymorphism Inheritance Encapsulation Abstraction
These four attributes describe the critical characteristics of object-oriented management systems.
Polymorphism
Polymorphism is the capability of an object to take multiple forms. This ability allows the same program code to work with different data types. Both a car and a bike are
Abstraction
Abstraction is the procedure of representing only the essential data features for the needed functionality. The process selects vital information while unnecessary information stays hidden. Abstraction helps reduce the complexity of modeled data and allows reusability.
For example, there are different ways for a computer to connect to the network. A web browser needs an internet connection. However, the connection type is irrelevant. An established connection to the internet represents an abstraction , whereas the various types of connections represent different implementations of the abstraction.
There are different kinds of implementations of object databases. Most contain the following features:
Feature Description
Query Language Language to find objects and retrieve data from the database.
Transparent Persistence
Ability to use an object-oriented programming language for data manipulation.
ACID Transactions ACIDconflicting changes.^ transactions guarantee all transactions are complete without
Database Caching
Creates a partial replica of the database. Allows access to a database from program memory instead of a disk.
Recovery Disaster recovery in case of application or system failure.
GemStone/S
GemStone/S is an object database system based on Smalltalk – an object-oriented programming language influenced by Java. Developers who write applications in Smalltalk adapt easily to this database. GemStone/S integrates seamlessly with existing Smalltalk applications, improving speed and productivity.
Gemstone/S is best for high-availability projects. There are multiple options for licensing depending on the project size. The database server is available for various platforms, including Linux, Windows, macOS, Solaris, AIX, as well as Raspberry Pi.
ObjectDB
ObjectDB is a NoSQL object database for the Java programming language. Compared to other NoSQL databases, ObjectDB is ACID compliant. ObjectDB does not provide an API and requires using one of the two built-in Java database APIs:
JPA with JPA Query Language (JPQL) based on Java syntax. JDO with JDO Query Language (JDQL) based on SQL syntax.
ObjectDB includes all basic data types in Java, user-defined classes, and standard Java collections. Every object has a unique ID. The number of elements is limited only by the maximum database size (128 TB). ObjectDB is available cross-platform and the benchmark performance is exceptional.
ObjectDatabase++
ObjectDatabase++ is a real-time embeddable object database designed for server- side applications. The required external maintenance is minimal.
ObjectDatabase++ supports:
Multi-process with multi-threaded server applications. Full transaction control. Real-time recovery. C++ related languages, VB.NET as well as C#.
Object-Oriented Database Advantages and Disadvantages
Every database modeling technique has advantages and disadvantages. Before opting in for object-oriented databases, you must know the available languages in addition to the application intent.
Advantages
The main advantages are:
Complex data and a wider variety of data types compared to MySQL data types. Easy to save and retrieve data quickly. Seamless integration with object-oriented programming languages. Easier to model the advanced real world problems. Extensible with custom data types.
Disadvantages
Some disadvantages include:
Not as widely adopted as relational databases. No universal data model. Lacks theoretical foundations and standards. Does not support views. High complexity causes performance issues. An adequate security mechanism and access rights to objects do not exist.
Fundamental Concepts in the Relational Data Model
Relation
Table
Records
Degree
Properties of a Table
A table has a name that is distinct from all other tables in the database. There are no duplicate rows; each row is distinct. Entries in columns are atomic. The table does not contain repeating groups or multivalued attributes. Entries from columns are from the same domain based on their data type including: o number (numeric, integer, float, smallint,…) o character (string) o date o logical (true or false) Operations combining different data types are disallowed. Each attribute has a distinct name. The sequence of columns is insignificant. The sequence of rows is insignificant.
SQL-99: Standard Language for an ORDBMS (Object-
Relational DBMS)
SQL:1999 (also called SQL 3) was the fourth revision of the SQL database query language. It introduced many new features, many of which required clarifications in the ubsequent SQL:2003. In the meanwhile SQL:1999 is deprecated.
Used to CREATE, DROP, and ALTER the descriptions of the tables (relations) of a database
XML Database
XML database is a data persistence software system used for storing the huge amount of information in XML format. It provides a secure place to store XML documents.
You can query your stored data by using XQuery, export and serialize into desired format. XML databases are usually associated with document-oriented databases.
Types of XML databases
There are two types of XML databases.
XML-enable Database
XML-enable database works just like a relational database. It is like an extension provided for the conversion of XML documents. In this database, data is stored in table, in the form of rows and columns
Native XML Database
Native XML database is used to store large amount of data. Instead of table format, Native XML database is based on container format. You can query data by XPath expressions.
Native XML database is preferred over XML-enable database because it is highly capable to store, maintain and query XML documents.
Let's take an example of XML database:
In the above example, a table named contacts is created and holds the contacts (contact and contact2). Each one contains 3 entities name, company and phone.
Semi-Structured Data
Data can be defined as the information converted into a very economical form for translation or processing. Data, including video, images, sounds, and text, is represented as binary values that mean 0 or 1. Using these two numbers, patterns are generated to store different types of data. The smallest unit of data in a computer system is a bit, and a single value is represented using a bit. A byte is eight binary digits long.
Data can be defined as information converted into binary digital form in today's computers and transmission media. With the increase in the number of computer users, the amount of data generated also increased significantly within the last decade. So a new term is coined for such a huge volume of data that is
over time.
Along with the volume, the variety of the data getting generated is increasing rapidly. So it becomes very important to classify the types of data that is getting generated. In this era of the internet, a vast amount of data is generated. This data can be text, images, videos, documents, pdf files, videos, log files, and many more.
Semi-structured data comes in a multitude of formats, each with its own set of applications. Some are hardly structured at all, while others have a quite sophisticated hierarchical structure.
data such as name, email address, recipient, date, time, and so on, and are also organized into folders such as Inbox, Sent, Trash, and so on. Even if most email software packages allow you to find by keyword or other text, the data inside every email is unstructured. Emails can provide a plethora of data mining opportunities for enterprises to analyze customer feedback, ensure customer service is operational, and assist in creating marketing materials.