<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>no14141</author_name>
  <author_url>https://blog.hatena.ne.jp/no14141/</author_url>
  <blog_title>タイガー！タイガー！じれったいぞー！（SE編）</blog_title>
  <blog_url>https://tigertaizo.hatenablog.com/</blog_url>
  <categories>
    <anon>DB2/400</anon>
    <anon>Mybatis</anon>
    <anon>Java</anon>
  </categories>
  <description>大量のSQLを発行して、レコードを追加したり、更新したりするケースは多くの場面で遭遇すると思います。 JDBC と Mybatis、それぞれのバッチ処理のサンプルを書いてみました。 JDBCでの実装 RDBはAS400で、jt400を使ってアクセスします。 compile 'net.sf.jt400:jt400:9.1' 下記の例では、２人の社員モデルを生成し、PreparedStatementで追加処理を行っています。 addBatchメソッドでバッチ登録し、executeBatchメソッドでSQLを実行。 コミットメント制御は手動で行う必要があります。 import models.Empl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftigertaizo.hatenablog.com%2Fentry%2F2021%2F01%2F14%2F210000&quot; title=&quot;JDBC と Mybatis でバッチ処理 - タイガー！タイガー！じれったいぞー！（SE編）&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-14 21:00:00</published>
  <title>JDBC と Mybatis でバッチ処理</title>
  <type>rich</type>
  <url>https://tigertaizo.hatenablog.com/entry/2021/01/14/210000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
