Java Data Access—JDBC, JNDI, and JAXP phần 3 ppt
... 100 98765 432 1 John 435 1.00 1996−12 31 500 8686 533 91 Greg 435 1.00 1996−12 31 500 1 234 56789 Jimmy 30 80.00 1997−09−07 400 31 2654987 Lori 2000.95 1999−01−11 30 0 419876541 Larry 1500.00 2001− 03 05 200 Goodbye! JDBC ... around and viewing data in a result set• Updating data in a result set• Retrieving data from a result set• Handling data type issues• In Chapter 4, “Conn...
Ngày tải lên: 14/08/2014, 06:21
... Error Handling 36 6 SQLException 36 7 SQLWarning 36 9 BatchUpdateException 37 1 DataTruncation 37 1 Appendix D: UML Class Diagram Quick Reference 37 3 Class Diagrams 37 3 Class 37 3 Interface 37 4 Abstract ... 131 Summary 133 Chapter 8: Mining Database Metadata with JDBC 134 In This Chapter 134 The JDBC Metadata Interfaces 134 The ResultSetMetaData Interface 135 Creating Result...
Ngày tải lên: 14/08/2014, 06:21
... DriverManager.getConnection(jdbcUrl,user,pwd); //Initialize a DatabaseMetaData object DatabaseMetaData dmd = conn.getMetaData(); //Retrieve database name and version String dbname = dmd.getDatabaseProductName(); dbname ... list of the database keywords and helper functions. Listing 8−2: DBMetaData .java package Chapter8; //Specific imports import java. sql.Connection; import java....
Ngày tải lên: 14/08/2014, 06:21
Java Data Access—JDBC, JNDI, and JAXP phần 7 ppt
... InitialContext(env); //Bind the DataSource object bindDataSource(ctx, dataSourceName); //Retrieve the DataSource object DataSource ds = null; ds = (DataSource) ctx.lookup(dataSourceName); //Open ... View and update data in disconnected environments• Take advantage of JavaBean technology, for example by using standard setter and getter methods for configuring and retrieving pro...
Ngày tải lên: 14/08/2014, 06:21
Java Data Access—JDBC, JNDI, and JAXP phần 9 pptx
... to establish a database connection. Listing 17 3: DatabaseBean .java // Java Data Access: JDBC, JNDI, and JAXP // Chapter 17 − Web Applications and Data Access // DatabaseBean .java package Chapter18; import ... the JAXP 1.1 as an optional package. The JAXP 1.1 will be included in the Java 2 Platform Standard Edition (J2SE) 1.4 and in the Java 2 Platform Enterprise E...
Ngày tải lên: 14/08/2014, 06:21
Java Data Access—JDBC, JNDI, and JAXP phần 2 ppsx
... the Chapter 3: Setting Up Your First JDBC Query 38 coerces the database data into a type compatible with Java. XRef Chapter 7, “Understanding JDBC Data Types,” covers SQL and Java data type issues and ... the methods and properties that enable you to send commands and receive data from your database. They also define methods that help bridge data type differences betw...
Ngày tải lên: 14/08/2014, 06:21
Java Data Access—JDBC, JNDI, and JAXP phần 4 docx
... VALUES" + "(2,Emp _Data( 222222222,’Steve’,’Yesbert’,15000.75))"); stmt.executeUpdate("INSERT INTO Emp_Records VALUES" + " (3, Emp _Data( 33 333 333 3,’Andy’,’Griffith’,75000.00))"); ... 1500.75 2001− 03 05 200 31 2654987 Lori 2000.95 1999−01−11 30 0 1 234 56789 Jimmy 30 80.05 1997−09−07 400 98765 432 1 John 435 1.27 1996−12 31 500 537 642256 And...
Ngày tải lên: 14/08/2014, 06:21
Java Data Access—JDBC, JNDI, and JAXP phần 6 doc
... Data with Enterprise JavaBeans 2 03 Chapter 13: Accessing Enterprise Data with JNDI In This Chapter Introducing naming and directory services• Understanding the Java Naming and Directory Interface ... exist standard attributes for describing objects, and these standard attributes are used in most directory services. Table 13 3 lists them and provides a short description of ea...
Ngày tải lên: 14/08/2014, 06:21
Java Data Access—JDBC, JNDI, and JAXP phần 8 pdf
... logic. Java servlets and JavaServer Pages (JSP) are server−side Sun Java technologies used to develop high−performance and highly scalable enterprise Web applications. Servlets and JSP are Java based, ... the getInt() method. XRef Chapter 7, “Understanding JDBC Data Types,” provides more information about working with SQL and Java data types. Traversing data in a rowset B...
Ngày tải lên: 14/08/2014, 06:21
Java Data Access—JDBC, JNDI, and JAXP phần 10 pdf
... Source. Java based, somewhat ODMG−compliant. Appendix B: Java Database Programming on Linux 36 4 Metadata JDBC 3. 0 enhances the metadata interfaces to provide more information about the data source and ... CustomerBean .java import java. io.Serializable; import java. util.Enumeration; import java. util.Vector; import javax.ejb.*; import javax.naming.InitialContext; import javax....
Ngày tải lên: 14/08/2014, 06:21