java
è±èªã®æ¹ãã«ãã³ããã¨è¦æ ãå¼µã£ãã ãã£ã±ãæ¥æ¬èªãè¯ãï¼ï¼ ã¨ããããã§ãå度ææ¦ãã¦ã¿ãã Mac OSX 10.4 Tiger - Eclipse 3.3æ¥æ¬èªåæé - alice_quxã®ããã°ãåèã«ããã¨ããã«ã§ãããã ãã©ãæå¤ã¨ããã£ãã æ¥æ¬èªåãã¡ã¤ã«ã®DL Eclipsâ¦
eclipse ç°å¢ãä½ã£ã¦ã¿ã ããã¯ãããã eclipse ã使ã£ã¦ããªããã£ã¦ãããã ããï¼å¹´ãããJava 使ã£ã¦ãªãï¼(^o^)ï¼¼ ã¨ããéæããªç¶æ ã§ãã©ã°ã¤ã³éçºãè¡ãããã¨ã¬ãã¦ãã¦ãã大ãã«ãã®ã§ããããã¦ãã¾ã ecliipse ã®ã¤ã³ã¹ãã¼ã«ããå§ããªâ¦
ã¾ã£ãããã£ã¦ Java ãã§ããªãã®ã«å¿åãã¦ãã¾ã£ã http://d.hatena.ne.jp/daisuke-m/20080511/1210511542 ã¨ããããã21æ¥ã«è¡ããããã Java ããããªããªã£ã¦ï¼å¹´è¿ã絶ã£ã¦ããã®ã§ä¸ã«ãã©ã°ã¤ã³éçºã¨ãã¾ã£ãããã£ããã¨ãªãï¼ï¼ ãªã®ã§ ã¨ããâ¦
ã¡ã¢ã ããã¦ãã¼ãSeasar 2.4ãªãªã¼ã¹! ä»æ´ã§ãæ¥ãããããªããå§ãã¦ã¿ããDIããã°ã©ãã³ã° (1) DIããã°ã©ãã³ã° - Seasar S2Containerã§ä½é¨ãã¦ã¿ãã (MYCOMã¸ã£ã¼ãã«) http://journal.mycom.co.jp/articles/2006/11/16/seasar/
http://www.atmarkit.co.jp/fdb/index/subindex/javapersis_subindex.html ä»ã®ã¨ãããªãã¸ã§ã¯ãæåDBã«ã¤ãã¦ã¯èå³ãªããã©ãåå¼·ä¸ï¼ã£ã¦ãããçµæ§ã»ã£ããããï¼ãªHibernateã®è§£èª¬ãããã®ã§ã¡ã¢ã ãªãã¦ãããããªãã¸ã§ã¯ãã®æ°¸ç¶åã£ã¦ããè¨èâ¦
éãæã¤ã¨ã大ãã¦è²·ããããç¡ãï¼ã¨ããããå ã«èªãæ¬ãã¾ã ããï¼ã«ãé¢ãããæ¬ãè²·ã£ã¦ãã¾ãã ã¨ããããã§ãä»æ¥ã¯ãããªæ¬ãè²·ã£ã¦ããã Seasar2ã§å¦ã¶ DIã¨AOP ã¢ã¹ãã¯ãæåã«ããJavaéçºä½è : artonåºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾çºå£²æ¥: 200â¦
ååâid:seiunsky:20060817:1155843796 ã¡ãã£ã¨æéãéãããã©ãæ¹ãã¦è©¦ãã¦ã¿ããã¨ãã£ã¦ã¿ããã ããçµå±åãããªãã£ãã ã¾ãã使ç¨ããDBãMySQLã§ãããããããã®å·®ç°ã確èªããªãããããªããã ãã©ããã以åã«MySQLã使ããªãï¼ãããï¼ã¨ãâ¦
Hibernateãåå¼·ããã«ããã£ã¦ã®è¨é²ã·ãªã¼ãºã 使ç¨ããç°å¢ã¯ä»¥ä¸ã®ã¨ããã OS:WindowsXP SP2 Java:JDK5 éçºç°å¢:Eclipse3.1 Hibernate3.1.3 Hibernate-Extensions2.1.3 MySQL5.0ï¼OS:VineLinux3.2ï¼ ã¡ãªã¿ã«ãå¦ç¿ã«ã¯ä»¥ä¸ã®æ¬ã使ç¨ããã Hibernateâ¦
ååâid:seiunsky:20060715:1152948036 ç´ä¸æã¶ãã®æ´æ°ã§è²ã å¿ãããã¦ãããã©ãJavaâããã¸ã§ã¯ãã®web.xmlã¾ã§ã®æµãã解説ããã ã§ãTomcatã®xmlè¨å®ã§DBCPã®è©³ç´°è¨å®ã決ãããã¨ã«ãªãã è¨è¿°ããå ´æã¯jsp/Servletã®ããã¸ã§ã¯ãã®å ´æãªã©ãè¨è¿°â¦
ãã¡ããã¡ãåãããããæ¯è¼ããã¦ãããµã¤ãçºè¦ã http://muimi.com/j/jakarta/velocity/ Velocityã¯ãã¡ãã¨ç解ãã¦ããªããã©ããã£ã±ããã£ã¦ãããªããããããã 確ãã«ãã©ã¯ã ãããã ãã¨ãJSP2.0*1ããã¯ELï¼Expression Languageï¼ã¦ã®ããã£â¦
ã¡ãã£ã¨ããããã¸ã§ãã http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=16173&forum=12&5 ããã®ã JSPã®useBeanã¢ã¯ã·ã§ã³ã§æå®ãããªãã¸ã§ã¯ãã¯JavaBeansä»æ§ã«å¾ã£ã¦ããå¿ è¦ãããã¾ãã ãã®ä¸ã¤ã¯ãããã©ã«ãã³ã³ã¹ãã©ã¯ã¿ï¼å¼æ°ãªâ¦
æè¿ã®æµè¡ã¯O/Rãããã³ã°ã«ããDBæ¥ç¶ãããã http://www.atmarkit.co.jp/fjava/rensai3/ormap01/ormap01.html ãããååã¨ãã£ã¦ã®ã¯ããèããã ããå®éã®ã¨ããããã°ã©ã ãã¼ã¹ã§ã©ããªãã®ãã£ã¦ã®ã¯ç¥ããªãã£ããã¤ãããHibernateãããããåâ¦
æè¿ããã«ãã¹ã¬ãããç±ãã ãããç±ãã£ã¤ã¼ãå¾å¦ã®ããã«ãã¡ãã¨ç¥ã£ã¨ããªãã¨ã¤ã«ã³ãªã¨ã ã¨ããããã§ã å¢è£æ¹è¨ç Javaè¨èªã§å¦ã¶ãã¶ã¤ã³ãã¿ã¼ã³å ¥é ãã«ãã¹ã¬ããç·¨ä½è : çµå浩åºç社/ã¡ã¼ã«ã¼: ã½ãããã³ã¯ã¯ãªã¨ã¤ãã£ãçºå£²æ¥: 2006/â¦
çµå±ã追è¨ã®é ç®ã§æ¸ããæãã®ããæ¹ã§Dateåã§åã渡ããããã«ãªã£ãã®ã ããåçã«1æ¥åã¨ãã®è¨ç®ãããã®ãã¨ã¦ãé¢åããã§â¦â¦çµå±SQLæãTO_DATEé¢æ°ã§ã©ããã³ã°ãããã¨ã«ããorz ã¡ãªã¿ã«ãããã£ã¦ããæ大ã®åå ã¯SELECTå¥ã§ã®DATEåã表示ããâ¦
Javaã§åçã«SQLãçµãããã«PreparedStatementã使ã£ã¦SQLãçµã¿ç«ã¦ã¦ãããã§ãPreparedStatementã®getStringã¡ã½ãããªã©ã使ã£ã¦SQLæã¸å¤ãçµã¿è¾¼ãã§è¡ã£ã¦ããã ããããDBä¸Dateåã®ãã¼ã¿ã«å¯¾ãã¦Selectæãçºè¡ãããã¨ããã¨ãã¾ããããªããJaâ¦
ç°å¢ï¼ FedoraCore4ï¼RedHatï¼ With VMware Apache2.2.2ï¼ã½ã¼ã¹ããåå¾ï¼ Tomcat5.028 ã¾ããåãã¡ã¤ã«ãåå¾ããã Apacheã®æ¬å®¶ãµã¤ãï¼2.2ç¨ï¼ããhttpd-2.2.2.tar.bz2ãDL Tomcatã®æ¬å®¶ãµã¤ãï¼5.xç¨ï¼ããjakarta-tomcat-5.0.28-src.zipãDL å¾è¿°ãâ¦
ååâid:seiunsky:20060714:1152910911 ä»åã¯XMLã«ã¤ãã¦ã Javaã®ä¸çããå¤ã®ä¸çã¸è¨å®ãã¡ã¤ã«ãèªã¿ã¾ããã¼ã¨å®£è¨ãããã§ããã®èªè¾¼å ã¨ã¯ï¼ããã¯ããã¸ã§ã¯ãã®web.xmlã«ãªãã ãã®web.xmlã«ä»¥ä¸ã®ããã«å®ç¾©ãã <resource-ref> <description>DB Connection</description> <res-ref-name>jdbc/datastore</res-ref-name> <res-type></res-type></resource-ref>â¦
ååâid:seiunsky:20060712:1152719844 DBã¸æ¥ç¶ããããã°ã©ã ã®ãã¢ã¯DataSourceã使ãã¨ãããã¨ãDataSourceã¨ã¯ãDBã¸æ¥ç¶ããããã®ã¯ã©ã¹ãªãã ãã©ããã®å®æ ã¯æ¥ç¶ç¨ã®è¨å®ãªã©ãå¤é¨ï¼XMLï¼ãªã©ããèªã¿è¾¼ããã¨ã§DBã¸ã®æ¥ç¶Connectionã確ç«ããâ¦
DBã³ãã¯ã·ã§ã³ããã¼ãªã³ã°ããã«ã¯ï¼ ã£ã¦ããã®ã¯ä»¥åï¼id:seiunsky:20060704:1152031362ï¼ã¡ãã£ã¨æ¸ããã ã§ãä»æ¥ã¯å®éã®ã¨ããã©ããªã£ã¦ããã®ã調ã¹ã¦ã¿ãã ä¸è¬çã«ã¯ï¼Javaã®å ´åï¼ãµã¼ãã¬ããã³ã³ãã*1ãªã©ã«DBCPï¼DBã³ãã¯ã·ã§ã³ãã¼ãªã³â¦
ååâid:seiunsky:20060710:1152554993 å°å³ã ãã©ä¾¿å©ç·¨ã AutoBoxingæ©è½ã«ã¤ãã¦ã C#ã«ã¯ãã£ãããããã ãã©ããã£ããè¨ãã¨ããªããã£ãåã¨ãã®ã©ããã¼ã¯ã©ã¹ã§ã®åå¤æãæé»ã®ãã¡ã«ã§ããæ©è½ããã¨ãã°ãintåã®ã©ããã¼ã¯ã©ã¹ã¨ãã¦ãIntegerâ¦
ååâid:seiunsky:20060709:1152473178 å°å³ç·¨ã StringBuilderã¯ã©ã¹ãããã ãããããã£ã¦ããããã£ã¦ãããããã¯Javaã®è©±ãªãã ãã ããã©ããè½ã¡çãã¦èãã¦æ¬²ãããJDK5ã«ãªã£ã¦å°å ¥ããããã®ã¯ã©ã¹ãã¹ã¬ããã¢ã³ã»ã¼ãã ãã©é«éãªåä½ãã§ãâ¦
ååâid:seiunsky:20060707:1152104056 ä»åã¯æ¡å¼µforæã«ã¤ãã¦ã æ¡å¼µforæâ¦â¦ããããã«PerlãC#ã®foreachã¨åãæãã§ãé åãªã©ã®è¦ç´ ãå é ããå¼ã£å¼µã£ã¦ãããã£ã¦ãã¤ã int[] test = new int[10]; for (int i in test) { å¦ç } æ§æã¨ãã¦ã¯ãã®ãâ¦
ã¡ã¢ http://www-06.ibm.com/jp/developerworks/java/020726/j_j-dcl.html singletonãã¿ã¼ã³ã§ä½¿ç¨ããããã¨ãããdouble-checked lockingã¤ãã£ãªã ã¯ããã¾ããã¾ããããªãããã ãããã¡ãªã¿ã«ããã¯ãã«ãã¹ã¬ããã®æã®è©±ã
ããããå æ¸JDK5ã®æ°æ©è½ãããæãã¦ãããªãã¨ãã®ä¸ããåãæ®ããã¡ãããããã£ã¦ãã¨ã§èª¿ã¹ã¦ã¿ãããããç¥ã£ã¦ããã¨ã¯ç¥ã£ã¦ããã ãã©ãå®éã«ã³ã¼ãã«è½ã¨ããããããã¨ç¡ãã£ããã§ã åä½æ¤è¨¼ã®ãã¼ã¸ã§ã³ã¯ä»¥ä¸ã®éã WindowsXP SP2 JDK1.5.â¦
Javaã§ã¹ã¬ããã»ã¼ããªã³ã¬ã¯ã·ã§ã³ï¼HashMapãªã©ï¼ã使ãã¨ã㯠synchronaizedãªã©ããã¼ï¼ï¼ï¼ãæããã java.util.Collectionsã«ãã以ä¸ã®ã¡ã½ããã«å¯¾å¿ããã³ã¬ã¯ã·ã§ã³ã渡ãã¨ã¹ã¬ããã»ã¼ããªã³ã¬ã¯ã·ã§ã³ãè¿ã£ã¦ããããã ã synchronizedColleâ¦
ã¡ã¢ http://www.javareading.com/bof/index.html#effective ã¡ãªã¿ã«ãä½åããã®æ¬ã¯èªãã ãã ãã©èªãã ãããããããªããã¨ãçµæ§ããããããã§èª¿ã¹ãã®ããããã ãã©ããã¯ãèªãã§ãã¦ãã³ã¨ããã«ã¯çµé¨ã«è£ä»ãããããã®ãå¿ è¦ãªãã ããã â¦â¦â¦
DBã¸ã®æ¥ç¶ã£ã¦ã®ã¯ã³ã¹ããé«ãã®ã§ä½¿ãã¾ããã¹ãã ã¨ããã®ã¯å½ããåã®ããã«è¨ããã¦ãããã©ãå®éã®ã¨ããã©ããã£ã¦å®è£ ãã¦ããã®ã ãããçåã«æã£ãã®ã¨ãæã ã£ãã®ã§ï¼åãã¦ï¼DBæ¥ç¶ã®ããã°ã©ã ãçµãã§ã¿ããã ãã©ã ã³ãã¯ã·ã§ã³ãæ¥ç¶â¦
ä»äºãæãªã¨ãã«ï¼ããããªã©ããªãããï¼æåãã Effective Java ãèªãã§ã¾ããã£ã¦ããããå¿ããããã§ä¸èº«ã¯æã§ããæãªã®ã«ããã«ä½ã¾ãã¨ãéã«ãã©ãã ã§ã Effective Java ã® interface ã«ã¤ãã¦ã®è¨äºãèªãã§ããããµã¨æãã¤ãããã¬ã³ãã â¦
æè¿ãä¼ç¤¾ã®ç°å¢ã«ã¶ã¡è¾¼ãã§ã¿ããã ãã©ãããããXUnitç³»ã£ã¦ã©ãã¾ã§èªåãã¹ãããã°è¯ããã ããã ä¾ãã°ãæååã®æä½ãæ°å¤ã®è¨ç®ã ã£ããå ¥åçµæã«å¯¾ãã¦åºåçµæã£ã¦å¾ããããã©ãã¡ã¼ã«ã®éä¿¡ã¨ãåºåçµæã®ç¡ããã®ã£ã¦ã©ãããããããã â¦
å æãå¦ã«å¿ããã£ãã®ã ãã©ãæå¾ã®é±ãããããæã«ãªã£ãã®ã§åå¼·ãã¦ããã Head Firstãã¶ã¤ã³ãã¿ã¼ã³ âé ã¨ããã ã§è¦ãããã¶ã¤ã³ãã¿ã¼ã³ã®åºæ¬ä½è : Eric Freeman,Elisabeth Freeman,Kathy Sierra,Bert Bates,ä½è¤ç´ç(ç£è¨³),æ¨ä¸å²ä¹,æéä¼ç¤¾â¦