锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产人成精品,国产亚洲精品国产,亚洲AV永久纯肉无码精品动漫 http://www.tkk7.com/beijing2008/category/40642.html楸兼繪槸鍦ㄦ搗閲岃繃瀹屼竴鐢?/description>zh-cnTue, 29 Jun 2010 05:58:26 GMTTue, 29 Jun 2010 05:58:26 GMT60濡誨瓙VS鎯呬漢VS綰㈤鐭ュ繁http://www.tkk7.com/beijing2008/archive/2010/06/27/324622.html.Sun.SunSun, 27 Jun 2010 13:14:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/06/27/324622.htmlhttp://www.tkk7.com/beijing2008/comments/324622.htmlhttp://www.tkk7.com/beijing2008/archive/2010/06/27/324622.html#Feedback0http://www.tkk7.com/beijing2008/comments/commentRss/324622.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/324622.html鎯呬漢鏄竴縐嶈ˉ鍋匡紝琛ュ伩浣犳兂浠庡瀛愰偅寰楀埌鍗村張鏃犳硶寰楀埌鐨勬縺鎯咃紱
綰㈤鐭ュ繁灝辨槸涓縐嶇偣鎷紝鐐規嫧浣犲績涓殑榪鋒觸銆?nbsp; 闃呰鍏ㄦ枃

.Sun 2010-06-27 21:14 鍙戣〃璇勮
]]>
鎬蹇電綏綰沖皵澶?浜?http://www.tkk7.com/beijing2008/archive/2010/06/22/324107.html.Sun.SunMon, 21 Jun 2010 17:38:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/06/22/324107.htmlhttp://www.tkk7.com/beijing2008/comments/324107.htmlhttp://www.tkk7.com/beijing2008/archive/2010/06/22/324107.html#Feedback2http://www.tkk7.com/beijing2008/comments/commentRss/324107.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/324107.html闃呰鍏ㄦ枃

.Sun 2010-06-22 01:38 鍙戣〃璇勮
]]>
鏃犻http://www.tkk7.com/beijing2008/archive/2010/06/20/324006.html.Sun.SunSun, 20 Jun 2010 09:43:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/06/20/324006.htmlhttp://www.tkk7.com/beijing2008/comments/324006.htmlhttp://www.tkk7.com/beijing2008/archive/2010/06/20/324006.html#Feedback0http://www.tkk7.com/beijing2008/comments/commentRss/324006.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/324006.html鍩庡競鐏伀浣曟涓囧
閭f槦鏄熺偣鐐圭殑鍏変寒
鏄犺‖椋庨洦鍋ョ杞葷泩鐨勮垶姝?br /> 榪介愯嚜鐢卞艦楠哥殑鏀炬氮
鑰屽亸榪滀埂鏉戞矇瀵傚湪鑷劧涓?br /> 鍙湁涓鎭井寮辯伅褰卞湪娓呴涓憞鏅?br /> 絳夊緟甯屽唨鐨勫啀鐢?br /> 娓存湜鍐掑嚭鎷斿湴妤兼埧
浼ら濋殣榪涙ⅵ鐨勫湡澹?br />

.Sun 2010-06-20 17:43 鍙戣〃璇勮
]]>
webService錛歅rovider org.apache.xalan.processor.TransformerFactoryImpl not foundhttp://www.tkk7.com/beijing2008/archive/2010/05/13/320928.html.Sun.SunThu, 13 May 2010 13:28:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/05/13/320928.htmlhttp://www.tkk7.com/beijing2008/comments/320928.htmlhttp://www.tkk7.com/beijing2008/archive/2010/05/13/320928.html#Feedback0http://www.tkk7.com/beijing2008/comments/commentRss/320928.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/320928.htmlwebService欏圭洰
Tomcat5.0.28 + JDK1.5 + xfire1.2.6

欏圭洰浠嶵omcat6.0欏圭洰鎷瘋礉鍥炴潵錛宼omcat6.0榪愯姝e父銆?br /> 闂鍑哄湪Tomcat鐨?br /> \common\endorsed\涓?br /> 鍒犻櫎鎴朼pache緗戠珯涓嬭澆鏇存柊榪欎袱涓猨ar鍗沖彲銆?br />



.Sun 2010-05-13 21:28 鍙戣〃璇勮
]]>
鍏充簬 瀛楄妭鐮佸寮?鎽樿http://www.tkk7.com/beijing2008/archive/2010/05/08/320382.html.Sun.SunSat, 08 May 2010 15:57:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/05/08/320382.htmlhttp://www.tkk7.com/beijing2008/comments/320382.htmlhttp://www.tkk7.com/beijing2008/archive/2010/05/08/320382.html#Feedback1http://www.tkk7.com/beijing2008/comments/commentRss/320382.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/320382.htmlJPOX requires that all classes that are persisted implement PersistenceCapable, an interface defined by JDO. Why should we do this, Hibernate/TopLink dont need it ?. Well thats a simple question really

  • JPOX uses this PersistenceCapable interface, and adds it using bytecode enhancement techniques so that you never need to actually change your classes. This means that you get transparent persistence, and your classes always remain your classes. ORM tools that use a mix of reflection and/or proxies are not totally transparent.
  • JPOX' use of PersistenceCapable provides transparent change tracking. When any change is made to an object the change creates a notification to JPOX allowing it to be optimally persisted. ORM tools that dont have access to such change tracking have to use reflection to detect changes. The performance of this process will break down as soon as you read a large number of objects, but modify just a handful, with these tools having to compare all object states for modification at transaction commit time.

In a JDO-enabled application there are 3 categories of classes. These are PersistenceCapable, PersistenceAware and normal classes. The Meta-Data defines which classes fit into these categories. To give an example for JDO, we have 3 classes. The class A is to be persisted in the datastore. The class B directly updates the fields of class A but doesn't need persisting. The class C is not involved in the persistence process. We would define JDO MetaData for these classes like this

1 <class name="A" persistence-modifier="persistence-capable">
2     <field name="myField">
3         
4     </field>
5     
6 </class>
7 <class name="B" persistence-modifier="persistence-aware">
8 </class>


 

So our MetaData is mainly for those classes that are PersistenceCapable and are to be persisted to the datastore (we don't really need the persistence-modifier for thse classes since this is the default). For PersistenceAware classes we simply notate that the class knows about persistence. We don't define MetaData for any class that has no knowledge of persistence.

JDO requires that all classes to be persisted must implement the PersistenceCapable interface . Users could manually do this themselves but this would impose work on them. JDO permits the use of a byte-code enhancer that converts the users normal classes to implement this interface. JPOX provides its own byte-code enhancer (this can be found in the jpox-enhancer.jar). This section describes how to use this enhancer with JPOX. The JPOX enhancer fully implements JDO2 and so is the recommended choice when persisting using the JDO2 API. The enhancement process adds the necessary methods to the users class in order to implement PersistenceCapable.



The example above doesn't show all PersistenceCapable methods, but demonstrates that all added methods and fields are prefixed with "jdo" to distinguish them from the users own methods and fields. Also each persistent field of the class will be given a jdoGetXXX, jdoSetXXX method so that accesses of these fields are intercepted so that JDO can manage their "dirty" state.

The MetaData defines which classes are required to be persisted, and also defines which aspects of persistence each class requires. For example if a class has the detachable attribute set to true, then that class will be enhanced to also implement Detachable



Again, the example above doesn't show all methods added for the Detachable interface but the main thing to know is that the detached state (object id of the datastore object, the version of the datastore object when it was detached, and which fields were detached is stored in "jdoDetachedState"). Please see the JDO spec for more details.

If the MetaData is changed in any way during development, the classes should always be recompiled and re-enhanced afterwards.

Byte-Code Enhancement Myths

Some groups (e.g Hibernate) perpetuated arguments against "byte-code enhancement" saying that it was somehow 'evil'. The most common were :-

  • Slows down the code-test cycle. This is erroneous since you only need to enhance just before test and the provided plugins for Ant, Eclipse and Maven all do the enhancement job automatically and rapidly.
  • Is less "lazy" than the proxy approach since you have to load the object as soon as you get a pointer to it. In a 1-1 relation you have to load the object then since you would cause issues with null pointers otherwise. With 1-N relations you load the elements of the collection/map only when you access them and not the collection/map. Hardly an issue then is it!
  • Fail to detect changes to public fields unless you enhance your client code. Firstly very few people will be writing code with public fields since it is bad practice in an OO design, and secondly, this is why we have "PersistenceAware" classes.

So as you can see, there are no valid reasons against byte-code enhancement, and the pluses are that runtime detection of dirty events on objects is much quicker, hence your persistence layer operates faster without any need for iterative reflection-based checks. The fact is that Hibernate itself also now has a mode whereby you can do bytecode enhancement although not the default mode of Hibernate. So maybe it wasn't so evil after all ?

 



.Sun 2010-05-08 23:57 鍙戣〃璇勮
]]>
MySQL #1005 - Can't create table(...) (errno: 121) http://www.tkk7.com/beijing2008/archive/2010/05/05/320152.html.Sun.SunWed, 05 May 2010 14:30:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/05/05/320152.htmlhttp://www.tkk7.com/beijing2008/comments/320152.htmlhttp://www.tkk7.com/beijing2008/archive/2010/05/05/320152.html#Feedback0http://www.tkk7.com/beijing2008/comments/commentRss/320152.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/320152.html闃呰鍏ㄦ枃

.Sun 2010-05-05 22:30 鍙戣〃璇勮
]]>
鑵捐鎬庝箞鑳借繖鏍鳳紵http://www.tkk7.com/beijing2008/archive/2010/04/22/319069.html.Sun.SunThu, 22 Apr 2010 02:01:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/04/22/319069.htmlhttp://www.tkk7.com/beijing2008/comments/319069.htmlhttp://www.tkk7.com/beijing2008/archive/2010/04/22/319069.html#Feedback3http://www.tkk7.com/beijing2008/comments/commentRss/319069.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/319069.html鑵捐榪欎箞澶х殑浼佷笟錛孮Q絀洪棿鐨勬棩蹇楃珶鐒朵笉鎺у埗澶氭鎻愪氦鐨勯棶棰樸?br /> 涓浗鐨勫叕鍙擱兘榪欎箞嫻簛銆?br /> 灝忓叕鍙鎬負浜嗙敓瀛樿繕鑳界悊瑙c?br /> 鑵捐榪欎箞澶х殑綰蟲柉杈懼厠涓婂競浼佷笟涔熻繖鏍?..



.Sun 2010-04-22 10:01 鍙戣〃璇勮
]]>
鍏充簬struts鍔ㄦ乫orm_DynaActionFormhttp://www.tkk7.com/beijing2008/archive/2010/04/20/318862.html.Sun.SunTue, 20 Apr 2010 07:56:00 GMThttp://www.tkk7.com/beijing2008/archive/2010/04/20/318862.htmlhttp://www.tkk7.com/beijing2008/comments/318862.htmlhttp://www.tkk7.com/beijing2008/archive/2010/04/20/318862.html#Feedback1http://www.tkk7.com/beijing2008/comments/commentRss/318862.htmlhttp://www.tkk7.com/beijing2008/services/trackbacks/318862.html浠婂ぉ鏈変漢闂墠鍙拌〃鍗昮orm鍔ㄦ佺敓鎴愶紝鍚庡彴浣跨敤DynaActionForm鎬庝箞鐢紝璇翠簡浠栨病鎳傦紝灝卞啓浜嗕釜渚嬪瓙銆?br />
Action閰嶇疆

<action
      attribute
="testMappingForm"
      input
="/jsp"
      name
="testMappingForm"
      path
="/testMapping"
      scope
="request"
      type
="com.modo.struts.action.TestMappingAction" />


ActionForm閰嶇疆

<form-bean name="testMappingForm" type="org.apache.struts.action.DynaActionForm">
        
<form-property name="fnames" type="java.util.HashMap"></form-property>
    
</form-bean>

璇鋒敞鎰弉ame灞炴э紝榪欎釜灞炴у悗闈㈣鐢ㄥ埌銆?br />

鐒跺悗鏄〉闈ndex.jsp,榪欓噷鍙ā鎷熷姩鎬?/p>

<html:form action="/testMapping.do" method="post">
   
<%
   
for(int i=0;i<5;i++){   
   
%>
           
<html:text property="<%="fnames(name_"+i+")"%>" value="<%="gangye_"+i%>"></html:text><br>
   
<%}%>
   
<br>
   
<html:submit value="Submit Form" />
   
</html:form>

璇鋒敞鎰廻tml:text鐨刾roperty鏍囩銆?br />

index.jsp鏁堟灉濡備笅

鍚庡彴Action

public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        HashMap   hm
=(HashMap)((DynaActionForm)form).get("fnames");
        Iterator it 
= hm.entrySet().iterator();
        Map.Entry entry 
= null;
        
while(it.hasNext()){
            entry  
= (Map.Entry)it.next();
            System.out.println(entry.getKey() 
+ " = " + entry.getValue());
        }
        
return null;
    }


杈撳嚭琛ㄥ崟欏?/p>

name_4 = gangye_4
name_0 
= gangye_0
name_2 
= gangye_2
name_1 
= gangye_1
name_3 
= gangye_3



 



 



.Sun 2010-04-20 15:56 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲精品永久www忘忧草| 国内精品久久久久影院亚洲| 久久久久国产精品免费看| 亚洲国产成人精品激情| 亚洲Aⅴ无码一区二区二三区软件| a级毛片在线免费观看| 亚洲区视频在线观看| 久久久久国产成人精品亚洲午夜| 中文字幕免费在线| 美女视频黄a视频全免费网站一区| 国产亚洲婷婷香蕉久久精品| AV免费网址在线观看| 不卡视频免费在线观看| 99久久婷婷国产综合亚洲| 亚洲伊人久久大香线蕉综合图片| 国内精自视频品线六区免费| www一区二区www免费| 亚洲国产日产无码精品| 国产午夜亚洲精品理论片不卡| 黄色片在线免费观看| 久久精品国产免费一区| 亚洲Aⅴ在线无码播放毛片一线天| 精品亚洲麻豆1区2区3区| heyzo亚洲精品日韩| 日韩不卡免费视频| 野花香在线视频免费观看大全| 亚洲s码欧洲m码吹潮| 亚洲精品视频在线播放| 国产精品亚洲综合一区| 女人被免费视频网站| 一级毛片免费毛片一级毛片免费 | 亚洲av永久无码嘿嘿嘿| 亚洲精品国产精品国自产观看| 免费电视剧在线观看| 97在线视频免费| 国色精品va在线观看免费视频 | 久久亚洲中文字幕精品一区 | 亚洲一区二区三区91| 337p日本欧洲亚洲大胆精品555588 | 国产亚洲视频在线播放大全| 亚洲av极品无码专区在线观看|