<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="$B#M#S(B $B#P%4%7%C%/(B" color=#000000 size=2>$BJR2,$H?=$7$^$9!#(B</FONT></DIV>
<DIV><FONT face="$B#M#S(B $B#P%4%7%C%/(B" color=#000000 size=2>S2JDBC$B!"(BSAStruts$B$rMxMQ$7$?%"%W%j%1!<%7%g%s$r:n@.$7$F$$$^$9$,!"(B<BR>$B%H%i%s%6%/%7%g%s4IM}$K4X$7$F!"<ALd$,$"$j$^$9!#(B</FONT></DIV>
<DIV><FONT face="$B#M#S(B $B#P%4%7%C%/(B" color=#000000 size=2>$B$"$k%F!<%V%k$K(Binsert$B$7$F!"0l0U@)Ls%(%i!<$@$C$?$i!"(Bupdate$B$9$k$H(B<BR>$B$$$&$h$&$J=hM}$r9M$($F$$$^$9(B(DB$B$O(BpostgreSQL$B$rMxMQ(B)$B!#0l1~!"F0:n(B<BR>$B$9$k$h$&$K$O$J$C$?$N$G$9$,!";d$N%H%i%s%6%/%7%g%s=hM}$NM}2r$KIT0B(B<BR>$B$,$"$j!"$3$N<BAu$GLdBj$J$$$+$H$$$&E@$r3NG'$7$?$$$H;W$$!"%a!<%k(B<BR>$B$7$^$7$?!#(B</FONT></DIV>
<DIV><FONT face="$B#M#S(B $B#P%4%7%C%/(B" color=#000000 size=2>$B!Z$&$^$/$$$+$J$+$C$?%1!<%9![(B<BR>try{<BR>$B!!(Bint count=jdbcManager<BR>$B!!!!(B.insert(employee)<BR>$B!!!!(B.execute();<BR>$B!!(B}catch(SEntityExistsException e){<BR>$B!!!!(Bint a=jdbcManager.update(employee).execute();<BR>$B!!(B}</FONT></DIV>
<DIV><FONT face="$B#M#S(B $B#P%4%7%C%/(B" color=#000000 size=2>$B$H$9$k$H!"!V(Bcurrent transaction is aborted, commands ignored until <BR>end of transaction block$B!W$H$$$&%(%i!<$,$G$F$&$^$/$$$-$^$;$s!#(B</FONT></DIV><FONT face="$B#M#S(B $B#P%4%7%C%/(B" color=#000000 size=2>
<DIV><BR>$B!Z$&$^$/$$$C$?$h$&$K$_$($k%1!<%9![(B<BR>$B$=$3$G!"(Bupdate$BJ8$NItJ,$rJL%a%=%C%I$K$7!"JL%H%i%s%6%/%7%g%s$GF0$+$9(B<BR>$B$h$&$K$7$^$7$?!#(B</DIV>
<DIV>try{<BR>$B!!(Bint count=jdbcManager<BR>$B!!!!(B.insert(employee)<BR>$B!!!!(B.execute();<BR>$B!!(B}catch(SEntityExistsException e){<BR>$B!!!!(Bint a=jdbcManager.update(employee).execute();<BR>$B!!(B}</DIV>
<DIV>@RequiresNewTx<BR>public int update(Employee employee){<BR>$B!!(Breturn jdbcManager.update(employee).execute();<BR>}</DIV>
<DIV>$B!Z<ALd![(B<BR>$B$3$l$GI=LL>e!"$&$^$/F0:n$7$?$h$&$K8+$($F$O$$$k$N$G$9$,!"$3$N<BAuJ}K!$G(B<BR>$B@5$7$$$b$N$G$7$g$&$+(B<BR></FONT></DIV></BODY></HTML>