This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Sure, JDBC will allow one to access a DB with all of the privileges of the User/Password that you use to connect to the DB. Depending upon how you want to do it, create a PreparedStatement, set the SQL string property and the run the appropriate execute method. This will return a ResultSet that will contain the row you desire. I can give you a short example iffin you need more info.