Java and Databases.ppt
《Java and Databases.ppt》由会员分享,可在线阅读,更多相关《Java and Databases.ppt(25页珍藏版)》请在麦多课文档分享上搜索。
1、Java and Databases,CS-328 Dick Steflik,Database Drivers,Think of a database as just another device connected to your computer like other devices it has a driver program to relieves you of having to do low level programming to use the database the driver provides you with a high level api to the data
2、base,ODBC,Open Data Base Connectivity Developed by Microsoft for the Windows platform as the way for Windows applications to access Microsoft databases (SQL Server, FoxPro, Access) Has become an industry standard Most data base vendors supply native, odbc, and jdbc drivers for their data base produc
3、ts,JDBC Architecture,Java Application,JDBC API,Data Base Drivers,Access,SQLServer,DB2,Informix,MySQL,Sybase,JDBC Driver Types,Type 1JDBC-ODBC Bridge Type 2 Native API, partially java Type 3 JDBC Network Driver, partially java Type 4 100% Java,Type 1 Drivers,Translate JDBC into ODBC and use Windows O
4、DBC built in drivers ODBC must be set up on every client driver must be physically on each machine for both java applications and applets for server side servlets ODBC must be set up on web server driver sun.jdbc.odbc.JdbcOdbc provided by JavaSoft with JDK,Type 1 Driver (cont.),Client,JDBC-ODBC,ODBC
5、,DB,Vendor Library,Type 2 Drivers,Converts JDBC to data base vendors native SQL calls like Type 1 drivers; requires installation of binaries on each client,Type 2 Drivers (cont.),Client,JDBC,Vendor Library,DB,Type 3 Drivers,Translates JDBC to a DBMS independent network protocol Typically talks direc
6、tly with a middleware product which in turn talks to the RDBMS Jaguar, DBAnywhere, SequeLink Most flexible driver type all java,Type 3 Drivers (cont.),Client,JDBC,Vendor Middleware,DB,Tier 1,Tier 2,Tier 3,Type 4 Drivers,Converts JDBC directly to native API used by the RDBMS compiles into the applica
7、tion , applet or servlet; doesnt require anything to be installed on client machine, except JVM handiest driver type,Type 4 Drivers (cont.),Client,JDBC,DB,Structured Query Language,Developed by C. Date for Relational Data Base Management Systems (RDBMS) Simple Declarative Language has no program con
8、trol statements,SQL,Two categories of commands Data Manipulation Commands deal with: RETRIEVING DATA MAINTAINING DATA (ADDING, UPDATING,DELETING Data Definition Commands DEAL WITH: CREATING DATABASE OBJECTS (TABLES,VIEWS) Object organization and attributes,Referential Integrity,Rules to insure that
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- JAVAANDDATABASESPPT
