Reputation: 15660
Does Java have support for any form of databases natively? That is, does Java have a set of API or library that allows me to create and use databases such as MS Access or SQLite, etc?
It seems like I must download a third-party wrapper library or driver before I can use any database. IS there a native standard library in Java that allows me to do databases without third-party classes?
Upvotes: 1
Views: 2406
Reputation: 100196
There are many 100% Java databases. Start with Apache Derby.
Obviously, if you want to talk to a database that is, itself, not written in Java, you'll have to use some sort of connector.
In many cases, for databases typically spoken to over a network (e.g. Oracle, mysql, postgresql) the connector is a 'type 4' JDBC driver, which is a slug of 100% Java code that implements the same network protocol as gets used for all other programming languages.
For embedded non-Java databases, 'some glue required'.
Upvotes: 1
Reputation: 128949
No. Java's database functionality (JDBC) is composed of a set of interfaces (plus a few utility classes) in the standard library and third-party implementations of those interfaces that let you connect to all the various databases out there. You'll have to find and use at least a driver library for any database you'd like to connect to.
Upvotes: 2
Reputation: 8783
The standard class library doesn't have any thing like that built in. See this answer for information on getting SQLite going with minimum fuss. That's as good as it's going to get, I'm afraid.
Upvotes: 0
Reputation: 33954
This link is a quick overview of them
Upvotes: 1