質ã¨ã¹ãã¼ãï¼2020æ¥çï¼ 2020/02/13 @ ãããµã2020
Spring以å RPC æ¥åã§ä½¿ãã·ã¹ãã ã¯ãµã¼ãã¼éã§é£æºãããã¨ãå¤ãã2019å¹´ç¾å¨ã§ã¯REST apiã«å¯¾ãã¦jsonãprotocolbufferã§å¼ã³åºãäºãå½ããåã®ããã«è¡ããã¦ããããã¾ã jsonãçºè¦ããã¦ããªãæ代ã¯ãã£ã¨è¤éãªä»çµã¿ãåããã¦ãã1ãç°æ©ç¨®éã§ããã¨ãããããã®CORBAããæ©ç¨®ã«ä¾åããªããã¼ã¿ãããã³ã«ã®ASN.1ãªã©ãå©ç¨ããã¦ããããä»æ§ã¯è¤éã§ããããããã³ããªã³ã°ããã©ã¤ãã©ãªã¯æåã§å£²ããããã³ãã¼ãããµãã¼ããåããªãã使ç¨ãããããªãã®ã ã£ãã RMI Javaã®ä¸çã§ã¯Javaå士ã§ããã¨ãããããã®RMIãå®ç¾©ãããæ¯è¼çã«æ¥½ã«RPCã§ããããã«ãªã£ã2ãã¨ã¯ããhttpã§restãã³ã¼ã«ãããã¨ã«æ¯ã¹ããã¢ãã¿ãããªè¤éãã§ããã https://docs.oracle.com/javase/jp/1.3/guide/rmi
Kotlinã§Webã¢ããªã±ã¼ã·ã§ã³ãä½ãã«ããããSQLãç´æ¥è¨è¿°ã§ããã¿ã¤ãã®O/Rãããã¼ï¼æ¬ç¨¿ã§ã¯SQLãããã¼ã¨å¼ã³ã¾ãï¼ãæ¢ãæ±ãã¾ããã SQLãããã¼ã«æ±ããæ©è½ SQLãããã¼ã«æ±ããæ©è½ã¯Bindã¨Mapã§ãããã®è¨äºã§ã¯Bindã¨Mapã次ã®ããã«å®ç¾©ãã¾ãã Bind SQLã«åãè¾¼ãã ãã¬ã¼ã¹ãã«ãã¼ï¼ååä»ããæã¾ããï¼ã«å¯¾å¿ãããã©ã¡ã¼ã¿ã¼ç¾¤ã渡ãæ©è½ã ä¾: SELECT ... WHERE price BETWEEN :minPrice AND :maxPrice ã®ãããªSQLã«ãminPriceã¨maxPriceããããã£ãæã¤ãªãã¸ã§ã¯ãã渡ãã Map å®è¡çµæã¨ãã¦å¾ãããè¡ããªãã¸ã§ã¯ãã«ãããã³ã°ããæ©è½ã ä¾: SELECT id, name, price FROM ... ã®ãããªSQLã®å®è¡çµæããid, name, price ã®ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}