<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>eiji8pou</author_name>
  <author_url>https://blog.hatena.ne.jp/eiji8pou/</author_url>
  <blog_title>eiji8pou's diary</blog_title>
  <blog_url>https://eiji8pou.hatenadiary.com/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>あるカラムに値を設定した場合、他のカラムがそれに追随して自動的に変更される方法。 結論から言えば、add_triggerを使う。 # columnの部分にカラム名が入る。 __PACKAGE__-&gt;add_trigger( after_set_column=&gt;\&amp;for_after_set_column ); sub for_after_set_column { my $self = shift; my $value = $self-&gt;get('column'); # 値を加工する。 $self-&gt;another_column($value); # 他のカラムに加工した値を設定する。 } 私は…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feiji8pou.hatenadiary.com%2Fentry%2F20071014%2F1192334491&quot; title=&quot;Class-DBIで連鎖的にカラムを設定する方法 - eiji8pou&amp;#39;s diary&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>2007-10-14 13:01:31</published>
  <title>Class-DBIで連鎖的にカラムを設定する方法</title>
  <type>rich</type>
  <url>https://eiji8pou.hatenadiary.com/entry/20071014/1192334491</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
