MySQL and Java driven application [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 am looking to make a Java based application that also uses an external MySQL database. Does anyone know of some good resources that I could read up on? I am very interested to give this a shot!
Thanks in advance!

The standard API to use databases from Java is JDBC. See the JDBC Tutorial to learn how to use it.
You'll need a JDBC driver to connect to MySQL. You can get that at the MySQL website: Connector/J download.

MySQL provides a JDBC driver, so you can use pretty much any Java database tutorial to learn how to do it.
You can also use all of the usual candidates for mapping DB resources to Java objects (Hibernate, EclipseLink, ...).

Related

What is the best free JDBC Driver for Mc Access with Windows [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 6 years ago.
Improve this question
I am using UcanAccess to interact with a MS Access database which is located on a network drive. I am searching the best JDBC driver for my application. Type 4 if it's possible. I can't find type 4 or 3 free.
My database performs a lot of updates, inserts and reading data activities.
Thank for your help.
UcanAccess is a driver pure java, so it is of type 4.
From wikipedia:
The JDBC type 4 driver, also known as the Direct to Database Pure Java
Driver, is a database driver implementation that converts JDBC calls
directly into a vendor-specific database protocol.
From UcanAccess website:
an open source Java JDBC Driver implementation which allows Java
developers and jdbc client programs [...] Because it is a pure java implementation it run in both Windows and non-Windows Operative Systems

cross DBs programmatic tables creation/alter? [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'm starting some new code aiming Mysql and Oracle, plus H2 for in memory testing. This code has then to be deployed on our customer's sites.
Since it'll evolve over time, I'm planning to use flywaydb.org java migration, however I haven't found any java/jvm library allowing me to declare/alter tables and query/insert them through typesafe code for the required DBs.
Any hint of a library doing so?
My investigation so far:
Hibernate doesn't support migration & programmatic creation/alter of
table (just startup time create/update options, which are way less
powerful)
querydsl doesn't support table creation/alter
typesafe's slick required paid support for oracle
I would have to have to fallback to plain old SQL written 3 times...
best
Turns out http://www.jooq.org/ does it, jooq's motto being to provide all SQL functionalities in Java through a DSL and in a cross database way. Really sweet :)

What database i used for java offline application [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 want to develop application.which is offline(runs on single pc).Which database i should use so that when I create exe of my project it will automatically included in it.
It sounds like you're looking for an embedded database. Here is a thread on Java embedded databases. I use Apache Derby, mostly because it's easy to use with NetBeans.
You can look to the H2 database, no db server is needed!
http://www.h2database.com/html/main.html
You can use MS-Access. That works totally offline and you can include it in your project. It is also easy to work with MS-Access & Java.
Hope this helps.

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.

Read/Write xBASE (DBASE 3-5 /DBF) files [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 6 years ago.
Improve this question
Is there any good library for reading / writing DBF files in java or any other language ?
You might give this library a try:
http://dans-dbf-lib.sourceforge.net/
It is open source (GPL) and pure Java.
Its easy to get to via OleDB provider, such as via .Net, Visual Foxpro would obviously be able to read it natively.
A quick google for dbase and jdbc brought back a number of links for an xbase jdbc driver called StelsDBF. Can't say I've used it or know more than a quick google, but that would be my Java answer.
An alternative Java solution would be to set up an ODBC data source for dbase and then use the JdbcOdbc bridge
I've used the JDBC driver from HXTT. It is type-4 (pure java) and worked well. My experience with the JdbcOdbc bridge for the same task was quite poor but that may have changed in newer releases. HXTT's driver is a commercial product.
"any other language"? like in Python, maybe?
in Python I'm using this one: dbfpy. (not to be confused with pydbf.)
very usable indeed.

Categories