java jdbc
JDBC£º
|-- Êý¾Ý¿â»¥Áª¡£
|-- ÓÉSUN¹«Ë¾ËùÖƶ¨µÄÓÃÀ´·ÃÎÊÊý¾Ý¿âµÄ¹æ·¶¡£
|-- Êý¾Ý¿âÊý¾Ý <= ½»»¥ => Ó¦ÓóÌÐò¡£
JDBC°üº¬Ö÷ÒªÁ½¸ö²¿·Ö£º
|-- part 1.ÓÉSUN¹«Ë¾Öƶ¨µÄ¹æ·¶½Ó¿Ú
|-- java.sql
--> ºËÐÄ°ü
|-- javax.sql --> À©Õ¹°ü
|-- part 2.ÓÉÊý¾Ý¿â³§ÉÌËùÌṩµÄÊý¾Ý¿âÇý¶¯³ÌÐò£¬ËüÃÇʵÏÖÁËpart 1²¿·Ö¡£
JDBCµÄÇý¶¯³ÌÐò°üº¬ÒÔÏÂËÄÖÖÀàÐÍ£º
|-- µÚÒ»´úÇý¶¯£¨JDBC - ODBC Bridge£©
|-- Ê×ÏÈ°ÑJDBCµÄµ÷ÓÃת»»³ÉODBCµÄµ÷Óã¬ÔÙÓÃODBCÓë¾ßÌåµÄÊý¾Ý¿âϵͳͨÐÅ¡£
|-- µÚ¶þ´úÇý¶¯ £¨Native - API party - Java
driver ±¾µØAPI²¿·ÖJavaÇý¶¯£©
|-- Conrerts JDBC calls into calls
on the native client API of a specific RODMS.
|-- ȱµã£º²»Í¬µÄÊý¾Ý¿âÐèÒª°²×°²»Í¬µÄ¿Í»§¶Ë£¨Ã¿Ì¨µçÄÔ¶¼Òª×°£©¡£
|-- µÚÈý´úÇý¶¯ £¨JDBC - net pure Java driver
ÍøÂç´¿JavaÇý¶¯£©
|-- ÌṩÍøÂç½Úµã£¬Í¨¹ýÍøÂç½Úµã·ÃÎÊÊý¾Ý¿â¡£
|-- Translates JDBC calls into a
DBMS independent net protocol, which is then translated
to
a DBMS protocol by a server.
|-- µÚËÄ´úÇý¶¯ £¨Native protocol pure Java
driver ±¾µØÐÒé´¿JavaÇý¶¯£©
|-- Conrerts JDBC calls directly
into the network protocol used by DBMS.
JDBCºËÐÄAPI
java.sql
|-- Driver [Interface] ËùÓÐÇý¶¯±ØÐèʵÏֵĽӿÚ
|-- DriverManager [Class] ÓÃÀ´¹ÜÀíÒ»×éÊý¾Ý¿âµÄÇý¶¯
|-- Connection  
Ïà¹ØÎĵµ£º
ѧjavaÓжÎʱ¼äÁË£¬ÒÔÏÂÊǸöÈ˵ÄÒ»µãÐĵÃÌå»á£¬Ï£ÍûÄܹ»°ïÖúÄÇЩ¸Õ¿ªÊ¼±à³ÌµÄͬ־ÃÇ¡£
¼¸ÌìÇ°£¬Ò»Í¬Ñ§ÈÃÎÒ°ïæ¿´ËûµÄ³ÌÐòµ½µ×³öÏÖʲôÎÊÌ⣬´úÂë±È½ÏÂÒ£¬Ò²Ã»ÓÐ×¢ÊÍ£¬ÎÒ¿´Á˺Ü
³¤Ò»¶Îʱ¼ä¾¹ÊÇÕÒ²»µ½ÎÊÌâËùÔÚ¡£³ÌÐò´óÌåÊÇÕâÑùµÄ£¬ÓÐÒ»¶ÎÎı¾taxt,´ÓÖ ......
Àà¼ÓÔØÆ÷ÊÇ Java ÓïÑÔµÄÒ»¸ö´´Ð£¬Ò²ÊÇ Java ÓïÑÔÁ÷ÐеÄÖØÒªÔÒòÖ®Ò»¡£ËüʹµÃ Java Àà¿ÉÒÔ±»¶¯Ì¬¼ÓÔص½ Java ÐéÄâ»úÖв¢Ö´ÐС£Àà¼ÓÔØÆ÷´Ó JDK 1.0 ¾Í³öÏÖÁË£¬×î³õÊÇΪÁËÂú×ã Java Applet µÄÐèÒª¶ø¿ª·¢³öÀ´µÄ¡£Java Applet ÐèÒª´ÓÔ¶³ÌÏÂÔØ Java ÀàÎļþµ½ä¯ÀÀÆ÷Öв¢Ö´ÐС£ÏÖÔÚÀà¼ÓÔØÆ÷ÔÚ Web ÈÝÆ÷ºÍ OSGi Öеõ½Á˹㷺µÄʹÓá ......
1£©DOM£¨JAXP Crimson½âÎöÆ÷£©
DOMÊÇÓÃÓëƽ̨ºÍÓïÑÔÎ޹صķ½Ê½±íʾXMLÎĵµµÄ¹Ù·½W3C±ê×¼¡£DOMÊÇÒÔ²ã´Î½á¹¹×éÖ¯µÄ½Úµã»òÐÅϢƬ¶ÏµÄ¼¯ºÏ¡£Õâ¸ö²ã´Î½á¹¹ÔÊÐí¿ª·¢ÈËÔ±ÔÚÊ÷ÖÐÑ°ÕÒÌض¨ÐÅÏ¢¡£·ÖÎö¸Ã½á¹¹Í¨³£ÐèÒª¼ÓÔØÕû¸öÎĵµºÍ¹¹Ôì²ã´Î½á¹¹£¬È»ºó²ÅÄÜ×öÈκι¤×÷¡£ÓÉÓÚËüÊÇ»ùÓÚÐÅÏ¢²ã´ÎµÄ£¬Òò¶øDO ......
EclipseÖÐĬÈÏÊÇÊäÈë"."ºó³öÏÖ×Ô¶¯Ìáʾ£¬ÓÃÓÚÀà³ÉÔ±µÄ×Ô¶¯Ìáʾ£¬¿ÉÊÇÓÐʱºòÎÒÃÇÏ£ÍûËüÄÜÔÚÎÒÃÇÊäÈëÀàµÄÊ××Öĸºó¾Í³öÏÖ×Ô¶¯Ìáʾ£¬¿ÉÒÔ½ÚÊ¡´óÁ¿µÄÊäÈëʱ¼ä£¨ËäÈ»°´alt + /»á³öÏÖÌáʾ£¬µ«»¹ÊÇÒª¶à°´Ò»´Î°´¼ü£¬Ì«Âé·³ÁË£©¡£
´ÓWindow -> preferences -> Java -> Editor -> Content assist - ......
ÅжÏÌ⣺ÉùÃ÷int a = 10; ÅжÏÒÔÏÂ3¸öÔËËãÊÇ·ñÄܹ»·Ö±ðͨ¹ýJava±àÒëÆ÷£º
a = a/2; a = a/3; a = a*2.89;
½â£ºa = a*2.89;²»ÐУ¬a*2.89ÔËËã»áÌáÉý³ÉdoubleÀàÐÍ
Êý×éÓÐûÓÐlength()Õâ¸ö·½·¨? StringÓÐûÓÐlength()Õâ¸ö·½·¨£¿
½â£ºÊý×éûÓÐlength()Õâ¸ö·½·¨£¬ÓÐlengthµÄÊôÐÔ¡£
¡¡¡¡ StringÓÐÓÐlength()Õ ......