JDBC « Data « Java Articles

Java Articles
1. Class Definition
2. Data
3. Development
4. GUI
5. J2EE
6. J2ME
7. JavaBeans
8. Language
9. Microsoft Collabration
10. Network
11. Swing
12. System Resource
13. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Java Articles » Data » JDBC 
1. Prepare cross-server database access methods with JDBC
Author:Michael Juntao Yuan
URL:http://www.javaworld.com/javaworld/javatips/jw-javatip126.html?
Summary: Server-side Web applications often need to access backend databases. A set of well-designed and efficiently implemented database access methods can greatly reduce the maintenance overhead and improve your Web applications' flexibility. JDBC's (Java Database Connectivity) PreparedStatement interface and setObject() method help you implement fast, generic database access methods that can run on any database server. (1,200 words; April 5, 2002)


2. Clever Facade makes JDBC look easy
Author:Thomas E. Davis
URL:http://www.javaworld.com/javaworld/jw-05-1999/jw-05-cooltools.html?
Summary: This month's tool saves you some work when dealing with common JDBC operations. You can use the Facade design pattern to encapsulate the most popular JDBC objects, thereby hiding all the tedium of initialization, exception handling, and cleanup. Before Thomas unveils the new tool, however, he considers reader feedback on last month's column and adds several improvements to the GlobalValues tool. (3,600 words)


3. Use JDBC for industrial-strength performance, Part 1
Author:Lennart Jorelid
URL:http://www.javaworld.com/javaworld/jw-01-2000/jw-01-ssj-jdbc.html?
Summary: The JDBC API provides three principal methods for calling a database to extract information. System performance and ease of maintenance depend on the usage scenario you choose. Integrating a Java server application with a legacy database system is a nontrivial task; evaluating system-usage scenarios and server-side patterns is important for creating fast, robust application systems. By using better server-side Java patterns for data mining, you can lighten the burden on system data storage. In this first article in a series, Lennart Jorelid discusses server-side Java patterns with JDBC. The reader is assumed to be familiar with the JDBC API. (3,000 words)


4. Build data-type-independent JDBC applications
Author:Sesh Venugopal
URL:http://www.javaworld.com/javaworld/javatips/jw-javatip82.html?
Summary: Database programming often requires working with data from external data sources, such as plain text files. In this article, Sesh Venugopal presents an improved technique for converting plain text data to actual types in a database, using DatabaseMetaData, the JDBC (Java Database Connectivity) metadata interface, along with the execution of precompiled SQL. He gives you a tip on how to discover database-specific data types at runtime and translate external text data. (2,500 words)


5. Overpower the PreparedStatement
Author:Bob Byron and Troy Thompson
URL:http://www.javaworld.com/javaworld/jw-01-2002/jw-0125-overpower.html?
Summary: Many Java programs' success depends on an optimized method of accessing a JDBC (Java Database Connectivity) database known as a PreparedStatement. Debugging such statements can prove troublesome because you cannot retrieve a PreparedStatement's command or any of its associated parameters. In this article, Bob Byron and Troy Thompson show how to save debugging time by using a few strategic classes. Most importantly, you need to change just three lines of code. (1,800 words; January 25, 2002)


6. Create your own type 3 JDBC driver, Part 1
Author:Nitin Nanda and Sunil Kumar
URL:http://www.javaworld.com/javaworld/jw-05-2002/jw-0517-jdbcdriver.html?
Summary: How would you like to create your own type 3 JDBC (Java Database Connectivity) driver or convert an existing JDBC driver to type 3? Type 3 drivers, primarily useful for Internet/intranet applications with no required client-side setting, provide flexible system administration facilities. In this article, Nitin Nanda and Sunil Kumar explain JDBC's driver architecture, outline type 3 JDBC drivers' three-tier model, and show how to create your own type 3 JDBC driver. (2,300 words; May 17, 2002)


7. Eliminate JDBC overhead
Author:Ryan Daigle
URL:http://www.javaworld.com/javaworld/jw-05-2002/jw-0524-sql.html?
Summary: Most J2EE (Java 2 Platform, Enterprise Edition) and other types of Java applications interact in some way with information persisted in a database. Interfacing with that database involves several iterations of SQL statements, connection management, transaction lifecycles, result processing, and exception handling. The many parts of this ritualistic dance are common in all contexts; however, this replication doesn't have to exist. In this article, Ryan Daigle outlines a flexible framework that remedies the repetition of interacting with a JDBC (Java Database Connectivity)-compliant database. (2,200 words; May 24, 2002)


8. Create your own type 3 JDBC driver, Part 2
Author:Nitin Nanda and Sunil Kumar
URL:http://www.javaworld.com/javaworld/jw-06-2002/jw-0614-jdbcdriver2.html
Summary: Type 3 JDBC (Java Database Connectivity) drivers, primarily useful for Internet/intranet applications with no required client-side setting, provide flexible system administration facilities. In Part 1 of this three-part series, Sunil Kumar and Nitin Nanda explored the architecture and design of a custom-built type 3 JDBC driver. Expanding on Part 1, in this article they explain how to compile, deploy, and use the custom driver. (2,000 words; June 14, 2002)


9. Simple classes for JDBC
Author:Madhu Siddalingaiah
URL:http://www.javaworld.com/javaworld/jw-06-2004/jw-0607-sql.html
Summary: Just about every J2EE application accesses data from a relational database. For this reason, Java Database Connectivity (JDBC) is probably one of the more popular APIs available for the Java platform. JDBC is conceptually simple and easy to use, but in production applications, numerous details can make even the most trivial create/read/update/delete (CRUD) application a chore. Although many frameworks, tools, and APIs can simplify development, they are often too complex. As an alternative, in this article, author Madhu Siddalingaiah presents a small set of classes that is easy use, maintain, and extend. (2,300 words; June 7, 2004)


10. JDBC scripting, Part 1
Author:James Jianbo Huang
URL:http://www.javaworld.com/javaworld/jw-06-2004/jw-0621-jdbc.html
Summary: JudoScript is an easy and powerful Java scripting language and has 4GL-like domain-specific functional support, allowing users to intuitively specify what they want to do and program algorithmically when necessary. Its multidomain functional support puts JudoScript in a new category of functional scripting languages. Like any 4GL (fourth-generation language), JudoScript emphasizes specifying intentions and providing solutions automatically, while other programming languages (3GLs) emphasize describing solutions (algorithms) that realize the intentions. JudoScript employs a JavaScript-like syntax and programming model and provides more computing power with rich datastructures and syntactic sugar. It is also fully potent in scripting Java, so that all the Java platform resources are readily available. The synergy of all these features renders great power, productivity, and elegance for practical computing needs. Data processing is one of JudoScript's most important applications. Today's enterprise applications deal with rich data formats such as relational databases, XML, SGML (Standard Generalized Markup Language), abstract data types like EJBs (Enterprise JavaBeans), Web services, as well as spreadsheets and flat files. JudoScript is ideal for multiformat, multisource data processing. This two-part series focuses on JudoScript's JDBC (Java Database Connectivity) scripting support, introduces JudoScript the language, and demonstrates its data processing power with a J2EE case study. Part 1 details JudoScript's JDBC scripting support. (2,400 words; June 21, 2004)


11. JDBC scripting, Part 2
Author:James Jianbo Huang
URL:http://www.javaworld.com/javaworld/jw-07-2004/jw-0705-jdbc2.html
Summary: JudoScript is a rich functional scripting language, and an easy and powerful general programming and Java scripting language. In Part 1 of this series, I detailed JudoScript's JDBC (Java Database Connectivity) scripting support. JudoScript's power comes from its synergy of functional features such as JDBC scripting, and the strength of programming and Java scripting. It is ideal for modern data processing and other practical uses. JudoScript is designed for all IT professionals and computer programmers, not just Java developers. In Part 2, I concisely introduce JudoScript's programming and Java scripting features, which are all used in a real-world J2EE case study that involves SQL, XML, Enterprise JavaBeans, email, and Web services abstracted as a Java API. The resultant program is short, obvious, and rich in functionality. In the end, I use various criteria to compare JudoScript to other languages. (3,900 words; July 5, 2004)


12. JDBC usage for industrial-strength performance, Part 2
Author:Lennart Jorelid
URL:http://www.javaworld.com/javaworld/jw-02-2000/jw-02-ssj-jdbc2.html?
Summary: Although you can create complex applications using the simple and easy-to-use design patterns of the JDBC API, you may gain better performance by allowing a single statement to return multiple ResultSets. In this article, Lennart Jorelid explores the methods of using batch-oriented techniques to acquire multiple ResultSet objects. (2,000 words)


13. Reflections on Java, Beans, and relational databases
Author:Sandor Spruit
URL:http://www.javaworld.com/javaworld/jw-09-1997/jw-09-reflections.html?
Summary: The 1.1 version of the Java Development Kit (JDK) contains new APIs for database access (JDBC) and components (JavaBeans). Together, these two APIs allow for the development of generic database code. A single class to access any JDBC database -- with the code specific to each individual application isolated in separate components. This means you won't have to update any database code with each minor change in a database's structure. (3,200 words) By Sandor Spruit


14. Get disconnected with CachedRowSet
Author:Taylor G. Cowan
URL:http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html?
Summary: The new CachedRowSet, still in early access release, provides benefits that developers can begin to take advantage of right away. Taylor Cowan demonstrates how you can use a CachedRowSet as the data model for a JavaServer Pages (JSP) entry/edit form. Assuming that you have some experience with JSP development, he describes step by step how to implement navigation, updates, inserts, and deletes using a CachedRowSet JavaBean. In addition, he shows how the CachedRowSet helps to reduce database-update SQL statements and the use of valuable database connection resources. (2,100 words)


15. The search for the ResultSet implementation
Author:Tony Sintes
URL:http://www.javaworld.com/javaworld/javaqa/2000-10/04-qa-1027-interface.html?
Summary: Don't bother looking for where the JDBC's ResultSet is implemented!


www_.j___a__v__a_2_s__._c_o___m__ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.