Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started