2010-03-01ãã1ã¶æéã®è¨äºä¸è¦§
ã³ã¼ãã£ã³ã°ã®æ(æå¼·ä½æ³) ç¾å ´ã§ããè¦ãä¸å¯è§£ãªJavaã³ã¼ããä¸æãã! (éçºã®ç¾å ´ã»ã¬ã¯ã·ã§ã³)ä½è : arton,å®éãããåºç社/ã¡ã¼ã«ã¼: ç¿æ³³ç¤¾çºå£²æ¥: 2008/09/18ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼è³¼å ¥: 29人 ã¯ãªãã¯: 348åãã®ååãå«ãããã° (5â¦
POI(3.6)ã§ä½æãããã¡ã¤ã«ãExcelã§éããéã«ã表示形å¼ã®è¨å®ã失ãããå¯è½æ§ãããã¾ããã¨ãããã¤ã¢ãã°ã表示ããã¾ããã ç´æ¥ã®åå ã¯ããã¡ã¤ã«ã«å®ç¾©ããã¦ãã表示形å¼ã®æ°ãå¤ããããã¨ã«ããããã§ãã表示形å¼ã¯HSSFCellStyle#getDataFormâ¦
Clean Code ã¢ã¸ã£ã¤ã«ã½ããã¦ã§ã¢é人ã®æä½è : Robert C. Martin,è±äºå¿çåºç社/ã¡ã¼ã«ã¼: ã¢ã¹ãã¼ã»ã¡ãã£ã¢ã¯ã¼ã¯ã¹çºå£²æ¥: 2009/05/28ã¡ãã£ã¢: 大åæ¬è³¼å ¥: 27人 ã¯ãªãã¯: 914åãã®ååãå«ãããã° (80件) ãè¦ãã¿ã¤ãã«ã®è¾ºãã«ã¯Javaã¨ã¯æ¸ãâ¦
Excelã®æä½ã«ã¦ã·ã¼ãã®ç§»åã§å¥ã®Workbookãæå®ãããããªå¦çã«ã¤ãã¦ãPOIã®ãã¼ã¸ã§ã³ã¯3.6ã§ããåãWorkbookå ã§ã®ã³ãã¼ã¯æ¯è¼çåç´ã«åºæ¥ã¾ããããã«å¯¾ããç°ãªãWorkbookéã§ã®ã³ãã¼ã¯ããããã«æéããããã¾ããåç´ã«æãã¤ãããæ¹ã§ãã£â¦
横éã«é¸ãã¦ã»ã«ã¨ãããè¡ã®æ¨ªå¹ ã«ã¤ãã¦ãPOIã®ãã¼ã¸ã§ã³ã¯3.6ã§ããæ¨ªå¹ ã¯Sheetã«è¨å®ãããæ¨ªå¹ ã¯ Sheet#getColumnWidth ã§åå¾ã§ãã¾ããåé¡ã¨ãªãã®ã¯ããã®éã«åå¾ã§ããå¤ãä½ãªã®ãã¨ããç¹ãJavaDocã«ã¯ä»¥ä¸ã®ããã«æ¸ããã¦ããã®ã§ãåå¾ã§â¦
POIã®ãã¼ã¸ã§ã³ã¯3.6ã§ãã å¤ãæ¸å¼ã¨åºããã®ã§ã»ã«ããã³è¡ã®ã³ãã¼ãåºæ¥ãããã«ãªãã¾ãããããæ¹ã¯æ³åéããã³ãã¼ãããã»ã«ã®ãã対象ã®ã·ã¼ããããã»ã«ã®å¤ã¨æ¸å¼ãåãåºãã¦ãã³ãã¼å ã®ã»ã«ã«è¨å®ãã¦ããã ããã¨ãããããã®å ´åã対象ã®â¦
æ¸å¼ã®åã«å¤ã ã¨æããã ãã©ãé çªã¯ãã«ããªãã§ãã ãããè¨äºããã¾ã£ããæ´çããããããã¼ã¸ã§ã³ã¯3.6ã§ããå¤ã¨ããã¨valueãªãã§ããã®ã¾ã¾setValueãgetValueã§æ±ããããªãã®ãªãã§ããããããè¡ãã¾ãããExcelVBAã§ã¯ã大æµã®å¤ã¯Range.Valueâ¦
ä½ã¨ãªããã£ã¦ã¿ããã£ãã®ã§ã ãã¿çã«ä½¿ããããªã®ã¯ãSheetãIterableã§ãããRowãIterableã§ãããã¨ãã¨è¨ãäºã§ãSheetã«ããå ¨ã¦ã®Cellã対象ã«ãããå ´åã¯ãæ¡å¼µforæã2ã¤éããã°ããã®ã§ãã£ã¨ã import java.io.FileInputStream; import orgâ¦
ããããªåºæ¬çãªãã¨ã¯ãã£é£ã°ãã¦ãæ¸å¼ã«ã¤ãã¦æ¸ããã¨ã«ãã¾ãããã¼ã¸ã§ã³ã¯3.6ã§ã æ¸å¼ã¨ããã¨ã表è¨ç®ã½ããã¨ãã¦ã¯æ°å¤ã®ãã©ã¼ããããæéè¦ã®ã¯ããªã®ã§ãããç¾å¨æ¥æ¬ã§Excelã使ãããä¸ã§ã¯ããã©ã¼ãããããããã©ã³ãï¼ãµã¤ãºãè²ãå«â¦
JavaããExcelãã¡ã¤ã«ãæä½ããã«ã¯ããã¤ãæ¹æ³ãããã¾ãããPOIã使ãæ©ä¼ã«æµã¾ããã®ã§ã¤ãã¤ãã¨æ¸ãã¦ã¿ããã¨æãã¾ããã¨ããããä»åã¯æ¦è¦ã¬ãã«ã§ã ç¾å¨ã®ææ°çã¯3.6ã§ããæ¥æ¬èªããã¥ã¡ã³ãã¯3.0ã§æ¢ã¾ã£ã¦ãããããã©ã使ãæ¹ç¨åº¦ãªãå·®â¦
autotraceãå®è¡ãããã¨ãã¦æ¬¡ã®ã¨ã©ã¼ãçºçããå ´åã¯ãã¡ãã»ã¼ã¸ã示ãã¨ãã権éä¸è¶³ã SQL> set autotrace on SP2-0618: ã»ãã·ã§ã³èå¥åãè¦ã¤ããã¾ãããPLUSTRACEãã¼ã«ãæå¹ãã確èªãã¦ãã ããã SP2-0611: STATISTICSã¬ãã¼ãã使ç¨å¯è½ã«â¦
SQL*Plusã§å®è¡è¨ç»ãã¨ãã«ã¯ãåç´ã«autotraceãonã«ããã set autotrace onãã以éå®è¡ããSQLã¯ãSQLã®çµæã¨å®è¡è¨ç»ã¨çµ±è¨æ å ±ãåºãã ã§ãå®è¡è¨ç»ãã¨ãã¨ãã£ã¦ãçµæã¯è¦ããªãäºãå¤ãããã®æã¯onã®ä»£ããã« traceonly ã¾ãã¯ãã®çç¥å½¢ã® trâ¦
ç°å¢ã¯Oracle10gXEã§ãã æ°å¤é ç®ãNULLãå¤å®ããNULLã ã£ãå ´åã«ãNULLãã¨ããæååã«ç½®ãæãã¦åºåãããæã«ãåç´ã«NVLã使ãã¨ã¨ã©ã¼ã«ãªãã¾ãã以ä¸ã¯ä¾ã SQL> DECLARE 2 VNUM NUMBER; 3 BEGIN 4 DBMS_OUTPUT.PUT_LINE(NVL(VNUM, 'NULL')); 5 â¦