¥¢¥É¥Ó¤ÎInDesign¤ÎȯÇä¤Ï¡¢2001ǯÂè°ì»ÍȾ´ü¤Ë¤Ê¤Ã¤¿¤½¤¦¤Ç¤¹¡£¤Á¤ç¤Ã¤ÈÂÔ¤¿¤µ¤ìÊý¤¬Ä¹¤¯¤Ê¤Ã¤Æ¤¤Þ¤·¤¿¤Í¡£
MDOnline¤Ç¤ÎFileMaker Developer 5¤Îµ»ö¤Ï¡¢º£²ó¤¬ºÇ¸å¤Ç¤¹¡£Java´ØÏ¢¤Ï¤Á¤ç¤Ã¤ÈÆ°ºî¤¬ÉÔ°ÂÄê¤Ê¤Î¤¬»ÄÇ°¤Ê¤È¤³¤í¤Ç¤¹¤¬¡¢¸¶°ø¤Ï¤Ä¤¤È¤á¤é¤ì¤Þ¤»¤ó¤Ç¤·¤¿¡£»×¤¦¤Ë¡¢XML¤¬»È¤¨¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢¤è¤Ã¤Ý¤ÉºÙ¤«¤Ê¥æ¡¼¥¶¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òºî¤é¤Ê¤¤¸Â¤ê¤Ï¡¢Web¥Ö¥é¥¦¥¶¥Ù¡¼¥¹¤Ç½èÍý¤Ï¤Ç¤¤Æ¤·¤Þ¤¦¤è¤¦¤Êµ¤¤â¤·¤Þ¤¹¡£¤â¤Á¤í¤ó¡¢Java¤ÏÌܻؤ¹¤È¤³¤í¤Ï¥¯¥í¥¹¥×¥é¥Ã¥È¥Õ¥©¡¼¥à¤Ç¤Ï¤¢¤ê¤Þ¤¹¤¬¡¢¤ß¤Ê¤µ¤ó¸æ¸¤¸¤Î¤è¤¦¤Ë¡¢¥¢¥×¥ì¥Ã¥È¤Î¼Â¹Ô´Ä¶¤Ï¶Ñ°ì¤Ç¤Ï¤Ê¤¤¤Ç¤¹¤«¤é¡¢¤«¤¨¤Ã¤Æ¡¢¥Ö¥é¥¦¥¶¤äOS¤´¤È¤Î¥Á¥§¥Ã¥¯¤¬É¬ÍפˤʤäƤ·¤Þ¤¤¤Þ¤¹¡£¤½¤Î°ÕÌ£¤«¤é¤â¡¢¥Õ¥¡¥¤¥ë¥á¡¼¥«¡¼¼Ò¤È¤·¤Æ¤Ï³«È¯¤ËÎϤϤ½¤ì¤Û¤ÉÆþ¤Ã¤Æ¤¤¤Ê¤¤¤Î¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤â¤Á¤í¤ó¡¢¥µ¡¼¥Ö¥ì¥Ã¥È¤«¤éJDBC¤È¤¤¤¦¤Î¤â¤¢¤ê¤Þ¤¹¤±¤É¡¢¤Ê¤ó¤À¤«¡¢¥µ¡¼¥Ö¥ì¥Ã¥È¤«¤é¥Õ¥¡¥¤¥ë¥á¡¼¥«¡¼Pro¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤È¤¤¤¦É¬Í×À¤â¤¢¤Þ¤ê´¶¤¸¤é¤ì¤Þ¤»¤ó¤·¡¢¤½¤ì¤À¤Ã¤¿¤é¡¢ÉáÄ̤ËWeb¥³¥ó¥Ñ¥Ë¥ª¥ó¤ò»È¤¦Êý¤¬¤è¤ê¸ú²ÌŪ¤À¤È»×¤¤¤Þ¤¹¡£¤½¤¦¤¤¤¦¤ï¤±¤Ç¡¢Java¥¢¥×¥ì¥Ã¥È¤«¤é¤ÎÍøÍѤϿ¼Æþ¤ê¤Ï¤·¤Þ¤»¤ó¤Ç¤·¤¿¡£
¡Ê¿·µï²í¹Ô msyk@mdonline.jp¡Ë
Mac OS¤ÇPOSIX´Ä¶¤ò¼Â¸½¤¹¤ë¡ÖMac06¡×¡Ê¥Þ¥Ã¥¯¥ª¡¼¥·¥Ã¥¯¥¹¡Ë¤¬¥ê¥ê¡¼¥¹¤µ¤ì¤Æ¤¤¤ë¡£POSIX´Ä¶¤È¤Ï¡¢Mac OS X¤Ç¤âºÎÍѤµ¤ì¤Æ¤¤¤ë¥Æ¥¯¥Î¥í¥¸¡¼¤Ç¡¢UNIX¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Ç¤Îɸ½àŪ¤ÊAPI¤Ç¤¢¤ë¡£UNIX¾å¤Ç²ÔÆ°¤¹¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÎÂåɽŪ¤Ê·ÁÂÖ¤Î1¤Ä¤¬¡¢POSIX¥é¥¤¥Ö¥é¥ê¤ò»È¤Ã¤¿¤â¤Î¤À¡£¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é¸Æ¤Ó½Ð¤¹¤â¤Î¤ä¥Ç¡¼¥â¥ó¤Ê¤É¤ÏPOSIX¥Ù¡¼¥¹¤Î¤â¤Î¤¬´ðËܤǤ¢¤ê¡¢POSIX¤¬Ä󶡤¹¤ë¥Í¥Ã¥È¥ï¡¼¥¯µ¡Ç½¤Ê¤É¤òÍøÍѤ·¤Æ¤¤¤ë¡£Mac06¤Ï¡¢·ÁÂ֤Ȥ·¤Æ¤ÏMac OS¤ÇÆ°¤¯¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥½¥Õ¥È¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤ª¤ê¡¢Æȼ«¤Î¥·¥§¥ë¤Ë¤è¤Ã¤Æ¥³¥Þ¥ó¥É¥é¥¤¥ó·Á¼°¤Ç¤È¤ê¤¢¤¨¤º¤Î½èÍý¤Ï¤Ç¤¤ë¡£²Ã¤¨¤Æ¡¢POSIXÂбþ¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤òÈæ³ÓŪÍưפËMac OS¤Ë°Ü¿¢¤Ç¤¤ë¤è¤¦¤Ë¤¹¤ë¤â¤Î¤À¤È¸À¤¨¤ë¤À¤í¤¦¡£System 7.0°Ê¹ß¤ÇÍøÍѤǤ¤ë¤â¤Î¤Î¡¢68k¤Î¥Ð¥¤¥Ê¥ê¤Ç¤¢¤ë¡£¥¤¥ó¥¹¥È¡¼¥ë¤Ï¥¤¥ó¥¹¥È¡¼¥é¤Ç°ìȯ¤È¤Ï¹Ô¤«¤Ê¤¤¤¬¡¢¥É¥¥å¥á¥ó¥È¤¬¤·¤Ã¤«¤êºî¤é¤ì¤Æ¤¤¤ë¤Î¤Ç´Êñ¤Ë¤Ç¤¤ë¤À¤í¤¦¡£¥Ï¡¼¥É¥Ç¥£¥¹¥¯¾å¤Ë¥ë¡¼¥È¤È¤Ê¤ë¥Õ¥©¥ë¥À¤òºî¤ê¡¢¤½¤³¤ËMac06¤Î³Æ¼ï¥Õ¥¡¥¤¥ë¤òÆþ¤ì¤ë¡£¥ë¡¼¥È¤Ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬¤¢¤ê¡¢¤½¤ì¤ò¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤¹¤ë¤Èµ¯Æ°¤¹¤ë¡£¥«¡¼¥Í¥ë¤ä¥·¥§¥ë¤ò´Þ¤ß´ðËÜŪ¤Ë̵½þ¤ÎBasic¡¢¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ä¥Ø¥Ã¥À¤ò´Þ¤àAdvance¡Ê$10¡Ë¡¢³«È¯´Ä¶¤ò´Þ¤àDevelopment¡Ê$20¡Ë¤¬¤¢¤ê¡¢²Á³Ê¤Ï¥·¥§¥¢¥¦¥¨¥¢¥Õ¥£¡¼¤Ç¤¢¤ë¡£¥µ¥¤¥È¥é¥¤¥»¥ó¥¹¤â¤¢¤ë¡£¤Á¤Ê¤ß¤Ë¡¢Development¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤Ë¤Ï¤½¤ì°Ê²¼¤Î¥Ð¡¼¥¸¥ç¥ó¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëɬÍפ¬¤¢¤ë¡£¤Ä¤Þ¤ê¡¢Advance¤ÈDevelopment¤Ïº¹Ê¬¤À¤±¤Ê¤Î¤Ç¤¢¤ë¡£¤µ¤é¤Ë¡¢telnet¤äsendmail¤Ê¤É¤Î¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥³¥ß¥å¥Ë¥±¡¼¥·¥ç¥óµ¡Ç½¤òÅý¹ç¤·¤¿Communication¡¢X Server¤Îµ¡Ç½¤òÅý¹ç¤·¤¿GUI¤È¤¤¤¦¥Ð¡¼¥¸¥ç¥ó¤âͽÄꤵ¤ì¤Æ¤¤¤ë¡£
´ØÏ¢¥ê¥ó¥¯¡§Mac06
¥«¥Æ¥´¥ê¡§¥é¥¤¥Ö¥é¥ê, UNIX
¥Õ¥¡¥¤¥ë¥á¡¼¥«¡¼Pro¤Ø¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¥¢¥¯¥»¥¹¤òJava¤Î¥×¥í¥°¥é¥à¤Ç¹Ô¤¦¤³¤È¤¬¤Ç¤¤ë¡£¤½¤Î¤¿¤á¤ÎɬÍפʤâ¤Î¤¬DeveloperÈǤ˴ޤޤì¤Æ¤¤¤ë¡£¤³¤Î¾ì¹ç¤Ï¡¢Web¥³¥ó¥Ñ¥Ë¥ª¥ó¤ò²ÔÆ°¤µ¤»¤¿¤«¡¢¤¢¤ë¤¤¤ÏUnlimitedÈǤʤɡ¢¤Ä¤Þ¤ê¥Ç¡¼¥¿¥Ù¡¼¥¹¤òWeb¤Ë¸ø³«¤·¤Æ¤¤¤ë¥Ç¡¼¥¿¥Ù¡¼¥¹¤ËÂФ·¤Æ¥¢¥¯¥»¥¹¤¬¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ë¡£¥Í¥Ã¥È¥ï¡¼¥¯¤Î¶¦Í¤äÊÌÅÓ¶¦Í¤Î¤¿¤á¤Î»ÅÁȤߤòÍÑ°Õ¤¹¤ë¤Î¤Ç¤Ï¤Ê¤¤¡£
Java¤«¤é¥Õ¥¡¥¤¥ë¥á¡¼¥«¡¼Pro¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤¿¤á¤Ë¡¢2¤Ä¤ÎÏÈÁȤߤ¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¡£1¤Ä¤ÏJDBC¥É¥é¥¤¥Ð¤Ç¤¢¤ë¡£¥Õ¥¡¥¤¥ë¥á¡¼¥«¡¼Pro¸þ¤±¤ÎJDBC¥É¥é¥¤¥Ð¤Ï¡¢´°Á´¤ÊJava¥Í¥¤¥Æ¥£¥Ö¤Ê¤â¤Î¤Ç¡¢¥¢¥×¥ì¥Ã¥È¤Ç¤â¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤â»È¤¨¤ë¤·¡¢¤â¤Á¤í¤ó¥¢¥×¥ì¥Ã¥È¤Î¾ì¹ç¤Ë¤Ï¥À¥¦¥ó¥í¡¼¥É¤·¤ÆÍøÍѤǤ¤ë¡£¤Þ¤¿¡¢´ðËÜŪ¤Ë¤Ï¥¯¥í¥¹¥×¥é¥Ã¥È¥Õ¥©¡¼¥àÂбþ¤Ç¤¢¤ë¡£¤³¤ì¤òÍøÍѤ¹¤ë¾ì¹ç¤Ë¤Ï¡¢JDBC¤Ë½¾¤Ã¤Æ¥×¥í¥°¥é¥à¤òºîÀ®¤·¤Ê¤¤¤È¤¤¤±¤Ê¤¤¡£¤â¤¦1¤Ä¤ÎÏÈÁȤߤÏÆȼ«¤Î¥¯¥é¥¹¥é¥¤¥Ö¥é¥ê¤Ç¡Ö¥Õ¥¡¥¤¥ë¥á¡¼¥«¡¼Java¥¯¥é¥¹¡×¤È¸Æ¤ó¤Ç¤¤¤ë¡£¤³¤Á¤é¤Ï¡¢¥¯¥é¥¹·Á¼°¤ÇÍ¿¤¨¤é¤ì¤¿´°Á´¤Ë¥ª¥ê¥¸¥Ê¥ë¤Î¥¯¥é¥¹¤Ç¡¢¤½¤Î»ÅÍͤ˽¾¤Ã¤¿¥×¥í¥°¥é¥à¤òºîÀ®¤·¤Ê¤¤¤È¤¤¤±¤Ê¤¤¡£
¥í¥°¤ò¸«¤ë¸Â¤ê¤Ç¤Ï¤É¤Á¤é¤â¡¢HTTP¤ò»È¤Ã¤ÆWeb¥³¥ó¥Ñ¥Ë¥ª¥ó¤ËÀܳ¤·¤Æ¥Ç¡¼¥¿¥Ù¡¼¥¹½èÍý¤ò¹Ô¤Ã¤Æ¤¤¤ë¡£-format¤Ê¤É¤Î¥¯¥¨¥ê¡¼Ê¸»úÎó¤ò¡¢¥¯¥é¥¹ÆâÉô¤Ç¼«Æ°Åª¤ËÉÕ¤±¤Æ½èÍý¤ò¹Ô¤¤¡¢½èÍý·ë²Ì¤ò¤Þ¤¿Java¤Î¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤ÆÍøÍѤǤ¤ë¤è¤¦¤Ë¤¹¤ë¤è¤¦¤Ê½èÍý¤ò¤·¤Æ¤¤¤ë¤È¹Í¤¨¤ì¤Ð¤è¤¤¤À¤í¤¦¡£¤Á¤Ê¤ß¤Ë¡¢JDBC¥É¥é¥¤¥Ð¤ÏPOST¤Ç¼èÆÀ¤·¤Æ¤¤¤ë¤¬¡¢¥Õ¥¡¥¤¥ë¥á¡¼¥«¡¼Java¥¯¥é¥¹¤ÏGET¥á¥½¥Ã¥É¤ò»È¤Ã¤Æ¤¤¤ë¤è¤¦¤À¡£¤¤¤º¤ì¤ÎJava¥¯¥é¥¹¤âJDK 1.1.8¤Ç¤ÎÆ°ºî¤òÊݾڤ·¤Æ¤¤¤ë¡£½¾¤Ã¤Æ¡¢MRJ´Ä¶¤Ç¤â¥Ð¡¼¥¸¥ç¥óŪ¤Ë¤Ï°Â¿´¤·¤Æ»È¤¨¤ë¤³¤È¤Ë¤Ê¤ë¡£
¤Þ¤º¡¢JDBC¥É¥é¥¤¥Ð¤òÍøÍѤ·¤Æ¤ß¤è¤¦¡£DeveloperÈǤËfmpjdbc12.jar¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤¬¤¢¤ê¡¢¤³¤ì¤¬¤¤¤í¤¤¤í¤Ê¥¯¥é¥¹¤¬´Þ¤Þ¤ì¤Æ¤¤¤ëJDBC¥É¥é¥¤¥Ð¤ÎËÜÂΤǤ¢¤ë¡£¤â¤Á¤í¤ó¡¢ÍøÍÑÊýË¡¤Ï¤¿¤¯¤µ¤ó¤¢¤ë¤Î¤À¤¬¡¢CodeWarrior¤ÇJava¥¢¥×¥ì¥Ã¥È¤òºî¤Ã¤Æ¤ß¤ë¤È¤¤¤¦¤³¤È¤ò¹Í¤¨¤ë¡£CodeWarrior¤Î¥Æ¥ó¥×¥ì¡¼¥È¤òÍøÍѤ¹¤ë¤È¡¢Java Classes¥Õ¥©¥ë¥À¤¬ºî¤é¤ì¡¢¤½¤³¤Ë¥¯¥é¥¹¥Õ¥¡¥¤¥ë¤¬ºî¤é¤ì¤ë¡£¤³¤ÎJava Classes¥Õ¥©¥ë¥À¤Ë¡¢JDBC¥É¥é¥¤¥Ð¤ò´Þ¤à¥¢¡¼¥«¥¤¥Ö¤Îfmpjdbc12.jar¤òÆþ¤ì¤Æ¤ª¤¯¡£¤½¤·¤Æ¡¢Applet1¤È¤¤¤¦¥¢¥×¥ì¥Ã¥È¤òºî¤ë¤¬¡¢¥¦¥£¥¶¡¼¥É¤òÍøÍѤ·¤¿¤¿¤á¤Ë¡¢FMP_Access¤È¤¤¤¦¥Ñ¥Ã¥±¡¼¥¸¤ÎÃæ¤ËÄêµÁ¤µ¤ì¤ë¡£·ë²ÌŪ¤Ë¥×¥í¥¸¥§¥¯¥È¤ÈƱ¤¸³¬Áؤˤ¢¤ëFMP_Access¥Õ¥©¥ë¥À¤ËApplet1.java¤È¤¤¤¦¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤¬ºî¤é¤ì¤ë¡£¥³¥ó¥Ñ¥¤¥ë·ë²Ì¤Ï¡¢Java Classes¤ÎÃæ¤ËFMP_Access¥Õ¥©¥ë¥À¤òºî¤ê¡¢¤½¤³¤ËApplet1.class¥Õ¥¡¥¤¥ë¤¬ºîÀ®¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ë¡£°Ê¾å¤Î¤è¤¦¤Ê¾õ¶·¤Î¥¢¥×¥ì¥Ã¥È¤ò¸Æ¤Ó½Ð¤¹¥¿¥°¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ë¡£ARCHIVE°À¤Ë¡¢JDBC¥É¥é¥¤¥Ð¤Î¸ºß¤¹¤ë¥Õ¥¡¥¤¥ë¤òÄɲûØÄꤷ¤Æ¤ª¤¯¤Î¤¬¥Ý¥¤¥ó¥È¤Ë¤Ê¤ë¡£
<APPLET
CODEBASE = "Java%20Classes"
CODE = "FMP_Access.Applet1.class"
ARCHIVE = "fmpjdbc12.jar"
NAME = "TestApplet"
WIDTH = 400
HEIGHT = 200
HSPACE = 0
VSPACE = 0
ALIGN = middle
>
</APPLET>
¥«¥Æ¥´¥ê¡§Java, ¥Ç¡¼¥¿¥Ù¡¼¥¹
°ìÊý¡¢¥Õ¥¡¥¤¥ë¥á¡¼¥«¡¼Java¥¯¥é¥¹¤ò»È¤Ã¤¿¥¢¥×¥ì¥Ã¥È¤È¤·¤Æ¡¢Applet2¤òºîÀ®¤·¤¿¡£¥¯¥é¥¹¼«ÂΤϡ¢¥µ¥ó¥×¥ë¤Ê¤É¤ËÆþ¤Ã¤Æ¤¤¤ë¡ÖFmproProxy.zip¡×¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤ò»È¤¦¡£¤ä¤Ï¤ê¡¢CodeWarrior¤Ç¥¦¥£¥¶¡¼¥É¤ò¥Ù¡¼¥¹¤Ëºî¤Ã¤¿¥×¥í¥¸¥§¥¯¥È¤Ç¡¢¡ÖJava Classes¡×¥Õ¥©¥ë¥À¤ËFmproProxy.zip¤òÆþ¤ì¤Æ¤ª¤¯¡£¤Þ¤¿¡¢¥³¥ó¥Ñ¥¤¥ë»þ¤Ë»²¾È¤ò¹Ô¤¦¤³¤È¤«¤é¡¢¤³¤ÎFmproProxy.zip¤ò¥×¥í¥¸¥§¥¯¥È¤ËÅÐÏ¿¤·¤Æ¤ª¤¯É¬Íפ⤢¤ë¡£·ë²ÌŪ¤Ë¼¡¤Î¤è¤¦¤Ê¥¿¥°¤Ç¡¢¥¢¥×¥ì¥Ã¥È¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ë¤¹¤ë¡£¤ä¤Ï¤ê¡¢ARCHIVE°À¤Ë¡¢¥Õ¥¡¥¤¥ë¥á¡¼¥«¡¼Java¥¯¥é¥¹¤Î¥Õ¥¡¥¤¥ë¤ò»ØÄꤷ¤Æ¤ª¤¯¡£
<APPLET
CODEBASE = "Java%20Classes"
CODE = "FMP_Access.Applet2.class"
ARCHIVE = "FmproProxy.zip"
NAME = "TestApplet"
WIDTH = 400
HEIGHT = 200
HSPACE = 0
VSPACE = 0
ALIGN = middle
>
</APPLET>
¥«¥Æ¥´¥ê¡§
¡ûApplet1.java
package FMP_Access;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.sql.*;
public class Applet1 extends Applet
{
List rList; //¥¢¥×¥ì¥Ã¥ÈÆâ¤ËÇÛÃÖ¤¹¤ë¥ê¥¹¥È
public void init()
{
setLocation(new java.awt.Point(0, 0)); //¥¢¥×¥ì¥Ã¥È¤Îº¸¾å¤ò¸¶ÅÀ¤Ë
setLayout(new BorderLayout()); //¥ì¥¤¥¢¥¦¥È¤ÏBorderLayout¤ò»È¤¦
setSize(new java.awt.Dimension(400, 200)); //¥¢¥×¥ì¥Ã¥È¤Î¥µ¥¤¥º¤ò»ØÄê
setBackground(Color.orange); //¥¢¥×¥ì¥Ã¥È¤ÎÇطʤϥª¥ì¥ó¥¸¿§¤Ë
add(new AccessButton("Get Data"), "North"); //¥Ü¥¿¥ó¤òNorth¤ËÇÛÃÖ
add(rList = new List(), "Center"); //¥ê¥¹¥È¤òCenter¤ËÇÛÃÖ
}
class AccessButton extends Button implements ActionListener {
public AccessButton(String label) {
super(label);
this.addActionListener(this);
}
public void actionPerformed(ActionEvent e) { //¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤·¤¿»þ¤Ë¸Æ¤Ó½Ð¤µ¤ì¤ë
Connection fmpCon = null;
try {
Class.forName("com.fmi.jdbc.JdbcDriver"); //JDBC¥É¥é¥¤¥Ð¤Î¥í¡¼¥É
fmpCon = DriverManager.getConnection("jdbc:fmpro:http://192.168.0.101"); //Àܳ¥ª¥Ö¥¸¥§¥¯¥È¤Î³ÎÊÝ
Statement st = fmpCon.createStatement(); //ȯ¹Ô¤¹¤ëSQL¥³¥Þ¥ó¥É¤ÎÀ¸À®
st.setMaxRows(100); //¹Ô¿ô¤Î¾å¸Â¤òÆþ¤ì¤Ê¤¤¤ÈÂ礤ÊDB¤ÇÌäÂ꤬½Ð¤¿
st.execute("select * from \"¥Æ¥¹¥È¥Ç¡¼¥¿¥Ù¡¼¥¹\""); //SQL¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë
ResultSet rs = st.getResultSet(); //¼Â¹Ô¤·¤¿·ë²Ì¥»¥Ã¥È¤Î¼èÆÀ
rList.add("***¥Õ¥£¡¼¥ë¥É1***/***¥Õ¥£¡¼¥ë¥É2***"); //¥ê¥¹¥È¤Ëʸ»úÎó¤òÀßÄê
while(rs.next()) //·ë²Ì¥»¥Ã¥È¤ò½ç¼¡»°¾§
rList.add(rs.getString("¥Õ¥£¡¼¥ë¥É1") + "/" + rs.getString(2));
//¥Õ¥£¡¼¥ë¥É̾¤Ë¤è¤ë»²¾È¤È¥Õ¥£¡¼¥ë¥ÉÈÖ¹æ¤Ë¤è¤ë»²¾È
fmpCon.close(); //Àܳ¤òÊĤ¸¤ë
}
catch(Exception ex) {
System.out.println("#ERROR#"+ex.getMessage());
}
}
}
}
package FMP_Access;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import fminc.web.*;
public class Applet2 extends Applet
{
List rList;
public void init()
{
setLocation(new java.awt.Point(0, 0)); //¥¢¥×¥ì¥Ã¥È¤Îº¸¾å¤ò¸¶ÅÀ¤Ë
setLayout(new BorderLayout()); //¥ì¥¤¥¢¥¦¥È¤ÏBorderLayout¤ò»È¤¦
setSize(new java.awt.Dimension(400, 200)); //¥¢¥×¥ì¥Ã¥È¤Î¥µ¥¤¥º¤ò»ØÄê
setBackground(Color.pink); //¥¢¥×¥ì¥Ã¥È¤ÎÇطʤϥԥ󥯿§¤Ë
add(new AccessButton("Get Data"), "North"); //¥Ü¥¿¥ó¤òNorth¤ËÇÛÃÖ
add(rList = new List(), "Center"); //¥ê¥¹¥È¤òCenter¤ËÇÛÃÖ
}
class AccessButton extends Button implements ActionListener {
public AccessButton(String label) {
super(label);
this.addActionListener(this);
}
public void actionPerformed(ActionEvent e) { //¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤·¤¿»þ¤Ë¸Æ¤Ó½Ð¤µ¤ì¤ë
try {
FMProProxy fmProxy = new FMProProxy( new java.net.URL( "http://192.168.0.101" ) );
//¤Þ¤º¡¢¥Õ¥¡¥¤¥ë¥á¡¼¥«¡¼Pro¤Î¥×¥í¥¥·¤òÍÑ°Õ¤¹¤ë¡£URL¤ÏWeb¥³¥ó¥Ñ¥Ë¥ª¥ó¤¬²ÔÆ°¤·¤Æ¤¤¤ë¥Þ¥·¥ó
FMProRequest req = new FMProRequest(); //¥ê¥¯¥¨¥¹¥È¤Î¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®
req.setDatabaseName( "¥Æ¥¹¥È¥Ç¡¼¥¿¥Ù¡¼¥¹" ); //¥Ç¡¼¥¿¥Ù¡¼¥¹Ì¾¤ò»ØÄê
req.setLayoutName( "¥ì¥¤¥¢¥¦¥È1" ); //¥Õ¥©¡¼¥à̾¤ò»ØÄê
req.setAction(FMProRequest.ACTION_FIND_ALL); //¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É¤ò»ØÄꤹ¤ë
FMProResponse res = fmProxy.processRequest(req); //¥ê¥¯¥¨¥¹¥È¤ò½èÍý¤¹¤ë
for( int i=0; i < res.getReturnedCount(); i++) { //±þÅú¤Î·ë²Ì¥ê¥¹¥È¤ò½ç¤Ë½èÍý¤¹¤ë
rList.add(res.getFieldValue(i, "¥Õ¥£¡¼¥ë¥É1")[0] +"/" + res.getFieldValue(i, 1)[0]);
//¥Õ¥£¡¼¥ë¥É¤ÎÃͤμè¤ê½Ð¤·Êý¤Ï¤Á¤ç¤Ã¤ÈÆÈÆÃ
}
} catch(Exception ex) {}
}
}
}
¥«¥Æ¥´¥ê¡§
Technote¤Î°Ê²¼¤Î¥¿¥¤¥È¥ë¤Îʸ½ñ¤¬¹¹¿·¤µ¤ì¤Æ¤¤¤ë¡£Time Manager¤Ï¡¢ÆÃÄê¤Î¥×¥í¥°¥é¥à¤ò»þ´Ö¤ò»ØÄꤷ¤Æ¼Â¹Ô¤µ¤»¤ë¤è¤¦¤Êµ¡Ç½¤¬´ðËܤȤʤäƤ¤¤ë¡£Mac OS 9¤Ê¤É¤Ç¤Ï¡¢¿·¤¿¤ËNative Time Manager¤È¤·¤Æ¡¢PowerPC¥Í¥¤¥Æ¥£¥Ö¤Ê¤â¤Î¤¬²Ã¤ï¤Ã¤¿¤¬¡¢APIŪ¤Ë¤ÏÊѲ½¤Ï¤Ê¤¤¡£Native Time Manager¤Ë¤Ä¤¤¤Æ¤Îµ½Ò¤¬²Ã¤ï¤Ã¤Æ¤¤¤ë¡£
´ØÏ¢¥ê¥ó¥¯¡§Technote 1063, Inside Macintosh: Processes, Time Manager Addenda
¥«¥Æ¥´¥ê¡§Technote, Mac OS 9
G4 Cube¤ÎÅŸ»¥¢¥À¥×¥¿¤Î»ÅÍͤȼ̿¿¤¬Tech Info Library¤Îʸ½ñ¤Ç¸ø³«¤µ¤ì¤Æ¤¤¤ë¡£ÆþÎϤÏ90¡Á264V¡¢47¡Á63Hz¤ÎAC¤Ç¡¢½ÐÎϤÏ28V¤È¤¤¤¦¤³¤È¤À¡£¤Ê¤ª¡¢G4 Cube¤Ï¾®¤µ¤Ê¥Ü¥Ç¥£¤Ç¤Ï¤¢¤ë¤¬¡¢¼Â¤ÏÅŸ»¤ÏËÜÂÎÆâ¤Ë¤Ï¤Ê¤¯¡¢AC¥¢¥À¥×¥¿¤ò»È¤¦·Á¼°¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£¤³¤Î¥¢¥À¥×¥¿¤âÆÈÆäηÁ¤ò¤·¤Æ¤¤¤ë¡£
´ØÏ¢¥ê¥ó¥¯¡§http://til.info.apple.com/techinfo.nsf/artnum/n58689
¥«¥Æ¥´¥ê¡§Knowledge Base¡ÊµìTIL¡Ë, Power Mac
Tech Info Library¤Ë¸ø³«¤µ¤ì¤¿Ê¸½ñ¤Ë¤è¤ë¤È¡¢¡ÖApple ¥½¥Õ¥È¥¦¥§¥¢ ¥ê¥¹¥È¥¢¡×¤Ë¤ª¤¤¤Æ¡¢¥·¥¹¥Æ¥à¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤Ã¤¿¾ì¹ç¡¢PostScript¥×¥ê¥ó¥¿¤Î¥É¥é¥¤¥Ð¤Ç¤¢¤ëLaserWriter8¤ÎÀßÄê¤òºÆÅÙ¤ä¤êľ¤µ¤Ê¤¤¤È¤¤¤±„ʤ¤¡£Êݸ¤·¤Æ¥ê¥¹¥È¥¢¤ä¡¢¤¢¤ë¤¤¤ÏÆþ¤ìÂؤ¨¤Æ¥ê¥¹¥È¥¢¤Î¾ì¹ç¤Ë¤â¡¢¤ä¤Ï¤êºÆÀßÄ꤬ɬÍפȤʤ롣¥»¥Ã¥È¥¢¥Ã¥×¤Ï¡¢¥×¥ê¥ó¥¿µ½Ò¥Õ¥¡¥¤¥ë¤ÎºÆÁªÂò¤ò¹Ô¤¨¤Ð¤è¤¤¡£
´ØÏ¢¥ê¥ó¥¯¡§http://til.info.apple.com/techinfo.nsf/artnum/n31234
¥«¥Æ¥´¥ê¡§¼þÊÕµ¡´ï, Knowledge Base¡ÊµìTIL¡Ë
¢¨¡ÖContent Management Forum¡×¤Î»öÁ°ÅÐÏ¿¤¬³«»Ï¤µ¤ì¤Æ¤¤¤ë¡£¥³¥ó¥Æ¥ó¥Ä¥Ó¥¸¥Í¥¹¸þ¤±¤Î¥«¥ó¥Õ¥¡¥ì¥ó¥¹¤Ç¡¢2000ǯ9·î5Æü¡Ê²Ð¡Ë¡Á6Æü¡Ê¿å¡Ë¤Ë¡¢Åìµþ¥Õ¥¡¥Ã¥·¥ç¥ó¥¿¥¦¥ó¤Ç³«ºÅ¤µ¤ì¤ë¡£
¡¡http://www.idg.co.jp/expo/cmf/
¢¨Âè2²ó¼«Æ°Ç§¼±Áí¹çŸ¡ÊSCAN-TECH JAPAN 2000¡Ë¤¬2000ǯ9·î6Æü¡Ê¿å¡Ë¡Á8Æü¡Ê¶â¡Ë¤ÎÆüÄø¤Ç¡¢Åìµþ¥Ó¥Ã¥°¥µ¥¤¥È¤Ç³«ºÅ¤µ¤ì¤ë¡£¥Ð¥¤¥ª¥á¥È¥ê¥Ã¥¯¤Ê¤É¤Î¥»¥Ã¥·¥ç¥ó¤¬¤¢¤ë¡£
¡¡http://www.aimjapan.or.jp/
¢¨¡Ö4D Summit and WebSTAR Summit¡×¤ÎÅÐÏ¿¤â³«»Ï¤µ¤ì¤¿¡£¥Ç¡¼¥¿¥Ù¡¼¥¹¥½¥Õ¥È¤Î4D¤ÈWeb¥µ¡¼¥Ð¤ÎWebSTAR¤Î³«È¯¼Ô¸þ¤±²ñµÄ¤Ç¡¢2000ǯ10·î4Æü¡Ê¿å¡Ë¡Á8Æü¡ÊÆü¡Ë¤Ë¡¢¥µ¥ó¥Ç¥£¥¨¥´¤Ç³«ºÅ¤µ¤ì¤ë¡£
¡¡http://www.4DSummit.com/
¡¡http://www.WebSTARSummit.com/
¥«¥Æ¥´¥ê¡§¥¤¥Ù¥ó¥È