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

Java DB ÕæµÄºÜÉñÆæ


Java DB ÕæµÄºÜÉñÆæ°¡.×îÔçÊÇÔÚNetBeansÀïÃæ¿´¼ûÓÐJavaDB.µ«ÊÇ´ÓÀ´Ã»ÓÐÈÏÕæÑо¿¹ýÕâ¸ö¶«Î÷,ÉϸöÐÇÆڲμÓSun ¿Æ¼¼ÈÕÁ˽âÁËһЩJava DBµÄ¶«Î÷¾ö¶¨×Ô¼ºÈ¥³¢ÊÔ,ûÏëµ½ÕæµÄÄÇô¼òµ¥, 2MBµÄÒ»¸öjar·ÅÔÚclasspathÀïÃæÄã¾Í¿ÉÒÔËæʱËæµØµÄʹÓÃÒ»¸öÍêÕûµÄ¹ØϵÊý¾Ý¿â.×îÖÕÓû§¸ù±¾²»ÓÃÈ¥Á˽âËûÃǵijÌÐòºóÃæÓÐÒ»¸öÔõôÑùµÄÊý¾Ý¿â,Äã¿ÉÒÔÔÚÿ´Î¹Ø±ÕÊý¾Ý¿âµÄʱºòÈ¥½øÐÐһЩ±¸·Ý²Ù×÷.ÆäʵֻҪÊÇÓ²Å̲»»µ,Êý¾Ý¿â»¹ÊDz»»áÇáÒ×Ë𻵵Ä.
JDK 6.0ÀïÃæ°üº¬µÄJDBC 4.0²»ÓÃÔÚÈ¥¸æËßJVMʹÓÃÄǸöJDBC classÁË.Ëû×Ô¼º¿ÉÒԸ㶨.ÓÃÆðÀ´ºÜ¼òµ¥.
 
ÓÃJDBC Á¬½ÓJAVA DB
 
Connection conn = DriverManager.getConnection("jdbc:derby:sample");
 
³¹µ×¹Ø±ÕÊý¾Ý¿â
DriverManager.getConnection("jdbc:derby:sample;shudown=true");
Èç¹ûÐèÒª¹Ø±ÕÊý¾Ý·þÎñ
jdbc:derby:;shutdown=true
 
µ±Êý¾Ý¿â¹Ø±ÕµÄʱºò»á±§³öÒ»¸öSQLExceptions
²¢×Ô¶¯¼Ç¼ÈÕÖ¾Ò»¸öÐÅÏ¢
(DATA TIME...)
Shutting down instance ......
 
°´ÉÏÊö·½Ê½Á¬½Ójava »á°ÑDBÎļþs±£´æÔÚuser.dir Ŀ¼ÏÂÈç¹ûÐèÒªÖ¸¶¨
Two examples:
jdbc:derby:../otherDirectiory/myDB
jdbc:derby:c:/otherDirectiory/myDB
 
All attributes are optional.
bootPassword=key
collation=collationAttribute
create=true
databaseName=nameofDatabase
dataEncryption=true
encryptionProvider=providerName
encryptionAlgorithm=algorithm
teritory=ll_CC
logDevice=logDirectoryPath
createfrom=BackupPath
restorefrom=BackupPath
rollForwardrecoveryfrom=BackupPath
password=userPassword
shutdown=true
user=userName
Ö¸¶¨ÓïÑÔÖؽ¨DBÒ»°ã²»ÓÃ.³ý·ÇºÍÄ㵱ǰµÄϵͳ²»Ò»ÖÂ
jdbc:derby:MexicanDB;create=true;territory=es_MX;collation=TERRITORY_BASED
 
´´½¨¼ÓÃܵÄÊý¾Ý¿â
jdbc:derby:encryptedDB;creat=true;dataEncryption=true;bootPassword=DBpassword
ʹÓÃÖ¸¶¨µÄKey¼ÓÃÜ
 
jdbc:derby:encDB;create=true;dataEncryption=true;encryptionAlgorithm=DES/CBC/NoPadding;encryptionKey=6162636465666768
Attention: Èç¹ûÄãÍü¼ÇÁËÕâ¸öKEYÄÇÄã¾ÍºÍÄãµÄÊý¾Ý˵88°É
 
Á¬½ÓÕâЩ¼ÓÃܵÄÊý¾Ý¿â
 
jdbc:derby:wombat;bootPassword=clo760uds2caPe
jdbc:derby:flintstone;encryptionAlgorithm=DES/CBC/NoPadding;
encryptionKey=c566bab9ee8b


Ïà¹ØÎĵµ£º

java servlet°ïÖú2

Java Servlet API˵Ã÷Îĵµ£¨2.1a°æ£©£¨¶þ£©
API¶ÔÏóµÄ˵Ã÷\r
      ÕâÒ»²¿·Ö°üº¬Á˶ÔJava Servlet APIµÄÈ«²¿ÀàºÍ½Ó¿ÚµÄÏêϸ˵Ã÷¡£Õâ¸ö˵Ã÷ÓëJavadoc API²î²»¶à£¬µ«ÊÇÕâ·ÝÎĵµÌṩÁ˸ü¶àµÄÐÅÏ¢¡£
API°üº¬ÁËÁ½¸öÈí¼þ°ü£¬Ê®¶þ¸ö½Ó¿ÚºÍ¾Å¸öÀà¡£
Èí¼þ°ü£ºjavax.serv ......

´«ÖDz¥¿ÍJAVAÅàѵOAÏîÄ¿ ÉóÅúÁ÷תģ¿é


´«ÖDz¥¿ÍJAVAÅàѵOAÏîÄ¿ ÉóÅúÁ÷תģ¿é(δ)
×ö¹¤×÷£¬×ö¼¼Êõ£¬×îÖ÷ÒªµÄ¾ÍÊÇÓÐÒ»ÖÖרÑеŦÄÜ£¬ÌرðÊÇÔÚѧϰµÄ³õÆڽ׶ÎÒ²ºÜÖØÒª£¬ÒòΪ£¬ÀÏʦÓÀÔ¶²»¿ÉÄÜ°ÑËùÓеÄ֪ʶ½»¸øÄ㣬¾ÍÏñ£¬Äã±»ÄãĸÇ×ÉúÁËÏÂÀ´£¬ËûÊÖ°ÑÊֵĽ̻áÁËÄã×ß·£¬µ«ÊÇÈËÉúµÄ·ȴÊÇÒªÄã×Ô¼ºÈ¥×ßµÄÒ»Ñù¡£ÍùÈÕµÄѧУ£¬Ò²½ö½öÊǽ̻áÁËÄã×öÈ˵ĵÀÀí£¬»òÕßÊÇѧ ......

java ÓÃÎļþ¶Ô»°¿ò´ò¿ªÎļþ

//ÎļþµÄ´ò¿ª
import java.awt.FileDialog;
import java.awt.event.*;
import java.io.*;
import java.io.File;
import java.io.FileReader;
public class FileOpen {
private FileDialog filedialog_open;
private String fileopen = null, filename = null;// ÓÃÓÚ´æ·Å´ò¿ªÎļþµØÖ· ºÍÎļþÃû
private File fi ......

JAVAÓëXML_¶ÁÊé±Ê¼Ç_2010 05 14

JAVATMÓëXML 2010-05-14
Ò»¡¢¸ÅÄî
l  ÈκÎXMLÎĵµ¶ÔÈκÎÀàÐ͵ÄÓ¦ÓÃÒÔ¼°ÕýÈ·µÄ½âÎö¶¼±ØÐë¾ßÓÐÁ¼ºÃµÄ½á¹¹well-formed
l  XMLÎĵµ¿ÉÒÔÊÇÓÐЧµØ£¨valid£©£¬µ«²¢·ÇÒ»¶¨ÒªÇóÓÐЧ¡£
l  PI£¨processing instruction£©¸ñʽ£º<?target instructions?>¡£XMLÖеĴ¦ÀíÖ¸ÁîÖ»ÄÜÊǽâÎöÆ÷¿ÉÒÔʶ±ðµÄXML±ê×¼´¦ÀíÃüÁ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ