Java EE 8 Recipes: A Problem-Solution Approach by Josh Juneau

Java EE 8 Recipes: A Problem-Solution Approach by Josh Juneau

Author:Josh Juneau [Josh Juneau]
Language: eng
Format: epub
Publisher: Apress
Published: 2018-06-10T21:00:00+00:00


Note

For the full source listing, refer to the org.javaee8recipes.chapter07.dao.AuthorDAO class, located in the Javaee8recipes NetBeans project. Repetitive portions of the sources (finally blocks) have been removed from the following listing for brevity.

...

public class AuthorDAO implements java.io.Serializable {

public AuthorDAO() {

}

public void queryBookAuthor() {

String qry = "select id, first, last, bio from book_author";

CreateConnection.loadProperties();

try (Connection conn = CreateConnection.getConnection();

Statement stmt = conn.createStatement();

ResultSet rs = stmt.executeQuery(qry);) {



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.