锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲av麻豆aⅴ无码电影,亚洲AV无码一区二区三区电影 ,亚洲一区精彩视频http://m.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://m.tkk7.com/beijing2008/archive/2010/06/27/324622.html.Sun.SunSun, 27 Jun 2010 13:14:00 GMThttp://m.tkk7.com/beijing2008/archive/2010/06/27/324622.htmlhttp://m.tkk7.com/beijing2008/comments/324622.htmlhttp://m.tkk7.com/beijing2008/archive/2010/06/27/324622.html#Feedback0http://m.tkk7.com/beijing2008/comments/commentRss/324622.htmlhttp://m.tkk7.com/beijing2008/services/trackbacks/324622.html鎯呬漢鏄竴縐嶈ˉ鍋匡紝琛ュ伩浣犳兂浠庡瀛愰偅寰楀埌鍗村張鏃犳硶寰楀埌鐨勬縺鎯咃紱
綰㈤鐭ュ繁灝辨槸涓縐嶇偣鎷紝鐐規嫧浣犲績涓殑榪鋒觸銆?nbsp; 闃呰鍏ㄦ枃

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

.Sun 2010-06-22 01:38 鍙戣〃璇勮
]]>
鏃犻http://m.tkk7.com/beijing2008/archive/2010/06/20/324006.html.Sun.SunSun, 20 Jun 2010 09:43:00 GMThttp://m.tkk7.com/beijing2008/archive/2010/06/20/324006.htmlhttp://m.tkk7.com/beijing2008/comments/324006.htmlhttp://m.tkk7.com/beijing2008/archive/2010/06/20/324006.html#Feedback0http://m.tkk7.com/beijing2008/comments/commentRss/324006.htmlhttp://m.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://m.tkk7.com/beijing2008/archive/2010/05/13/320928.html.Sun.SunThu, 13 May 2010 13:28:00 GMThttp://m.tkk7.com/beijing2008/archive/2010/05/13/320928.htmlhttp://m.tkk7.com/beijing2008/comments/320928.htmlhttp://m.tkk7.com/beijing2008/archive/2010/05/13/320928.html#Feedback0http://m.tkk7.com/beijing2008/comments/commentRss/320928.htmlhttp://m.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://m.tkk7.com/beijing2008/archive/2010/05/08/320382.html.Sun.SunSat, 08 May 2010 15:57:00 GMThttp://m.tkk7.com/beijing2008/archive/2010/05/08/320382.htmlhttp://m.tkk7.com/beijing2008/comments/320382.htmlhttp://m.tkk7.com/beijing2008/archive/2010/05/08/320382.html#Feedback1http://m.tkk7.com/beijing2008/comments/commentRss/320382.htmlhttp://m.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://m.tkk7.com/beijing2008/archive/2010/05/05/320152.html.Sun.SunWed, 05 May 2010 14:30:00 GMThttp://m.tkk7.com/beijing2008/archive/2010/05/05/320152.htmlhttp://m.tkk7.com/beijing2008/comments/320152.htmlhttp://m.tkk7.com/beijing2008/archive/2010/05/05/320152.html#Feedback0http://m.tkk7.com/beijing2008/comments/commentRss/320152.htmlhttp://m.tkk7.com/beijing2008/services/trackbacks/320152.html闃呰鍏ㄦ枃

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



.Sun 2010-04-22 10:01 鍙戣〃璇勮
]]>
鍏充簬struts鍔ㄦ乫orm_DynaActionFormhttp://m.tkk7.com/beijing2008/archive/2010/04/20/318862.html.Sun.SunTue, 20 Apr 2010 07:56:00 GMThttp://m.tkk7.com/beijing2008/archive/2010/04/20/318862.htmlhttp://m.tkk7.com/beijing2008/comments/318862.htmlhttp://m.tkk7.com/beijing2008/archive/2010/04/20/318862.html#Feedback1http://m.tkk7.com/beijing2008/comments/commentRss/318862.htmlhttp://m.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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 中文字幕免费在线| 亚洲第一区精品观看| av大片在线无码免费| 男人的天堂亚洲一区二区三区| 亚洲国产中文v高清在线观看| 亚洲视频在线观看免费| 亚洲av无码专区亚洲av不卡| 久久午夜夜伦鲁鲁片免费无码| 日韩激情无码免费毛片| 久久亚洲私人国产精品vA| 美女啪啪网站又黄又免费| 在免费jizzjizz在线播| 亚洲欧洲久久久精品| 人妻免费久久久久久久了| 在线观看免费a∨网站| 7777久久亚洲中文字幕蜜桃| 国产精品午夜免费观看网站 | 91成人免费福利网站在线| 免费看www视频| 久久久久亚洲AV成人片| 无码精品A∨在线观看免费| 亚洲AV福利天堂一区二区三| eeuss影院免费直达入口| 亚洲精品无码成人片久久| 四虎影视久久久免费| 亚洲va国产va天堂va久久| 成av免费大片黄在线观看| 亚洲国产成人久久精品99| a级精品九九九大片免费看| 亚洲成人免费网站| 99国产精品免费观看视频| 亚洲小说区图片区另类春色| 男人j进女人p免费视频| 国产成人青青热久免费精品| 亚洲一区二区三区免费观看| 国产2021精品视频免费播放| 亚洲熟妇无码爱v在线观看| 啦啦啦完整版免费视频在线观看 | 深夜a级毛片免费无码| 亚洲国产精品VA在线看黑人| 91福利免费网站在线观看|