<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    KevinGong

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      15 Posts :: 1 Stories :: 9 Comments :: 0 Trackbacks

    #

         摘要: 今天系統需求需要,用JS寫了個代碼,希望有需要得朋友可以看看! ?1 <! DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Strict//EN" ?2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" &...  閱讀全文
    posted @ 2006-07-26 21:01 KevinGong 閱讀(3214) | 評論 (2)編輯 收藏

    http://www.yaosansi.com/blog/article.asp?id=551
    posted @ 2006-07-26 20:57 KevinGong 閱讀(221) | 評論 (0)編輯 收藏


    2篇文章介紹Google Web Toolkit?

    面向 Java 開發人員的 Ajax: 使用 Google Web Toolkit 開發 Ajax:GWT(Google Web Toolkit) 是 Google 最近推出的一個開發 Ajax 應用的框架,它支持用 Java 開發和調試 Ajax 應用,本文主要介紹如何利用 GWT 進行 Ajax 的開發。
    面向 Java 開發人員的 Ajax: Google Web Toolkit 入門:Ajax 被用于創建更加動態和交互性更好的 Web 應用程序。Google Web Toolkit (簡稱 GWT) 是 Google 推出的 Ajax 應用開發包,GWT 支持開發者使用 Java 語言開發 Ajax 應用。本文將介紹 GWT 開發 Ajax 應用的基本方法和步驟。

    goolipse安裝和使用:
    googlipse插件:http://sourceforge.net/projects/googlipse

    Requirements:

    ?Googlipse requires Eclipse 3.2 (必須3.2)with WebTools Platform 1.5(一定要裝,)running on a Java 1.5 VM. You need to separately install Google Web Toolkit from :http://code.google.com/webtoolkit/download.html

    Installation:

    ?(*) Drop the com.googlipse.gwt_<version>.jar file in your eclipse\plugins folder
    ?(*) Open Eclipse. Select Window->Preferences->Googlipse and set GWT home to the directory where you have installed the Google Web Toolkit.
    ?(*) You are all set to code.
    ?
    Adding Googlipse to your project:

    ?Googlipse is implemented as a WTP Facet. When creating a new Dynamic Web Project, select Googlipse in the Project Facets page. If you already have a Dynamic Web Project, you can add Googlipse facet by selecting Project->Properties->Project Facets(Please make sure you don't have gwt-user.jar in your classpath). In case you didn't like Googlipse, you can remove the facet.

    Creating a Module:

    ?Once you have a Dynamic Web Project with Googlipse facet, you can add a new module by File->New->Other->Googlipse->Gwt Module. Modules can be created only in valid java packages (default package is not allowed). Either you can type in the package (with project & source folder) in the location field or you can select it by clicking Browse button. You can also click the Create button to create a new package. Next type in the name of the module. Click Finish, you will have all the artifacts for the module generated.
    ?
    Adding a Remote Service;

    ?Note :A Remote Service will be created only in a module. So if you don't have a module, you need to create one using the New Module wizard, before this step.
    ?You can select File->New->Other->Googlipse->Gwt Remote Service. Click the Browse button and select the module (the gwt.xml file). Type the name and uri for the service and click Finish. Now the artifacts for the remote service will be generated. (You have to add an entry in the gwt.xml file manually. Googlipse doesn't add it. This feature will be implemented in future versions)
    ?
    Adding a Remote Service method:

    ?You can open the RemoteService interface and add/change methods in it. You need to provide the implementation of those methods in RemoteServiceImpl class, but thanks to Googlipse, you don't have to do anything in RemoteServiceAsync. Googlipse will automatically update the corresponding Async file whenever a RemoteService interface is changed.
    ?
    Calling a method using Remote Service:

    ?The utility class in the Remote service should help you in making the remote call.
    ?
    ?MyRemoteServiceAsync async = MyRemoteService.Util.getInstance();
    ?async.makeRemoteCall(param1, param2, callback);
    ?
    Running/Debugging a Gwt Application:

    ?Select Run->Run/Debug to activate the Lauch configuration dialog box. Double Click "Gwt Application". In the main page, you can select the Project & Module you want to run. In the parameters page you can select the parameters such as port and log level. Click Run to execute the GwtShell & bring up your application. The laucher will add the jar files & all the source folders in the project to your application.
    ?
    ?
    Questions/Bugs/Suggestions?

    ?Drop a mail to googlipse-users@lists.sourceforge.net

    posted @ 2006-07-20 08:35 KevinGong 閱讀(279) | 評論 (0)編輯 收藏

         摘要: <! DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.1//EN"?"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"?[?<!ELEMENT?a?(#PCDATA?|?table)*? > ?]> < html? xmlns ...  閱讀全文
    posted @ 2006-06-01 07:04 KevinGong 閱讀(341) | 評論 (0)編輯 收藏

    根據數據庫來指定映射配置文件得主鍵生成策略.
    Generator 為每個 POJO 的實例提供唯一標識。一般情況,我們使用“native”。class 表示采用由生成器接口net.sf.hibernate.id.IdentifierGenerator 實現的某個實例,其中包括:
    “assigned”
    主鍵由外部程序負責生成,在 save() 之前指定一個。

    “hilo”
    通過hi/lo 算法實現的主鍵生成機制,需要額外的數據庫表或字段提供高位值來源。

    “seqhilo”
    與hilo 類似,通過hi/lo 算法實現的主鍵生成機制,需要數據庫中的 Sequence,適用于支持 Sequence 的數據庫,如Oracle。

    “increment”
    主鍵按數值順序遞增。此方式的實現機制為在當前應用實例中維持一個變量,以保存著當前的最大值,之后每次需要生成主鍵的時候將此值加1作為主鍵。這種方式可能產生的問題是:不能在集群下使用。

    “identity”
    采用數據庫提供的主鍵生成機制。如DB2、SQL Server、MySQL 中的主鍵生成機制。

    “sequence”
    采用數據庫提供的 sequence 機制生成主鍵。如 Oralce 中的Sequence。

    “native”
    由 Hibernate 根據使用的數據庫自行判斷采用 identity、hilo、sequence 其中一種作為主鍵生成方式。

    “uuid.hex”
    由 Hibernate 基于128 位 UUID 算法 生成16 進制數值(編碼后以長度32 的字符串表示)作為主鍵。

    “uuid.string”
    與uuid.hex 類似,只是生成的主鍵未進行編碼(長度16),不能應用在 PostgreSQL 數據庫中。

    “foreign”
    使用另外一個相關聯的對象的標識符作為主鍵。
    posted @ 2006-05-25 08:15 KevinGong 閱讀(1349) | 評論 (0)編輯 收藏

    僅列出標題
    共2頁: 上一頁 1 2 
    主站蜘蛛池模板: 久久久久国色AV免费观看| 亚洲精品乱码久久久久久蜜桃图片 | 亚洲人成在线中文字幕| 久久午夜免费鲁丝片| 亚洲精品国产精品乱码不卡√| AAAAA级少妇高潮大片免费看| 亚洲精品无码99在线观看| 九九久久国产精品免费热6| 亚洲第一页综合图片自拍| 免费无遮挡无码视频在线观看| 国产免费131美女视频| 日亚毛片免费乱码不卡一区 | 亚洲一卡2卡4卡5卡6卡在线99| 国产福利视精品永久免费| 亚洲一卡2卡4卡5卡6卡残暴在线| 色婷婷7777免费视频在线观看| 国产精品亚洲片夜色在线| 国产精品另类激情久久久免费| 黄色三级三级免费看| 亚洲国产精品无码AAA片| 午夜爽爽爽男女免费观看影院| 亚洲成人一级电影| 精品免费久久久久久成人影院| 老司机午夜性生免费福利| 久久国产成人亚洲精品影院 | 成人亚洲国产精品久久| 久久亚洲AV无码西西人体| 99在线热视频只有精品免费| 亚洲一本到无码av中文字幕| 国产一级一片免费播放| 最近免费中文字幕中文高清| 亚洲一区精品视频在线| 亚洲国产成人精品女人久久久| 久久免费公开视频| 亚洲午夜无码毛片av久久京东热| 久久久久亚洲精品中文字幕| 中文字幕免费在线看线人| 女人裸身j部免费视频无遮挡| 无码专区—VA亚洲V天堂| 免费观看大片毛片| 免费观看91视频|