org.seasar.doma.jdbc.entity
クラス VersionProperty<D extends NumberDomain<?,?>>

java.lang.Object
  上位を拡張 org.seasar.doma.jdbc.entity.BasicProperty<D>
      上位を拡張 org.seasar.doma.jdbc.entity.VersionProperty<D>
すべての実装されたインタフェース:
EntityProperty<D>

public class VersionProperty<D extends NumberDomain<?,?>>
extends BasicProperty<D>

バージョンプロパティです。

作成者:
taedium

フィールドの概要
 
クラス org.seasar.doma.jdbc.entity.BasicProperty から継承されたフィールド
columnName, domain, insertable, name, updatable
 
コンストラクタの概要
VersionProperty(String name, String columnName, D domain)
          インスタンスを構築します。
 
メソッドの概要
 void increment()
          バージョン番号を増分します。
 boolean isVersion()
          バージョンかどうかを返します。
 void setIfNecessary(Number value)
          必要ならばバージョン番号を設定します。
 
クラス org.seasar.doma.jdbc.entity.BasicProperty から継承されたメソッド
getColumnName, getDomain, getName, isId, isInsertable, isTransient, isUpdatable, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

VersionProperty

public VersionProperty(String name,
                       String columnName,
                       D domain)
インスタンスを構築します。

パラメータ:
name - 名前
columnName - カラム名
domain - ドメイン
メソッドの詳細

isVersion

public boolean isVersion()
インタフェース EntityProperty の記述:
バージョンかどうかを返します。

定義:
インタフェース EntityProperty<D extends NumberDomain<?,?>> 内の isVersion
オーバーライド:
クラス BasicProperty<D extends NumberDomain<?,?>> 内の isVersion
戻り値:
バージョンの場合 true

setIfNecessary

public void setIfNecessary(Number value)
必要ならばバージョン番号を設定します。

パラメータ:
value - バージョン番号

increment

public void increment()
バージョン番号を増分します。



Copyright © 2009 The Seasar Foundation. All Rights Reserved.