GUI for Berkeley DB [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm using Berkeley DB Java edition, via the DPL interface.
I want to ask if someone knows about any GUI library that could make it easy to browse the data saved in the database.
I know that BDB documentation says that the metadata about the stored entities is not saved in any place and therefore only the person who have written the data can know what are the types of the classes that would be returned from there. That's why I'm searching for a library (not a complete program) that would be included to the main project and so it would know the types of my classes and would be able to show the data correctly.
p.s. I've found this bdb-browser but it seems like a dead project.
Update:
So far I've found a GUI that shows the statistics gathered for the BDB via the JMX. Here is how to use it: http://www.oracle.com/technology/documentation/berkeley-db/je/jconsole/JConsole-plugin.html
Still searching for data browser...

You could try DbVisualizer.
DbVisualizer doesn't directly support the Berkeley DB, but does provide JDBC drivers for many databases,

You can use Execute Query to connect Berkeley DB. Its is a free software. You can get the distribution from http://executequery.org

Here is an extremely simple browser. Needs to be compiled though.
https://github.com/ferruccio/bdbvu

I did a quick search and didn't find anything.
I don't think you're going to have a lot of luck looking for a data browser, because the format of the value in each database entry is going to be variable. For example, it might be primitive data, data written out by the default Java serialization, or a custom format for an instance of a class which implements Externalizable.

Related

Easy to use database for java project [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am writing a little java application that will handle (potentially) a lot of data on the user's device. The structure of my data is this:
item type 1 contains
integer variable
png/jpeg image
2 string variables
custom datatype containing two strings and a double
list of other items of this type
list of items of type 2 who contain this item
item type 2 contains
string variable
list of items of type 1
I have honestly no idea what I could use to store this data. It should just be easy to add it to the program without requiring too many additional installation steps for the user. What do you think is best?
I would go with H2 Database. Some of the features are:
Very fast, open source, JDBC API
Embedded and server modes; in-memory databases
Browser based Console application
Small footprint: around 2 MB jar file size
Nice documentation and also the creator is active here on Stackoverflow ;-) and can help!
Look here for more: https://www.h2database.com/html/main.html
For starter, you can use SQLite for simple database. But from your story, I think Google Guava suits your needs better.
https://github.com/google/guava/wiki
You may store the data to file before the app exits and load it to memory again when it runs.
Check this one for database-like memory 100% pure Java. http://hsqldb.org/
you could use sqlite as it is a file-based database, it should work great without any installation (just add a library to your project to handle it). https://www.sqlitetutorial.net/sqlite-java/
You should store the images in a folder though

Best way to create a database in a billing program for a common user [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am using java to make a billing program for a company. For my (poor) experience I think that the best way to keep a database active, which will be accessed and modified constantly, is using SQL.
But my question arises when they have to use this program in their own PC.
To use a SQL database is it necessary to the user PC install a SQL server in their PC? (bearing in mind that they want to use the program without the need of internet). Any PC with raw Windows/Ubuntu (or any similar OS) is compatible with SQL databases? If it is not compatible which method would you use to make this kind of database?
If you want each user has his own installation and database you can consider some java embedded database, for example HSQLDB or H2.
see this links:
Java Embedded Databases Comparison
http://hsqldb.org/
Simplifying - embedded database means that database server runs within your java application, so user do not have to install additional software.
You can use a self-contained SQL database such as HSQLDB.

Using a Blob to get a file from database [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I'm working on a database project using Oracle Express Edition and using JDBC. I have an excel spreadsheet within the database that I am working with (editing, updating, etc.) I recently started reading about BLOBS, so I just have a general idea about what it is, but I would like to know if it's possible to use the BLOB library in my project in order to download the updated spreadsheet and save it to my computer. I need the updated files saved, and I would prefer if I did it by code. Is this possible, by importing the BLOB class into my project, and if so, how would I go about doing that?
I assume your question relates to this class.
It is important to note that a BLOB is a "Binary Large OBject", and it's a database term used to describe storing arbitrary serialized data into a database. The Java class here allows you to more easily access and modify such an object in a database. It is not referring to the database itself - or the similar spreadsheet you're using.
Your general question (while very broad and likely to get closed) is easily answered; yes. But you'd have to implement several parts:
Download the spreadsheet
Import updates into your database
The class you cite is useful for the latter, but perhaps not the former.

How to create java desktop application database? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm developing a simple family tree application (using Jung). One of the requirement is the ability to save the graph or data that I generated.
I already looked up on Google, but most of them offer website/online kind of database. I want to be able to save the database on the desktop, and load from the same database file.
What do I need to look up for this purpose?
Look at SQLite, HSQL DB or Apache Derby. All of them should suit your recommodations, so the choice is up to you.
Or you can always store your data into file like XML or property file. It depends how big your app is going to be and what kind of data are you trying to save.
Look at embeddable databases. The good choice for you will be JavaDB http://www.oracle.com/technetwork/java/javadb/overview/index.html which is included in JDK.
SQLite
XML
Your own format to store serialized objects

Looking for cross-platform mobile database options [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I intend to write an app for Windows Phone 7, then port it to Android. Database usage is for persisting a small amount of user-generated data.
I am considering cross-platform databases because I'd prefer the code-bases to be similar, ideally the presentation-layer code would have the biggest differences.
The only cross-platform mobile database I've found so far is db4o, but deployment to the WP7 emulator is a non-starter, plus their documentation emphasized that their Silverlight/WP7 support is still a "work in progress". I'd rather get on with making my app than waiting for their house to get in order.
I may resort to using an XML file, but before I do has anyone else spotted .Net/Java mobile databases out in the wild that are worth a look?
What's wrong with SQLite?
Android supports it out of the box, and even though I'm not familiar with WP7 I think it is well supported.
Unless you are looking for a cross-platform ORM.
We have an app that is on Android, iOS, and WP7 that all use the same SQLite database. Using a SQLite database is really easy and straight forward in Android and iOS. It is NOT supported out of the box on WP7 but there are a number of guides to getting it working out there. I wrote my own guide using the Community C# SQLite Project which you can find here: http://www.wirebear.com/blog/2010/11/12/using-sqlite-in-your-wp7-app/ but there are several other options that you should be able to find relatively easily.
However, not really knowing what exactly you are trying to save, a database could be overkill. If it is relatively simple data and/or pretty small, XML or JSON are both fine options that can be stored, retrieved and parsed easily on all three platforms.
I suggest SQLite or your own xml implementation. I'm sure there's a library for almost every os out there for managing xml databases. Plus you won't resort on privative or complex open source databases. Remember KISS.

Categories