org.seasar.doma.jdbc.entity
クラス VersionPropertyType<PE,E extends PE,V extends Number,D>
java.lang.Object
org.seasar.doma.jdbc.entity.BasicPropertyType<PE,E,V,D>
org.seasar.doma.jdbc.entity.VersionPropertyType<PE,E,V,D>
- すべての実装されたインタフェース:
- org.seasar.doma.internal.jdbc.criteria.ColumnCriterion<V>, org.seasar.doma.internal.jdbc.criteria.Criterion<V>, org.seasar.doma.internal.jdbc.criteria.OrderItemCriterion<V>, EntityPropertyType<E,V>
public class VersionPropertyType<PE,E extends PE,V extends Number,D>
- extends BasicPropertyType<PE,E,V,D>
バージョンのプロパティ型です。
- 作成者:
- taedium
| クラス org.seasar.doma.jdbc.entity.BasicPropertyType から継承された入れ子のクラス/インタフェース |
BasicPropertyType.AccessorFactory<E,V>, BasicPropertyType.DomainAccessorFactory<E,V,D>, BasicPropertyType.EnumWrapperFactory<V>, BasicPropertyType.ParentValueAccessorFactory<PE,E extends PE,V>, BasicPropertyType.SimpleWrapperFactory<V>, BasicPropertyType.ValueAccessorFactory<E,V>, BasicPropertyType.WrapperFactory<V> |
| クラス org.seasar.doma.jdbc.entity.BasicPropertyType から継承されたフィールド |
accessorFactory, columnName, domainType, entityClass, entityPropertyClass, insertable, name, parentEntityPropertyType, updatable, wrapperClass, wrapperFactory |
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionPropertyType
public VersionPropertyType(Class<E> entityClass,
Class<V> entityPropertyClass,
Class<? extends NumberWrapper<V>> wrapperClass,
EntityPropertyType<PE,V> parentEntityPropertyType,
DomainType<V,D> domainType,
String name,
String columnName)
- インスタンスを構築します。
- パラメータ:
entityClass - エンティティのクラスentityPropertyClass - プロパティのクラスwrapperClass - ラッパーのクラスparentEntityPropertyType - 親のエンティティのプロパティ型、親のエンティティを持たない場合 nulldomainType - ドメインのメタタイプ、ドメインでない場合 nullname - プロパティの名前columnName - カラム名
isVersion
public boolean isVersion()
- インタフェース
EntityPropertyType の記述:
- バージョンかどうかを返します。
- 定義:
- インタフェース
EntityPropertyType<E extends PE,V extends Number> 内の isVersion - オーバーライド:
- クラス
BasicPropertyType<PE,E extends PE,V extends Number,D> 内の isVersion
- 戻り値:
- バージョンの場合
true
setIfNecessary
public void setIfNecessary(E entity,
Number value)
- 必要であればバージョンの値を設定します。
- パラメータ:
entity - エンティティvalue - バージョンの値
increment
public void increment(E entity)
- バージョン番号をインクリメントします。
- パラメータ:
entity - エンティティ
Copyright © 2009-2012 The Seasar Foundation. All Rights Reserved.