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
... CustomerBean .java import java. io.Serializable; import java. util.Enumeration; import java. util.Vector; import javax.ejb.*; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.DataSource; import ... Source. Java based, somewhat ODMG−compliant. Appendix B: Java Database Programming on Linux 364 Metadata JDBC 3.0 enhances the metadata interfaces to...
Ngày tải lên: 14/08/2014, 06:21
... 109 Chapter 7: Understanding JDBC Data Types 110 In This Chapter 110 Java, Databases, and Data Types 110 Java to−JDBC Data Type Mappings 111 JDBC−to Java Data Type Mappings 114 Standard SQL data types 114 Advanced ... 135 ResultSetMetaData example 136 The DatabaseMetaData Interface 140 Creating DatabaseMetaData objects 141 Using DatabaseMetaData objects 141 DatabaseMetaData examp...
Ngày tải lên: 14/08/2014, 06:21
Java Data Access—JDBC, JNDI, and JAXP phần 2 ppsx
... 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 between Java and SQL data types ... “Understanding JDBC Data Types,” covers SQL and Java data type issues and their compatibility. The ResultSet object uses a cursor to point to rows in the result set. To acces...
Ngày tải lên: 14/08/2014, 06:21
Java Data Access—JDBC, JNDI, and JAXP phần 3 ppt
... 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, “Connecting to Databases with JDBC,” and Chapter ... 5000.00 1995−09−16 100 987 654321 John 4351.00 1996−12−31 500 86 8653391 Greg 4351.00 1996−12−31 500 123456 789 Jimmy 3 080 .00 1997−09−07 400 312654 987 Lori 2000.95 1999−01−11...
Ngày tải lên: 14/08/2014, 06:21
Java Data Access—JDBC, JNDI, and JAXP phần 4 docx
... Understanding JDBC Data Types 116 Listing 8 1: RSMetadata .java package Chapter8; //Specific imports import java. sql.Connection; import java. sql.DriverManager; import java. sql.Statement; import java. sql.ResultSet; import ... JDBC Data Types In This Chapter Mapping Java data types to JDBC data types• Mapping JDBC data types to Java data types• Using the getXXX(), se...
Ngày tải lên: 14/08/2014, 06:21
Java Data Access—JDBC, JNDI, and JAXP phần 5 ppt
... list of the database keywords and helper functions. Listing 8 2: DBMetaData .java package Chapter8; //Specific imports import java. sql.Connection; import java. sql.ResultSet; import java. sql.Statement; import ... DriverManager.getConnection(jdbcUrl,user,pwd); //Initialize a DatabaseMetaData object DatabaseMetaData dmd = conn.getMetaData(); //Retrieve database name and version S...
Ngày tải lên: 14/08/2014, 06:21
Java Data Access—JDBC, JNDI, and JAXP phần 6 doc
... ConnectionManager and Factory objects are implemented as a Singleton.• You can supply usernames, passwords and database IDs as parameters to control what database you connect to and which database user ... Applications Chapter 18: Using XML with JAXP Chapter 19: Accessing Data with Enterprise JavaBeans 203 Chapter 13: Accessing Enterprise Data with JNDI In This Chapter Introducin...
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
... 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 Chapter 18; import ... them. Where to get the JAXP API JDK 1.1 .8 and above have the JAXP 1.1 as an optional package. The JAXP 1.1 will be included in the Java 2 Platform Standard...
Ngày tải lên: 14/08/2014, 06:21