This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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.