1 / 13

Java III

Java III. Class 5. Assignment. Prepare for SHORT Quiz QUIZ postponed until May 1 Work on Project Review JDBC Tutorial http://java.sun.com/docs/books/tutorial/jdbc/index.html. Latest Tomcat- JDBC – et.al. http://java.sun.com/webservices/downloads/webservicespack.html. Last week’s Quiz.

Télécharger la présentation

Java III

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Java III Class 5

  2. Assignment • Prepare for SHORT Quiz • QUIZ postponed until May 1 • Work on Project • Review JDBC Tutorial • http://java.sun.com/docs/books/tutorial/jdbc/index.html

  3. Latest Tomcat- JDBC – et.al. • http://java.sun.com/webservices/downloads/webservicespack.html

  4. Last week’s Quiz • Review

  5. JDBC • Goals • Design • Java API for SQL • Driver Manager • Driver Types • 1 JDBC <-> ODBC • 2 Java + Native Code • 3 Java - DB Independent • 4 Java – DB Specific

  6. JDBC • Relationship to ODBC • Many vs. few comands • Void * • Safe programming • Uses • Applet • Application • 3 (or more) Tier

  7. SQL • Select • From • Where • Like • Update • Set • Insert • Values • Create Table

  8. Installing • Basic should be there • DB Specific Drivers • Mysql • URL Connection • Examples

  9. JDBC Commands • Con.createStatement() • Stmt.executeUpdate(SQL_CMd) • AutoCommit • Grouping • Rollback • Insert – Update - Delete • Stmt.executeQuery(SQL_Query) • PreparedStatement • Con.preparedStatement • Pstmt.setXxx

  10. JDBC Commands • ResultSet • Rs.next • Rs.GetXX • Col • name or number • ID start w/ 1

  11. JDBC Metadata • Rs.getMeteData • GetColumnCount • GetColumnLabel(i) • GetTables

  12. Advanced Result Set • TYPE_FORWARD_ONLY • TYPE_SCROLL_INSENSITIVE • TYPE_SCROLL_SENSITIVE • CONCUR_READ_ONLY • CONCUR_UPDATEABLE • getWarnings • getType • GetConcurrency • UpdateXX – UpdateRow()

  13. Blobs – Clobs • Long binary/character data • Extra-credit for Final Project

More Related