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

Java 6 RowSet ʹÓÃÍêÈ«ÆÊÎö

Java 6 RowSet ʹÓÃÍêÈ«ÆÊÎö
C# ÌṩÁË DataSet£¬¿ÉÒÔ½«Êý¾ÝÔ´ÖеÄÊý¾Ý¶ÁÈ¡µ½ÄÚ´æÖУ¬½øÐÐÀëÏß²Ù×÷£¬È»ºóÔÙͬ²½µ½Êý¾ÝÔ´¡£Í¬Ñù£¬ÔÚ Java ÖÐÒ²ÌṩÁËÀàËƵÄʵÏÖ£¬¼´ RowSet¡£javax.sql.rowset °üÏ£¬¶¨ÒåÁËÎå¸ö²»Í¬µÄ RowSet ½Ó¿Ú£¬¹©²»Í¬µÄ³¡ºÏʹÓᣱ¾ÎĽ«·Ö±ð¶ÔÕâÎå¸ö RowSet µÄʹÓó¡ºÏÒÔ¼°Ï꾡Ó÷¨½øÐнéÉÜ£¬²¢ÇÒÃèÊöʹÓÃÖпÉÄܳöÏÖµÄÎÊÌ⣬ÒÔÌáÐѶÁÕßÔÚʵ¼ÊʹÓÃʱÈÆ¿ªÕâЩÎÊÌâ¡£
RowSet ¼ò½é
javax.sql.rowset ×Ô JDK 1.4 ÒýÈ룬´Ó JDK 5.0 ¿ªÊ¼ÌṩÁ˲ο¼ÊµÏÖ¡£ËüÖ÷Òª°üÀ¨ CachedRowSet£¬WebRowSet£¬FilteredRowSet£¬JoinRowSet ºÍ JdbcRowSet¡£ ³ýÁË JdbcRowSet ÒÀÈ»±£³Ö×ÅÓëÊý¾ÝÔ´µÄÁ¬½ÓÖ®Í⣬ÆäÓàËĸö¶¼ÊÇ Disconnected RowSet¡£
Ïà±È½Ï java.sql.ResultSet ¶øÑÔ£¬RowSet µÄÀëÏß²Ù×÷Äܹ»ÓÐЧµÄÀûÓüÆËã»úÔ½À´Ô½³ä×ãµÄÄڴ棬¼õÇáÊý¾Ý¿â·þÎñÆ÷µÄ¸ºµ££¬ÓÉÓÚÊý¾Ý²Ù×÷¶¼ÊÇÔÚÄÚ´æÖнøÐÐÈ»ºóÅúÁ¿Ìá½»µ½Êý¾ÝÔ´£¬Áé»îÐÔºÍÐÔÄܶ¼ÓÐÁ˺ܴóµÄÌá¸ß¡£RowSet ĬÈÏÊÇÒ»¸ö¿É¹ö¶¯£¬¿É¸üУ¬¿ÉÐòÁл¯µÄ½á¹û¼¯£¬¶øÇÒËü×÷Ϊ JavaBeans£¬¿ÉÒÔ·½±ãµØÔÚÍøÂç¼ä´«Ê䣬ÓÃÓÚÁ½¶ËµÄÊý¾Ýͬ²½¡£
 
»ØÒ³Ê×
RowSet ¼Ì³Ð×Ô ResultSet£¬ÆäËûÎå¸ö RowSet ½Ó¿Ú¾ù¼Ì³Ð×Ô RowSet¡£ÏÂͼÊÇËüÃǵļ̳йØϵ¡£
CachedRowSet
×î³£ÓõÄÒ»ÖÖ RowSet¡£ÆäËûÈýÖÖ RowSet£¨WebRowSet£¬FilteredRowSet£¬JoinRowSet£©¶¼ÊÇÖ±½Ó»ò¼ä½Ó¼Ì³ÐÓÚËü²¢½øÐÐÁËÀ©Õ¹¡£ËüÌṩÁ˶ÔÊý¾Ý¿âµÄÀëÏß²Ù×÷£¬¿ÉÒÔ½«Êý¾Ý¶ÁÈ¡µ½ÄÚ´æÖнøÐÐÔöɾ¸Ä²é£¬ÔÙͬ²½µ½Êý¾ÝÔ´¡£¿É´®Ðл¯£¬¿É×÷Ϊ JavaBeans ÔÚÍøÂç¼ä´«Êä¡£Ö§³Öʼþ¼àÌý£¬·ÖÒ³µÈÌØÐÔ¡£
WebRowSet
¼Ì³Ð×Ô CachedRowSet£¬²¢¿ÉÒÔ½« WebRowSet дµ½ XML ÎļþÖУ¬Ò²¿ÉÒÔÓ÷ûºÏ¹æ·¶µÄ XML ÎļþÀ´Ìî³ä WebRowSet¡£
FilteredRowSet
ͨ¹ýÉèÖà Predicate£¨ÔÚ javax.sql.rowset °üÖУ©£¬ÌṩÊý¾Ý¹ýÂ˵ŦÄÜ¡£¿ÉÒÔ¸ù¾Ý²»Í¬µÄÌõ¼þ¶Ô RowSet ÖеÄÊý¾Ý½øÐÐɸѡºÍ¹ýÂË¡£
JoinRowSet
ÌṩÀàËÆ SQL JOIN µÄ¹¦ÄÜ£¬½«²»Í¬µÄ RowSet ÖеÄÊý¾Ý×éºÏÆðÀ´¡£Ä¿Ç°ÔÚ Java 6 ÖÐÖ»Ö§³ÖÄÚÁª£¨Inner Join£©¡£
JdbcRowSet
¶Ô ResultSet µÄÒ»¸ö·â×°£¬Ê¹ÆäÄܹ»×÷Ϊ JavaBeans ±»Ê¹Óã¬ÊÇΨһһ¸ö±£³ÖÊý¾Ý¿âÁ¬½ÓµÄ RowSet¡£
http://hongan.javaeye.com/blog/202317
Ìî³ä CachedRowSet µÄÁ½ÖÖ·½Ê½
CachedRowSet ÌṩÁËÁ½¸öÓÃÀ´»ñÈ¡Êý¾ÝµÄ·½·¨£¬Ò»¸öÊÇ execute()£¬ÁíÒ»¸öÊÇ populate(ResultSet)¡£
ʹÓà execute() Ìî³ä CachedRowSet ʱ£¬ÐèÒªÉèÖÃÊý¾Ý¿âÁ¬½Ó²ÎÊýºÍ²éѯÃüÁî command£


Ïà¹ØÎĵµ£º

java rmi¼òµ¥Àý×Ó

----------½Ó¿Ú------------
import java.rmi.*;
public interface HelloIn extends java.rmi.Remote{
 String sayHello() throws RemoteException;
}
--------ʵÏÖÀà-------------
import java.rmi.*;
import java.net.*;
import java.rmi.registry.*;
import java.rmi.server.*;
public class Hello exten ......

JAVA½«ÄÚÈÝ×·¼Óµ½Îļþβ²¿

import java.io.FileWriter;
import java.io.IOException;
import java.io.RandomAccessFile;
/**
 * ½«ÄÚÈÝ×·¼Óµ½Îļþβ²¿
 */
public class AppendToFile
{
    /**
     * A·½·¨×·¼ÓÎļþ£ºÊ¹ÓÃRandomAccessFile
     *
    ......

JavaÖеÄtransient£¬volatileºÍstrictfp¹Ø¼ü×Ö

Java
ÖеÄtransient£¬volatileºÍstrictfp¹Ø¼ü×Ö
    Èç¹ûÓÃtransientÉùÃ÷Ò»¸öʵÀý±äÁ¿£¬µ±¶ÔÏó´æ´¢Ê±£¬ËüµÄÖµ²»ÐèҪά³Ö¡£ÀýÈ磺
Java
´úÂë
class
 T {  
   transient
 
int
 a;  
//²»ÐèҪά³Ö
  
   int ......

C#, Java ºÍ Matlab 6.5 Êé¼®

ed2k://|file|[ReadFree]_C#.¿ª·¢ÈËÔ±Ö¸ÄÏ——ASP_NET¡¢XML¡¢web·þÎñÓë.ADO_NET_11030729.rar|6563070|B1CBF4D0032C8D78FB10F5F2AE6C3882|/
ed2k://|file|[ReadFree]_C#ÍøÂçÓ¦Óñà³Ì_11041620.rar|8063056|7044A65903D86BF88BE8AF26D8E02B61|/
ed2k://|file|[ReadFree]_Java.P2P³ÌÐòÉè¼Æ_11052086.rar|8742852| ......

javaÐÔÄܵÄÓÅ»¯(Ò»)

 
ÎÒ¶ÔÎÊÌâµÄÀí½â£ºÃæÊÔÖеÄÒ»¸öÎÊÌ⣬¾ÓÈ»ÏëÁË°ëÌìûÓÐʲôͷÐ÷£¬ÎÒÏ뻹ÊÇûÓÐ˼¿¼£¬Ã»ÓлýÀÛ¹ý¡£ÆäʵÍêÈ«¿ÉÒÔ˵ÉÏһЩСϸ½Ú£¬±ÈÈçÓÃStringBuffer´úÌæString£¬ÓÃHashMap´úÌæHashtable, ³Ë·¨²Ù×÷ÓÃλÒÆ£¬¾¡Á¿¸´ÓÃÒÑÓеľ­¹ý¼ìÑéµÄ¸ßЧ´úÂëµÈµÈ¡£
    ÏÂÃæµÄÎÄÕÂתÔØ×Ô±ðµÄÍøÕ¾£¬Ð´µÃºÜרҵ£¬Öܵ½£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ