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

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
Java Data Access—JDBC, JNDI, and JAXP phần 8 pdf

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

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

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

... 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 SQL data types ... 135 ResultSetMetaData example 136 The DatabaseMetaData Interface 140 Creating DatabaseMetaData objects 141 Using DatabaseMetaData objects 141 DatabaseMetaData example 144 Summary...

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

39 395 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 ... “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

38 237 0
Java Data Access—JDBC, JNDI, and JAXP phần 3 ppt

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

... 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 process a large number of database ... transactional approach will ensure data integrity and consistency by preventing “orphan” data from being written to the database. JDBC 2.0 and beyond supports batch processin...

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

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

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

... Sets 107 Chapter 7: Understanding 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(), and updateXXX() ... of the actual data (such as its data types). The JDBC API enables you to uncover metadata about a database and a query’s result set using the DatabaseMetaData and...

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

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

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

38 305 0
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 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 ... Both establish a database connection, perform a database action such as a query, retrieve the resulting data, format and display the data, and perform some house...

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

38 329 0
w