tailieunhanh - My SQL and Java Developer’s Guide phần 9

hoặc bạn có thể sử dụng các mẫu chuỗi ký tự% trong đó được sử dụng để phù hợp với 0 hoặc nhiều ký tự và gạch dưới (_) được sử dụng để phù hợp với một Ít hơn và lớn hơn so với các nhà khai thác làm việc trên cả hai toán hạng số và chữ số, họ trở về đúng hay sai dựa trên chức năng rõ ràng của họ. | The JDBC API and Connector J At the core of Java s support for data sources such as the MySQL relational database server is the JDBC API. This API provides a wide range of support for establishing database sessions obtaining metainformation associated with a database executing SQL statements and processing data returned from a database. The API is split between two java packages and . The former provides the core JDBC API while the latter adds a number of server-side extensions. As of version of the Java 2 Platform Standard Edition both packages are included in the standard release and adhere to the JDBC specification. It is version of the specification that this appendix addresses. While the JDBC API provides a number of predefined classes the bulk of the API consists of interfaces that the JDBC driver is responsible for implementing. The official JDBC driver for MySQL is known as Connector J. As of this writing there are two versions of the driver available. The first is version which is considered the stable release. The second is version Beta which is considered a development release. Since Connector J 3 appears to be well on its way to becoming a stable release that is the version this appendix focuses on. Tables and summarize the extent to which Connector J 3 implements the JDBC interfaces. Where an interface is partially implemented the section dedicated to that interface groups the method signatures according to whether or not they are implemented. Note that much of the currently unimplemented functionality is due to a lack of corresponding support from MySQL. 329 The JDBC API and Connector J 330 The Package The package represents the core of the JDBC API. It provides 11 classes and 18 interfaces focused on connecting to and communicating with a data source. The classes listed in Table are all implemented and delivered as part of the package. On the other hand classes implementing the