|
| ||||||||||
| Tags: database, java, java application, java programming |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Java and database
I created a picture of the system, in order to arrange the person (patient). Until then I can create and initialize all in graph no problem it works. The trick of course is that once the program is closed, the table in memory is destroyed, so it will not re-open it and I thought making a "database" using a file! For now, I use a .txt, I have my serialized class Person for the record, however, when the food that I can restore by typing the first line. Because that's the problem I have no way of knowing how many times I have to use the method "readObject ()" because at the beginning my program does not know how many people are registered in my text file! Therefore I wonder if you have a solution, I eventually thought of using the system database, so a key like "ID" (Person 1, Person 2 ,....) where I would have an ID to each person who corresponds to its location in the table ... You know what? How can I organize patient details in my text file? |
|
#2
| ||||
| ||||
| Re: Java and database
MySql is a free RDBMS and efficient especially for simple databases. The program runs as a server providing multi-user access to a number of databases. You can even find a lot of tutorials and faqs about the DBMS/MySQL. MySQL works on many different system platforms, including BSDi, FreeBSD, Linux, Mac OS X, NetBSD, Novell NetWare, OpenBSD, OpenSolaris, IRIX, Solaris, Symbian, SunOS, and Microsoft Windows. |
|
#3
| |||
| |||
| Re: Java and database
There is a database management system dedicated to Java (and written in Java). It is not an independent server, but a library that it simply adds to his project that uses readily as any implementation of JDBC. This DBMS is called HSQLDB (HyperSQL DataBase). It supports nearly full ANSI-92 SQL (BNF tree format) plus many SQL:2008 enhancements. Additionally, it includes tools such as a command line SQL tool and GUI query tools. |
|
#4
| |||
| |||
| Re: Java and database
Okay I'll see it! But I do not want an external database, I want here to stay on the pc. Clearly this should work without an internet connection, then, is that these solutions meet this criteria? And I suppose that this database will save a file to me to place, so surely at the root, but if I ever want to encrypt, what algo should I use? |
|
#5
| ||||
| ||||
| Re: Java and database
Yes the two solutions meet these criteria, you do not need an Internet connection. Why do you want to encrypt the file from database? |
|
#6
| |||
| |||
| Re: Java and database Quote:
H2 features: * Very fast, open source, JDBC API * Embedded and server modes; in-memory databases * Browser based Console application * Small footprint: around 1 MB jar file size |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Java and database" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Implement Simple Database using BST in Java | maxmidg412 | Software Development | 2 | 31-07-2011 03:22 AM |
| Database generator for java | Miles Runner | Software Development | 5 | 06-03-2010 12:56 PM |
| Java in oracle 9i database | Gerri | Software Development | 4 | 03-02-2010 07:35 PM |
| Connection of Java applications to Database | Gerri | Software Development | 3 | 27-01-2010 01:58 PM |
| Java Code for College Database | Basaam | Software Development | 2 | 23-05-2009 10:33 AM |