No database to save data? How to realize the

Random name system the teacher wants us to do a class time. .
You can save each database record. .
I want to, can not database? Without a server, my software not networking, direct local records. .
How to save every time I call records.?
Solving?

Started by Megan at February 06, 2016 - 7:21 AM

Save the file.

Posted by Marcy at February 12, 2016 - 7:35 AM

XML files, txt files etc.. As long as good format can be.

Posted by Dick at February 19, 2016 - 7:46 AM

Can you speak with point ah,,, there are 99 people in our class, looks like a bit more.

Posted by Megan at March 04, 2016 - 8:43 AM

You can use the Java properties file, storing the data in the form of key / value
Key is the name of the students, the value can be 0/1 (delegates should come to class)
The sign in when it is according to the specific key, changing the specific value

so, How to use your own www.google.ca

Posted by Abbott at March 06, 2016 - 9:13 AM

Use the db4o database, very simple. Compared to RDBMS, XML is not a simple tiny but adventitious quantity

Posted by Wordsworth at March 15, 2016 - 9:18 AM

XML on the line, on third party analysis package jar. They defined format. You can.

Posted by Maureen at March 19, 2016 - 10:01 AM

Baidu look, roll call every time after the close, the second open software, data can also be in it?

Posted by Megan at March 29, 2016 - 10:26 AM

Save the data, you can see

Posted by Wordsworth at April 03, 2016 - 10:41 AM

Looks like the LZ to the data storage is not very familiar with the

Posted by Ashley at April 06, 2016 - 11:02 AM

It is not very familiar with.. There is no teach in detail a bit... Then go to Baidu. .

Posted by Megan at April 14, 2016 - 12:02 PM

The data in the file, as long as you keep natural still.
Java properties files can be solved, the value to set all 1 (all in)
Point to the who, not to change to 0, not to modify. Closed to all set to 1

But the landlord should be found, thus could not record attendance records (who do not know the day of absence)
Although Java properties files, XML files can be resolved
But you might consider the use of database records, maybe the teacher is just let you know Java database operation.

Posted by Abbott at April 24, 2016 - 12:32 PM

The database, this software is not practical? The software on the teacher's mobile phone, the corresponding database where? To get a server?

Posted by Megan at April 29, 2016 - 1:08 PM

XML file a dozens of M data, reading speed was faster.
Or, you can understand the following Java Derby database. Written in pure Java, only need to import the derby.jar package can be. Do not need to install the database, very convenient.

Posted by Dick at May 07, 2016 - 1:11 PM

JAXB yes, this is JDK own, recommended by the

Posted by Sandra at May 22, 2016 - 1:49 PM

Landlord Hello, database, there are many kinds of Oh, access operation is relatively simple, if you don't want to save in the database inside it, you can choose to save in text form. Not with the increase in the number of names, don't think a database, or more trouble. Personally feel that after go out to work is to grasp how the database operation, if not now take a project, program, application, preparing for the future.

Posted by Thomas at May 26, 2016 - 2:17 PM

Save it with the XML or txt file. IO flow

Posted by Nikita at June 09, 2016 - 2:53 PM

Comparison of various file database
Sqlite: The old file database, completely free (public domain), easy to use, without any configuration, download the source code to be compiled into the library or compiled directly into the application can be (250K, C code). Support the transaction mechanism and BLOB data types.
Berkeley DB: The more the old file database, the most stable database, applications can replace most of the traditional client/server database; support XML (at the expense of 30M hard disk space). Disadvantage is the allocation and use of more complex, not suitable for small projects.
Firebird: Compared with SQLite similar, with C# support. Some of the released version of build cannot, for a long time did not concern.
Access: Generally do not consider.
XML database file.
dat, TXT text file.
Formatted text.
A variety of audio and video files, etc.
=======================
SQLite JSON XML can be

Posted by Blithe at June 20, 2016 - 3:14 PM

Using the properties file or TXT are feasible. But still feel better properties file.

Posted by Earl at July 02, 2016 - 3:44 PM

You can use the CSV, Java has many control CSV Library.

Posted by Wordsworth at July 07, 2016 - 4:35 PM

xml
json
txt
Can, at present Json is also very good, try it.

Posted by Bancroft at November 16, 2016 - 3:40 AM

Instead of the database file
Txt or XML, or is this way, in fact, set the database itself is a pile of documents.
The properties file should be relatively easier.
Read and write files, read data written under XML is from the Internet to find Java

Posted by Ricky at November 19, 2016 - 4:12 AM

Write to JSON xml. Wait.

Posted by Angelina at November 22, 2016 - 4:47 AM

Serialization deserialization, also good ah

Posted by Ronald at December 02, 2016 - 5:33 AM

Why so exclusive database, database is not very good?
If you do not want to rely on the server to run, you can use the file for the database, SQLite or the original point of access can be.

Posted by Edward at December 03, 2016 - 5:51 AM

IO read and write, save the file

Posted by Bernard at December 16, 2016 - 6:09 AM

On the direct use of access on the line. Don't reengineering carriage.

Posted by Valentine at December 31, 2016 - 6:26 AM

Recommend the use of txt to all students with student id = name situation storage, each named random several number, use properties to read the name, in the establishment of a file name for the txt file with the name of the date, the situation of =true/false memory, at the end of the month to read all the documents.

Posted by Boyce at January 03, 2017 - 6:29 AM

Premise: if no database, originally is a database to save data, will be replaced with the corresponding file
1)Student information table ----> student_ class name.Xml
For example, called the student_1304.xml, you need XML format, read and write XML, use Dom4j
<root>
  <classInfo>
      <studentInfo>
         <name>Tom</name>
         <age>21</age>
      </studentInfo>
     <studentInfo>
         <name>Tom</name>
         <age>21</age>
      </studentInfo>
      <studentInfo>
         <name>Tom</name>
         <age>21</age>
      </studentInfo>
  </classInfo>
</root>

If no XML, the simplest is to use TXT text file
student_1304.txt, Txt in a row represents a student information
#The serial number, name, student number, class, gender, telephone
0001,1304001,1304,Tom,male,1373430000
0002,1304002,1304,Lucy,female, 1374444
Using the IO, read the TXT.
Either way, the read information can be saved as List or Map, the List or Map is stored in the memory (that is, to build a static property, the List or the Map assigned to it), you can directly use.
2)Call information
Create a folder roll-call, then in this folder
roall-call-student-1304-20131014.properties
A file to generate roall-call-student-1304 every day.
File save
The number =0
The number =1
Or learn =true
The number =false

You use the Properties class to write a tool class, read from a file

Posted by Amos at January 09, 2017 - 7:05 AM

I is the most simple considerations, the 11 floor of the ideas can also consider. Also named information should not only save to or not to go, there should be: not to leave, not to leave. So I tend to
The number =0
The number =1
The number =2
As for the 0, 1, 2 These enumerated values, is how the definition, then build a propertie file
config/defaultSystem.properties
0= to
1= sick leave
2= leave
3= fall in love
4= Niubi flying.

Posted by Amos at January 11, 2017 - 6:52 AM