{"id":2039,"date":"2001-08-29T01:54:00","date_gmt":"2001-08-29T01:54:00","guid":{"rendered":"http:\/\/t.motd.kr\/articles\/2039\/bros"},"modified":"2022-12-28T01:58:04","modified_gmt":"2022-12-27T16:58:04","slug":"b-r-o-s","status":"publish","type":"post","link":"https:\/\/vault.motd.kr\/wordpress\/posts\/2039\/b-r-o-s\/","title":{"rendered":"B.R.O.S"},"content":{"rendered":"
\uc624\ub298\uc740 BROS \ud504\ub85c\uc81d\ud2b8\ub97c \uc218\ud589\ud588\ub2e4. <\/p>\n
A Bean that Remembers Old State. <\/p>\n
JavaBean \uc758 \ud2b9\uc9d5\uc744 \ubaa8\ub450 \uc720\uc9c0\ud558\uba74\uc11c setXXX()\uac00 \uc218\ud589\ub420 \ub54c \uc8fc\uc5b4\uc9c4 \uc81c\uc57d \uc870\uac74\uc744 \uac80\uc0ac\ud558\uace0, commit\/rollback \uba54\ucee4\ub2c8\uc998\uc744 \uc801\uc6a9\ud568\uc73c\ub85c\uc368 \uc77d\uae30 \uc804\uc6a9 \ud504\ub85c\ud37c\ud2f0\uc758 setXXX() \uba54\uc11c\ub4dc\ub97c private\ub85c \ub450\uc9c0 \uc54a\uac8c \ub418\uc5c8\ub2e4. \ubaa8\ub4e0 \ud504\ub85c\ud37c\ud2f0\uc758 \ubcc0\uacbd\uce58\ub294 commit\uc774 \uc218\ud589\ub420 \ub54c \uae4c\uc9c0 \uc784\uc2dc \ubcc0\uc218\uc5d0 \uc800\uc7a5\ub418\uba70, commit\uc774 \uc218\ud589\ub418\ub294 \uc21c\uac04 \uc2e4\uc81c \ud504\ub85c\ud37c\ud2f0\uc5d0 \uc601\ud5a5\uc744 \ubbf8\uce58\ub3c4\ub85d \uc124\uacc4\ub418\uc5c8\ub2e4. BROS \uc778\ud130\ud398\uc774\uc2a4\uc5d0\uc11c commit()\uc740 CommitKey\ub97c \uc774\uc6a9\ud55c \uc778\uc99d\uc744 \ud1b5\ud574 \uc815\ud574\uc9c4 \uac1c\uccb4\ub9cc\uc774 commit\uc744 \uc218\ud589\ud560 \uc218 \uc788\ub3c4\ub85d \ud558\uc5ec, commit\uc774 \uc218\ud589\ub418\ub294 \uacbd\ub85c\ub97c \uc81c\ud55c\ud568\uc73c\ub85c\uc368 \uc77d\uae30 \uc804\uc6a9 \ud504\ub85c\ud37c\ud2f0\ub97c \uad6c\ud604\ud55c\ub2e4. <\/p>\n
\uc57d 6\uc2dc\uac04\uc5d0 \uac78\uce5c \ud504\ub85c\uc81d\ud2b8\uc600\uace0, Java 1.3 \uc758 Dynamic Proxy \uae30\ub2a5\uc744 \uc2ed\ubd84 \ud65c\uc6a9\ud560 \uc218 \uc788\uc5b4\uc11c \uc88b\uc558\ub2e4. \uc2e4\uc9c8\uc801\uc73c\ub85c BROS \uc778\ud130\ud398\uc774\uc2a4 \ucf54\ub4dc \uc0dd\uc131\uae30\uc640 Constraint\uc5d0 \ub300\ud55c \uac04\ub2e8\ud55c \uad6c\ud604\uc791\uc5c5(\uc790\ub9ac\uc218 \uac80\uc0ac, \uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638 \uac80\uc0ac, \ubc94\uc704 \uac80\uc0ac \ub4f1)\ub9cc\uc774 \ub0a8\uc544 \uc788\uc744 \ubfd0\uc774\ub2e4. \ud37c\ud3ec\uba3c\uc2a4 \uba74\uc5d0\uc11c tradeoff\uac00 \uc788\uc9c0\ub9cc \uc790\uc138\ud55c \uac83\uc740 \ud504\ub85c\ud30c\uc77c\ub9c1\uc744 \ud1b5\ud574\uc11c \uc54c\uc544\ubcf4\uc544\uc57c \ud560 \uac83 \uac19\ub2e4. <\/p>\n
\uc5ed\uc2dc \ubc1c\ub4f1\uc5d0 \ubd88\uc774 \ub5a8\uc5b4\uc9c0\ub2c8 \uacb0\uacfc\uac00 \ube68\ub9ac \ub098\uc624\ub294\uad6c\ub098… \u3161\u3161;<\/p>\n","protected":false},"excerpt":{"rendered":"
\uc624\ub298\uc740 BROS \ud504\ub85c\uc81d\ud2b8\ub97c \uc218\ud589\ud588\ub2e4. A Bean that Remembers Old State. JavaBean \uc758 \ud2b9\uc9d5\uc744 \ubaa8\ub450 \uc720\uc9c0\ud558\uba74\uc11c setXXX()\uac00 \uc218\ud589\ub420 \ub54c \uc8fc\uc5b4\uc9c4 \uc81c\uc57d \uc870\uac74\uc744 \uac80\uc0ac\ud558\uace0, commit\/rollback \uba54\ucee4\ub2c8\uc998\uc744 \uc801\uc6a9\ud568\uc73c\ub85c\uc368 \uc77d\uae30 \uc804\uc6a9 \ud504\ub85c\ud37c\ud2f0\uc758 setXXX() \uba54\uc11c\ub4dc\ub97c private\ub85c \ub450\uc9c0 \uc54a\uac8c \ub418\uc5c8\ub2e4. \ubaa8\ub4e0 \ud504\ub85c\ud37c\ud2f0\uc758 \ubcc0\uacbd\uce58\ub294 commit\uc774 \uc218\ud589\ub420 \ub54c \uae4c\uc9c0 \uc784\uc2dc \ubcc0\uc218\uc5d0 \uc800\uc7a5\ub418\uba70, commit\uc774 \uc218\ud589\ub418\ub294 \uc21c\uac04 \uc2e4\uc81c \ud504\ub85c\ud37c\ud2f0\uc5d0 \uc601\ud5a5\uc744 \ubbf8\uce58\ub3c4\ub85d \uc124\uacc4\ub418\uc5c8\ub2e4. BROS \uc778\ud130\ud398\uc774\uc2a4\uc5d0\uc11c commit()\uc740… Continue reading