Java Data Access—JDBC, JNDI, and JAXP phần 7 ppt

Java Data Access—JDBC, JNDI, and JAXP phần 7 ppt

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

38 332 0
Java Data Access—JDBC, JNDI, and JAXP phần 1 pptx

Java Data Access—JDBC, JNDI, and JAXP phần 1 pptx

... 374 Class Relationships 375 Association 375 Generalization 376 Realization 376 Dependency 376 Aggregation 376 Composition 377 Instantiation 377 vii Part I: Getting Started with Java Data Access Chapter ... 135 ResultSetMetaData example 136 The DatabaseMetaData Interface 140 Creating DatabaseMetaData objects 141 Using DatabaseMetaData objects 141 DatabaseMetaData example 144 Summa...

Ngày tải lên: 14/08/2014, 06:21

39 395 0
Java Data Access—JDBC, JNDI, and JAXP phần 3 ppt

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 ... INSERT and UPDATE statements to refresh the data in a data warehouse using a text file as a source. Most data warehouse refresh files are large and you will likely proce...

Ngày tải lên: 14/08/2014, 06:21

38 281 0
Java Data Access—JDBC, JNDI, and JAXP phần 5 ppt

Java Data Access—JDBC, JNDI, and JAXP phần 5 ppt

... DriverManager.getConnection(jdbcUrl,user,pwd); //Initialize a DatabaseMetaData object DatabaseMetaData dmd = conn.getMetaData(); //Retrieve database name and version String dbname = dmd.getDatabaseProductName(); dbname ... java. sql.Statement; import java. sql.DriverManager; import java. sql.SQLException; import java. sql.DatabaseMetaData; public class DBMetaData { public static v...

Ngày tải lên: 14/08/2014, 06:21

38 273 0
Java Data Access—JDBC, JNDI, and JAXP phần 9 pptx

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 ... interested to // handle. bookDescParser handler = new bookDescParser(); SAXErr ehandler = new SAXErr(); parser.setContentHandler(handler); parser.setErrorHandle...

Ngày tải lên: 14/08/2014, 06:21

38 329 0
Java Data Access—JDBC, JNDI, and JAXP phần 2 ppsx

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 ... database data into a type compatible with Java. XRef Chapter 7, “Understanding JDBC Data Types,” covers SQL and Java data type issues and their compatibility. The Result...

Ngày tải lên: 14/08/2014, 06:21

38 237 0
Java Data Access—JDBC, JNDI, and JAXP phần 4 docx

Java Data Access—JDBC, JNDI, and JAXP phần 4 docx

... 1989−09−16 100 419 876 541 Larry 1500 .75 2001−03−05 200 3126549 87 Lori 2000.95 1999−01−11 300 12345 678 9 Jimmy 3080.05 19 97 09− 07 400 9 876 54321 John 4351. 27 1996−12−31 500 5 376 42256 Andy 1400.51 2001−04−23 ... 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(), setXXX(),...

Ngày tải lên: 14/08/2014, 06:21

38 192 0
Java Data Access—JDBC, JNDI, and JAXP phần 6 doc

Java Data Access—JDBC, JNDI, and JAXP phần 6 doc

... with JAXP Chapter 19: Accessing Data with Enterprise JavaBeans 203 Chapter 13: Accessing Enterprise Data with JNDI In This Chapter Introducing naming and directory services• Understanding the Java ... Enterprise Data with JNDI Chapter 14: Using Data Sources and Connection Pooling Chapter 15: Understanding Distributed Transactions Chapter 16: Working with JDBC Rowsets Chapter...

Ngày tải lên: 14/08/2014, 06:21

38 305 0
Java Data Access—JDBC, JNDI, and JAXP phần 8 pdf

Java Data Access—JDBC, JNDI, and JAXP phần 8 pdf

... using 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 Because the RowSet interface ... scriptlets. Table 17 7 lists and briefly describes all the JSP intrinsic objects. (In the examples to follow, I frequently use the request and response objects.) Table 17 7...

Ngày tải lên: 14/08/2014, 06:21

38 315 0
Java Data Access—JDBC, JNDI, and JAXP phần 10 pdf

Java Data Access—JDBC, JNDI, and JAXP phần 10 pdf

... 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

46 333 0
w