Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I am relatively new to programming and in need of help.
I am trying to design/develop small desktop app for a family hotel.
Do I need a database to write/read from or there is another solution to this problem.
There aren't massive amounts of information to be stored ,because of the nature of the application.
What would be a good way to approach the problem ?
Any help will be appreciated!
Sqlite is the go to solution for simple usage
You can read/write your data to files. The files can be simple text, JSON or XML. There are many Java libraries that can interact with files on disc.
Depending on your requirements you can also have an in-memory database - for example HSQL or SQLite
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I have this idea for an app (mainly for personal use) to write down homework or upcoming project due dates and save them, and maybe add alarms to help me not procrastinate.
My question is: how would I store assignments? I never actually made an app that stores user input so I don't know where to start. From what I know I can either start up an SQL db or use Shared Preferences which I'm not familiar with both. So my question is what's the advantages and disadvantages of either?
If you are using bulk amount of data and you want to store it in ordered way then you can use SQL db. In SQL db you can also do indexing.
In case of small data storage you can use shared preferences.
In your case you should definitely use db.
Check the official documentation, you will get more clear idea :
http://developer.android.com/guide/topics/data/data-storage.html
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am building a small java application that shall run locally on a system. The data I intend to input is little stuff like my daily expenses, a couple of contacts I have, and a couple of notes of things I want to remember.
To save the data for this matter I think installing a database like MySQL or Oracle would be an overkill. In my past projects I always used those databases.
How would I have to manage the data of a small program? Are there any ready to use solutions in the java world? Maybe with the possibility to use it together with JPA?
You should look into Apache Derby:
http://db.apache.org/derby/
or HyperSQL:
http://hsqldb.org/
They're both lightweight database engines that you can fire up on application start-up, ideal for smaller projects. They also both have Hibernate dialects for JPA.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am working on an app the required data to be saved each time the user enters in some information. The information needs to be saved and then accessed again when the users returns to the app. My question is what is the best way to store this information. I have used text files in the past on regular java programs to store and retrieve data but I'm wondering if this would be the best solution for an android app. Any help is greatly appreciated.
You can use SQLite database to store data.
http://hmkcode.com/android-simple-sqlite-database-tutorial/
http://www.tutorialspoint.com/android/android_sqlite_database.htm
or use SharedPreferences
There are many different ways of storing data depending on what you are doing.
But SharedPreferences should probably suffice for what you need.
http://developer.android.com/reference/android/content/SharedPreferences.html
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm creating rest service for mobile app in java. For storage process which is best suitable for real time storage (Hibernate , JPA & JDBC).
Your valuable answers will put me on right track.
Basically ORM technologies like Hibernate, JPA etc., provides greater flexibility to the programmer in maintaining the code say for example, direct mapping to java POJO's, object locking mechanisms, Id generation and lot more with little cost of performance. If your application needs light weight calls (taking into consideration of concurrency, ofcourse underling database will provide, small relation etc) you could opt JDBC.
Thanks,
JK
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am a student. I need to make a application. I have built the GUI. Now I need to know how to do it?
I have heard about sql server compact, but does it work together with j2me? If not, something to solve the problem?
It will be better if you can pass me a example. If you couldn't, not worry, I just to need to know a database program for mobile (with j2me).
Could it be possible without use a database program? For example, using a text file? Or any other storage mechanism.
Appreciate any help.
In j2me you can use RMS. But you can't handle with large data. Some Third party database's also available for j2me development. You can use that API's. Also refer this existing discussion on same in this forum. And look at database connection using j2me article.