JDBC traditionally uses SQL and stored procedures to access relational databases.
http://docs.oracle.com/javase/tutorial/jdbc/basics/index.html
The industry is moving towards other forms of database, like object and graph.
If you are after a true object DB, check out something like
http://www.db4o.com/ but there are quite a few others out there.