Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Details: Create a simple key-value database application in Java. Adhere to the following specs: 1. Imagine that your database application will be invoked by any

Details: Create a simple key-value database application in Java. Adhere to the following specs: 1. Imagine that your database application will be invoked by any other application running on the machine. As such it should read from STDIN and write to STDOUT. If you're not sure what that means or how to implement that kind of functionality, make sure to do your research before starting this project. 2. Every time the application is invoked, it should read the argument from STDIN, perform the requested CRUD operation (either creating something, reading something, updating something, or deleting something), then write to STDOUT (if necessary) and exit. 3. This application should be stateless, and should persist all of it's data to disk in the form of XML files. 4. Your database should only read and write to a single collection / table. There is no need to support multiple collections / table. 5. All items in the collection must be stored as a key-value pair. Each key must be unique. Values can anything, including null. 6. Your application should accept the following arguments when it is invoked. (X is the name of a fictitious key, Y and Z are the names of fictitious values). create x = y read x update x = z delete x For example: create myNewKey = "MyValueGoesHere" read myNewKey > MyValueGoesHere

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

Students also viewed these Databases questions

Question

What do you mean by expectation of a discrete random variable.

Answered: 1 week ago

Question

5. Arranging for the training facility and room.

Answered: 1 week ago

Question

1. Discuss the five types of learner outcomes.

Answered: 1 week ago