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

JAVAÉè¼Æģʽ ÊÂÎñ´¦Àí

ÊÂÎñ´¦ÀíÊÇÆóÒµÓ¦ÓÃÐèÒª½â¾öµÄ×îÖ÷ÒªµÄÎÊÌâÖ®Ò»¡£J2EEͨ¹ýJTAÌṩÁËÍêÕûµÄÊÂÎñ¹ÜÀíÄÜÁ¦£¬°üÀ¨¶à¸öÊÂÎñÐÔ×ÊÔ´µÄ¹ÜÀíÄÜÁ¦¡£µ«ÊǴ󲿷ÖÓ¦Óö¼ÊÇÔËÐÐÔÚµ¥Ò»µÄÊÂÎñÐÔ×ÊÔ´Ö®ÉÏ£¨Ò»¸öÊý¾Ý¿â£©£¬ËûÃDz¢²»ÐèҪȫ¾ÖÐÔµÄÊÂÎñ·þÎñ¡£±¾µØÊÂÎñ·þÎñÒÑÈ»×ã¹»(±ÈÈçJDBCÊÂÎñ¹ÜÀí£©¡£
     ±¾ÎIJ¢²»ÌÖÂÛÓ¦¸Ã²ÉÓúÎÖÖÊÂÎñ´¦Àí·½Ê½£¬Ö÷ҪĿµÄÊÇÌÖÂÛÈçºÎ¸üΪÓÅÑŵØÉè¼ÆÊÂÎñ·þÎñ¡£½öÒÔJDBCÊÂÎñ´¦ÀíΪÀý¡£Éæ¼°µ½µÄDAO£¬Factory,Proxy,DecoratorµÈģʽ¸ÅÄÇëÔĶÁÏà¹Ø×ÊÁÏ¡£
     Ò²ÐíÄãÌý˵¹ý£¬ÊÂÎñ´¦ÀíÓ¦¸Ã×öÔÚservice²ã£¬Ò²ÐíÄãÒ²ÕýÕâÑù×ö£¬µ«ÊÇ·ñÖªµÀΪʲôÕâÑù×ö£¿ÎªÊ²Ã´²»·ÅÔÚDAO²ã×öÊÂÎñ´¦Àí¡£ÏÔ¶øÒ×¼ûµÄÔ­ÒòÊÇÒµÎñ²ã½Ó¿ÚµÄÿһ¸ö·½·¨ÓÐʱºò¶¼ÊÇÒ»¸öÒµÎñÓÃÀý£¨User Case£©£¬ËüÐèÒªµ÷Óò»Í¬µÄDAO¶ÔÏóÀ´Íê³ÉÒ»¸öÒµÎñ·½·¨¡£±ÈÈç¼òµ¥µØÒÔÍøÉÏÊéµê¹ºÊé×îºóµÄÈ·¶¨¶¨µ¥ÎªÀý£¬ÒµÎñ·½·¨Ê×ÏÈÊǵ÷ÓÃBookDAO¶ÔÏó£¨Ò»°ãÊÇͨ¹ýDAO¹¤³§²úÉú£©£¬BookDAOÅжÏÊÇ·ñ»¹Óпâ´æÓàÁ¿£¬È¡µÃ¸ÃÊéµÄ¼Û¸ñÐÅÏ¢µÈ£¬È»ºóµ÷ÓÃCustomerDAO´ÓÕÊ»§¿Û³ýÏàÓ¦µÄ·ÑÓÃÒÔ¼°¼Ç¼ÐÅÏ¢£¬È»ºóÊÇÆäËû·þÎñ£¨Í¨Öª¹ÜÀíÔ±µÈ£©¡£¼ò»¯ÒµÎñÁ÷³Ì´ó¸ÅÈç´Ë:
     ×¢Òâ,ÎÒÃǵÄÀý×ÓºöÂÔÁËÁ¬½ÓµÄ´¦Àí£¬Ö»Òª±£Ö¤Í¬Ò»¸öÏß³ÌÄÚÈ¡µÄÊÇÏàͬµÄÁ¬½Ó¼´¿É£¨¿ÉÓÃThreadLocalʵÏÖ£©£º
     Ê×ÏÈÊÇÒµÎñ½Ó¿Ú£¬Õë¶Ô½Ó¿Ú£¬¶ø²»ÊÇÕë¶ÔÀà±à³Ì£º
 
public interface BookStoreManager{
          public boolean buyBook(String bookId,int quantity)throws SystemException;
           ....ÆäËûÒµÎñ·½·¨
     }
     ½ÓÏÂÀ´¾ÍÊÇÒµÎñ½Ó¿ÚµÄʵÏÖÀà??ÒµÎñ¶ÔÏó£º
 
public class BookStoreManagerImpl implements BookStoreManager{
         public boolean buyBook(String bookId)throws SystemException{
              Connection conn=ConnectionManager.getConnection();//»ñÈ¡Êý¾Ý¿âÁ¬½Ó
              boolean b=false;
           &n


Ïà¹ØÎĵµ£º

JavaÏà¶Ô·¾¶¶ÁÈ¡Îļþ


²»¹ÜÄãÊÇÐÂÊÖ»¹ÊÇÀÏÄñ£¬ÔÚ³ÌÐòÖжÁÈ¡×ÊÔ´Îļþ×Ü»áÓöµ½Ò»Ð©ÕÒ²»µ½ÎļþµÄÎÊÌ⣬ÕâÓëJavaµ×²ãµÄʵÏÖÓйأ¬²»ÄÜËãbug£¬Ö»Òª·½·¨µÃµ±£¬ÎÊÌ⻹ÊÇ¿ÉÒÔ½â¾öµÄ¡£
 
ÏîÄ¿µÄÎļþ¼Ð½á¹¹£º
repathtest 
©À©¤src 
©¦    ©¸©¤com 
©¦        &nb ......

java֪ʶµã

1.  ³éÏó
³éÏó¾ÍÊǺöÂÔÒ»¸öÖ÷ÌâÖÐÓ뵱ǰĿ±êÎ޹صÄÄÇЩ·½Ã棬ÒÔ±ã¸ü³ä·ÖµØ×¢ÒâÓ뵱ǰĿ±êÓйصķ½Ãæ¡£³éÏó²¢²»´òËãÁ˽âÈ«²¿ÎÊÌ⣬¶øÖ»ÊÇÑ¡ÔñÆäÖеÄÒ»²¿·Ö£¬ÔÝʱ²»Óò¿·Öϸ½Ú¡£³éÏó°üÀ¨Á½¸ö·½Ã棬һÊǹý³Ì³éÏ󣬶þÊÇÊý¾Ý³éÏó¡£
2.  ¼Ì³Ð
¼Ì³ÐÊÇÒ»ÖÖÁª½áÀàµÄ²ã´ÎÄ£ÐÍ£¬²¢ÇÒÔÊÐíºÍ¹ÄÀøÀàµÄÖØÓã¬ËüÌṩÁËÒ»ÖÖÃ÷È· ......

ʵսÌå»áJava¶àÏ̱߳à³Ì¾«Òª

     ÔÚ Java ³ÌÐòÖÐʹÓöàÏß³ÌÒª±ÈÔÚ C »ò C++ ÖÐÈÝÒ׵ö࣬ÕâÊÇÒòΪ Java ±à³ÌÓïÑÔÌṩÁËÓïÑÔ¼¶µÄÖ§³Ö¡£±¾ÎÄͨ¹ý¼òµ¥µÄ±à³ÌʾÀýÀ´ËµÃ÷ Java ³ÌÐòÖеĶàÏß³ÌÊǶàôֱ¹Û¡£¶ÁÍê±¾ÎÄÒÔºó£¬Óû§Ó¦¸ÃÄܹ»±àд¼òµ¥µÄ¶àÏ̳߳ÌÐò¡£
 
¡¡   Ϊʲô»áÅŶӵȴý?
¡¡¡¡ÏÂÃæµÄÕâ¸ö¼òµ¥µÄ Java ³ÌÐ ......

JAVAÀàʵÏÖÐòÁл¯µÄ·½·¨ÊÇ£¿

JavaÖÐͨ¹ýimplements SerializableÀ´ÊµÏÖ¶ÔÏóµÄÐòÁл¯¡£ÆäʵSerializable½Ó¿ÚÖв¢Ã»ÓÐÐèҪʵÏֵķ½·¨£¬×¢Ã÷ij¸öÀàimplements SerializableÖ»ÊÇΪÁ˱êʶ»ò±íÃ÷Õâ¸öÀà¿ÉÒÔ±»ÐòÁл¯¡£
       ÄÇôʲôÊÇÐòÁл¯ÄØ£¬ÐòÁл¯ÓÖÓÐʲô×÷ÓÃÄØ£¿
       Ò»¸öÀ࣬»ò ......

Siebel Java Data Bean: Query muti record

Following code is used for retrive all the record of Business Component from DataBase. package com.muti.records ;
import com.siebel.data.*;
import com.siebel.data.SiebelException;
public class DataBeanDemo {
private SiebelDataBean m_dataBean = null;
private SiebelBusObject m_busObject ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ