|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.doma.jdbc.entity.BasicPropertyType<PE,E,V,D>
org.seasar.doma.jdbc.entity.VersionPropertyType<PE,E,V,D>
public class VersionPropertyType<PE,E extends PE,V extends Number,D>
バージョンのプロパティ型です。
| 入れ子のクラスの概要 |
|---|
| クラス org.seasar.doma.jdbc.entity.BasicPropertyType から継承された入れ子のクラス/インタフェース |
|---|
BasicPropertyType.AccessorFactory<E,V>, BasicPropertyType.DomainAccessorFactory<E,V,D>, BasicPropertyType.DomainMapAccessorFactory<V,D>, BasicPropertyType.EnumWrapperFactory<V>, BasicPropertyType.MapAccessorFactory<V>, BasicPropertyType.ParentValueAccessorFactory<PE,E extends PE,V>, BasicPropertyType.ParentValueMapAccessorFactory<PE,E extends PE,V>, BasicPropertyType.SimpleWrapperFactory<V>, BasicPropertyType.ValueAccessorFactory<E,V>, BasicPropertyType.ValueMapAccessorFactory<V>, BasicPropertyType.WrapperFactory<V> |
| フィールドの概要 |
|---|
| クラス org.seasar.doma.jdbc.entity.BasicPropertyType から継承されたフィールド |
|---|
accessorFactory, columnName, domainType, entityClass, entityPropertyClass, field, insertable, mapAccessorFactory, name, parentEntityPropertyType, updatable, wrapperClass, wrapperFactory |
| コンストラクタの概要 | |
|---|---|
VersionPropertyType(Class<E> entityClass,
Class<V> entityPropertyClass,
Class<? extends NumberWrapper<V>> wrapperClass,
EntityPropertyType<PE,V> parentEntityPropertyType,
DomainType<V,D> domainType,
String name,
String columnName)
インスタンスを構築します。 |
|
| メソッドの概要 | |
|---|---|
void |
increment(E entity)
バージョン番号をインクリメントします。 |
E |
incrementAndNewEntity(E entity,
EntityType<E> entityType)
バージョン番号をインクリメントして新しいエンティティを返します。 |
boolean |
isVersion()
バージョンかどうかを返します。 |
void |
setIfNecessary(E entity,
Number value)
必要であればバージョンの値を設定します。 |
E |
setIfNecessaryAndMakeNewEntity(E entity,
Number value,
EntityType<E> entityType)
必要であればバージョンの値を設定し、新しいエンティティを返します。 |
| クラス org.seasar.doma.jdbc.entity.BasicPropertyType から継承されたメソッド |
|---|
accept, getColumnName, getCopy, getName, getType, getWrapper, getWrapper, isId, isInsertable, isUpdatable |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
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 - カラム名| メソッドの詳細 |
|---|
public boolean isVersion()
EntityPropertyType の記述:
EntityPropertyType<E extends PE,V extends Number> 内の isVersionBasicPropertyType<PE,E extends PE,V extends Number,D> 内の isVersiontrue
public void setIfNecessary(E entity,
Number value)
entity - エンティティvalue - バージョンの値
public E setIfNecessaryAndMakeNewEntity(E entity,
Number value,
EntityType<E> entityType)
entity - エンティティvalue - バージョンの値entityType - エンティティタイプpublic void increment(E entity)
entity - エンティティ
public E incrementAndNewEntity(E entity,
EntityType<E> entityType)
entity - エンティティentityType - エンティティタイプ
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||