Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Java DB ºÍ JDBC 4.0

http://developers.sun.com/javadb/
Java SE 6 ÐÂÌØÐÔ: Java DB ºÍ JDBC 4.0
http://www.ibm.com/developerworks/cn/java/j-lo-jse65/
³¤¾ÃÒÔÀ´£¬ÓÉÓÚ´óÁ¿£¨ÉõÖÁ¼¸ºõËùÓУ©µÄ Java Ó¦Óö¼ÒÀÀµÓÚÊý¾Ý¿â£¬ÈçºÎʹÓà Java ÓïÑÔ¸ßЧ¡¢¿É¿¿¡¢¼ò½àµØ·ÃÎÊÊý¾Ý¿âÒ»Ö±ÊdzÌÐòÔ±Ãǽò½òÀÖµÀµÄ»°Ì⡣з¢²¼µÄ Java SE 6 Ò²ÔÚÕâ·½Ãæ¸üÉϲãÂ¥£¬Îª±à³ÌÈËÔ±ÌṩÁËÐí¶àºÃÓõÄÐÂÌØÐÔ¡£ÆäÖÐ×îÏÔÖøµÄ£¬Äª¹ýÓÚ Java SE 6 ÓµÓÐÁËÒ»¸öÄÚǶµÄ 100% Óà Java ÓïÑÔ±àдµÄÊý¾Ý¿âϵͳ¡£²¢ÇÒ£¬Java 6 ¿ªÊ¼Ö§³Ö JDBC 4.0 µÄһϵÁÐй¦ÄܺÍÊôÐÔ¡£ÕâÑù£¬Java SE ÔÚ¶Ô³Ö¾ÃÊý¾ÝµÄ·ÃÎÊÉϾÍÏԵøüΪÒ×ÓúÍÇ¿´óÁË¡£
Java DB£ºJava 6 ÀïµÄÊý¾Ý¿â
а²×°ÁË JDK 6 µÄ³ÌÐòÔ±ÃÇÒ²Ðí»á·¢ÏÖ£¬³ýÁË´«Í³µÄ bin¡¢jre µÈĿ¼£¬JDK 6 ÐÂÔöÁËÒ»¸öÃûΪ db µÄĿ¼¡£Õâ±ãÊÇ Java 6 µÄгÉÔ±£ºJava DB¡£ÕâÊÇÒ»¸ö´¿ Java ʵÏÖ¡¢¿ªÔ´µÄÊý¾Ý¿â¹ÜÀíϵͳ£¨DBMS£©£¬Ô´ÓÚ Apache Èí¼þ»ù½ð»á£¨ASF£©ÃûϵÄÏîÄ¿ Derby¡£ËüÖ»ÓÐ 2MB ´óС£¬¶Ô±È¶¯éüÉÏ G µÄÊý¾Ý¿âÀ´Ëµ¿ÉνÐäÕä¡£µ«Õâ²¢²»·Á°­ Derby ¹¦ÄÜÆ뱸£¬Ö§³Ö¼¸ºõ´ó²¿·ÖµÄÊý¾Ý¿âÓ¦ÓÃËùÐèÒªµÄÌØÐÔ¡£¸üÄÑÄܿɹóµÄÊÇ£¬ÒÀÍÐÓÚ ASF Ç¿´óµÄÉçÇøÁ¦Á¿£¬Derby µÃµ½ÁË°üÀ¨ IBM ºÍ Sun µÈ´ó¹«Ë¾ÒÔ¼°È«ÊÀ½çÓÅÐã³ÌÐòÔ±ÃǵÄÖ§³Ö¡£ÕâÒ²ÄÑ¹Ö Sun ¹«Ë¾»áÑ¡ÔñÆä 10.2.2 °æ±¾ÄÉÈëµ½ JDK 6 ÖУ¬×÷ΪÄÚǶµÄÊý¾Ý¿â¡£Õâ¾ÍºÃÏñΪ JDK ×¢ÈëÁËÒ»¹ÉȫеĻîÁ¦£ºJava ³ÌÐòÔ±²»ÔÙÐèÒªºÄ·Ñ´óÁ¿¾«Á¦°²×°ºÍÅäÖÃÊý¾Ý¿â£¬¾ÍÄܽøÐа²È«¡¢Ò×Óᢱê×¼¡¢²¢ÇÒÃâ·ÑµÄÊý¾Ý¿â±à³Ì¡£ÔÚÕâÒ»ÕÂÖУ¬ÎÒÃǽ«³õ¿ú Java DB µÄÊÀ½ç£¬À´Ì½¾¿ÈçºÎʹÓÃËü±àд³ö¹¦ÄܷḻµÄ³ÌÐò¡£
Hello, Java DB£ºÄÚǶģʽµÄ Derby
¼ÈÈ»ÓÐÁËÄÚǶ£¨embedded£©µÄÊý¾Ý¿â£¬¾ÍÈÃÎÒÃÇ´ÓÒ»¸ö¼òµ¥µÄ·¶Àý£¨´úÂëÔÚ Çåµ¥ 1 ÖÐÁгö£©¿ªÊ¼£¬ÊÔ×ÅʹÓÃËü°É¡£Õâ¸ö³ÌÐò×öÁË´ó¶àÊýÊý¾Ý¿âÓ¦Óö¼¿ÉÄÜ»á×öµÄ²Ù×÷£ºÔÚ DBMS Öд´½¨ÁËÒ»¸öÃûΪ helloDB µÄÊý¾Ý¿â£»´´½¨ÁËÒ»ÕÅÊý¾Ý±í£¬È¡ÃûΪ hellotable£»Ïò±íÄÚ²åÈëÁËÁ½ÌõÊý¾Ý£»È»ºó£¬²éѯÊý¾Ý²¢½«½á¹û´òÓ¡ÔÚ¿ØÖÆ̨ÉÏ£»×îºó£¬É¾³ý±íºÍÊý¾Ý¿â£¬ÊÍ·Å×ÊÔ´¡£
Çåµ¥ 1. HelloJavaDB µÄ´úÂë

public class HelloJavaDB {
public static void main(String[] args) {
try { // load the driver
Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
System.out.println("Load the embedded driver");
Connection conn = null;


Ïà¹ØÎĵµ£º

JAVA´æ´¢¹ý³ÌºÍµ÷ÓÃ

´úÂëÄÚÈÝ
create or replace procedure batchUpdateCustomer(p_age in number) as
begin
update CUSTOMERS set AGE=AGE+1 where AGE>p_age;
end;
ÒÔÉÏ´æ´¢¹ý³ÌÓÐÒ»¸ö²ÎÊýp_age£¬´ú±í¿Í»§µÄÄêÁ䣬ӦÓóÌÐò¿É°´ÕÕÒÔÏ·½Ê½µ÷Óô洢¹ý³Ì£º
´úÂëÄÚÈÝ
tx = session.beginTransaction();
Connection con=session.c ......

Java³ÌÐòԱлù±¾¹¦Ö®Ò»£ºSSH2

×î½üÒòΪÐèÒª£¬ÓÖÓÃSSH2½¨Á˸öÏîÄ¿½ÅÊּܡ£
Java³ÌÐòÔ±µÄSSH2µÄ֪ʶ¼¼ÄÜ£¬Èçc³ÌÐòÔ±µÄÖ¸ÕëʹÓü¼ÄÜ£¬ÄË“¹æ¶¨¶¯×÷”£¬²»ÊìϤ˵²»¹ýÈ¥¡£
ºÍJava apiÒ»Ñù£¬SSH2±¾Éí¾ÍÊÇÒ»¸öºÜºÃµÄѧϰ²ÄÁÏ£¬ÓÃÐÄÌå»áºÍÓÃÊìÆäÖÐÒ»ÖÖ£¬¿É·ÅÐÄÐÐ×ßÓÚ½­ºþ¡£
ÏÖ½«Ìå»á¼ÇÖ®ÈçÏ£º
Ò»¡¢JavaµÄ³ö´íÐÅÏ¢£¬Ö÷ÒªÔ´ÓÚÈýµã£º
ȱ·¦°ü»ò°ü°æ± ......

JavaÖнӿڵÄ×÷ÓÃ

½Ó¿ÚµÄ×÷Óà
½Ó¿ÚµÄ×÷Óüòµ¥Ò»µã¾ÍÊÇ:½Ó¿ÚÊÇÓÃÀ´±ê¼ÇÀàµÄ£¬²»Í¬µÄÀàÊôÓÚ²»Í¬µÄ½Ó¿Ú£¨Í¨¹ýÏòÉÏתÐÍ£©£¬¹ÜÀí½Ó¿Ú±È¹ÜÀí¸÷ÖÖ¸÷ÑùµÄÀà·½±ã¶àÁË£¬½Ó¿ÚÌåÏÖÁ˳éÏóµÄ¹Ûµã,ʲôÊdzéÏ󣿳éÏó¾ÍÊÇ"³éÈ¥ÏñµÄ²¿·Ö"¡£ 
ʹÓýӿڽâ¾öÎÊÌâ 
ÎÊÌâ:ÏÖÔÚÎÒÃÇҪд¸öÁ¬½ÓÊý¾Ý¿âµÄÀà¸øÓû§Ê¹Óã¬ÓÐÁ½¸öº¯Êý:Ò»¸ö·µ»ØConnection ......

java¿ìËÙÅÅÐò

¿ìËÙÅÅÐòÊǶÔðÅÝÅÅÐòµÄÒ»ÖָĽø¡£ËüµÄ»ù±¾Ë¼ÏëÊÇ£ºÍ¨¹ýÒ»ÌÉÅÅÐò½«ÒªÅÅÐòµÄÊý¾Ý·Ö¸î³É¶ÀÁ¢µÄÁ½²¿·Ö£¬ÆäÖÐÒ»²¿·ÖµÄËùÓÐÊý¾Ý¶¼±ÈÁíÍâÒ»²»²¿·ÖµÄËùÓÐÊý¾Ý¶¼ÒªÐ¡£¬È»ºóÔÙ°´´Î·½·¨¶ÔÕâÁ½²¿·ÖÊý¾Ý·Ö±ð½øÐпìËÙÅÅÐò£¬Õû¸öÅÅÐò¹ý³Ì¿ÉÒԵݹé½øÐУ¬ÒÔ´Ë´ïµ½Õû¸öÊý¾Ý±ä³ÉÓÐÐòÐòÁС£
    ¼ÙÉèÒªÅÅÐòµÄÊý×éÊÇA[1]&hellip ......

Ïê½âJava½âÎöXMLµÄËÄÖÖ·½·¨


XMLÏÖÔÚÒѾ­³ÉΪһÖÖͨÓõÄÊý¾Ý½»»»¸ñʽ,ƽ̨µÄÎÞ¹ØÐÔʹµÃºÜ¶à³¡ºÏ¶¼ÐèÒªÓõ½XML¡£±¾ÎĽ«Ïêϸ½éÉÜÓÃJava½âÎöXMLµÄËÄÖÖ·½·¨¡£
XMLÏÖÔÚÒѾ­³ÉΪһÖÖͨÓõÄÊý¾Ý½»»»¸ñʽ,ËüµÄƽ̨ÎÞ¹ØÐÔ,ÓïÑÔÎÞ¹ØÐÔ,ϵͳÎÞ¹ØÐÔ,¸øÊý¾Ý¼¯³ÉÓë½»»¥´øÀ´Á˼«´óµÄ·½±ã¡£¶ÔÓÚXML±¾ÉíµÄÓ﷨֪ʶÓë¼¼Êõϸ½Ú,ÐèÒªÔĶÁÏà¹ØµÄ¼¼ÊõÎÄÏ×,ÕâÀïÃæ°üÀ¨µÄÄÚÈÝ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ