|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.doma.jdbc.entity.BasicPropertyType<PE,E,V,D>
org.seasar.doma.jdbc.entity.GeneratedIdPropertyType<PE,E,V,D>
public class GeneratedIdPropertyType<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> |
| フィールドの概要 | |
|---|---|
protected IdGenerator |
idGenerator
識別子のジェネレータ |
| クラス org.seasar.doma.jdbc.entity.BasicPropertyType から継承されたフィールド |
|---|
accessorFactory, columnName, domainType, entityClass, entityPropertyClass, field, insertable, mapAccessorFactory, name, parentEntityPropertyType, updatable, wrapperClass, wrapperFactory |
| コンストラクタの概要 | |
|---|---|
GeneratedIdPropertyType(Class<E> entityClass,
Class<V> entityPropertyClass,
Class<? extends NumberWrapper<V>> wrapperClass,
EntityPropertyType<PE,V> parentEntityPropertyType,
DomainType<V,D> domainType,
String name,
String columnName,
IdGenerator idGenerator)
インスタンスを構築します。 |
|
| メソッドの概要 | |
|---|---|
boolean |
isAutoGeneratedKeysSupported(IdGenerationConfig config)
バ Statement.getGeneratedKeys() をサポートしているかどうかを返します。 |
boolean |
isBatchSupported(IdGenerationConfig config)
バッチ挿入での識別子生成がサポートされているかどうかを返します。 |
protected boolean |
isGenerationTypeSupported(GenerationType generationType,
Dialect dialect)
識別子を生成する方法がサポートされているかどうかを返します。 |
boolean |
isId()
識別子かどうかを返します。 |
boolean |
isIncluded(IdGenerationConfig config)
識別子がINSERT文に含まれるかどうかを返します。 |
protected E |
newEntity(E entity,
Long value,
EntityType<E> entityType)
新しいエンティティをインスタンス化します。 |
void |
postInsert(E entity,
IdGenerationConfig config,
Statement statement)
INSERTの実行後に識別子の生成を行います。 |
E |
postInsertAndNewEntity(E entity,
IdGenerationConfig config,
Statement statement,
EntityType<E> entityType)
INSERTの実行後に識別子の生成を行い、新しいエンティティを返します。 |
void |
preInsert(E entity,
IdGenerationConfig config)
INSERTの実行前に識別子を生成します。 |
E |
preInsertAndNewEntity(E entity,
IdGenerationConfig config,
EntityType<E> entityType)
INSERTの実行前に識別子を生成し、新しいエンティティを返します。 |
void |
validateGenerationStrategy(IdGenerationConfig config)
識別子の生成方法を検証します。 |
| クラス org.seasar.doma.jdbc.entity.BasicPropertyType から継承されたメソッド |
|---|
accept, getColumnName, getCopy, getName, getType, getWrapper, getWrapper, isInsertable, isUpdatable, isVersion |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected final IdGenerator idGenerator
| コンストラクタの詳細 |
|---|
public GeneratedIdPropertyType(Class<E> entityClass,
Class<V> entityPropertyClass,
Class<? extends NumberWrapper<V>> wrapperClass,
EntityPropertyType<PE,V> parentEntityPropertyType,
DomainType<V,D> domainType,
String name,
String columnName,
IdGenerator idGenerator)
entityClass - エンティティのクラスentityPropertyClass - プロパティのクラスwrapperClass - ラッパーのクラスparentEntityPropertyType - 親のエンティティのプロパティ型、親のエンティティを持たない場合 nulldomainType - ドメインのメタタイプ、ドメインでない場合 nullname - プロパティの名前columnName - カラム名idGenerator - 識別子のジェネレータ| メソッドの詳細 |
|---|
public boolean isId()
EntityPropertyType の記述:
EntityPropertyType<E extends PE,V extends Number> 内の isIdBasicPropertyType<PE,E extends PE,V extends Number,D> 内の isIdtruepublic void validateGenerationStrategy(IdGenerationConfig config)
config - 識別子の生成に関する設定
protected boolean isGenerationTypeSupported(GenerationType generationType,
Dialect dialect)
generationType - 識別子の生成方法dialect - 方言
truepublic boolean isIncluded(IdGenerationConfig config)
config - 識別子の生成に関する設定
truepublic boolean isBatchSupported(IdGenerationConfig config)
config - 識別子の生成に関する設定
truepublic boolean isAutoGeneratedKeysSupported(IdGenerationConfig config)
Statement.getGeneratedKeys() をサポートしているかどうかを返します。
config - 識別子の生成に関する設定
true
public void preInsert(E entity,
IdGenerationConfig config)
entity - エンティティconfig - 識別子の生成に関する設定
public E preInsertAndNewEntity(E entity,
IdGenerationConfig config,
EntityType<E> entityType)
entity - エンティティconfig - 識別子の生成に関する設定entityType - エンティティタイプ
public void postInsert(E entity,
IdGenerationConfig config,
Statement statement)
entity - エンティティconfig - 識別子の生成に関する設定statement - INSERT文を実行した文
public E postInsertAndNewEntity(E entity,
IdGenerationConfig config,
Statement statement,
EntityType<E> entityType)
entity - エンティティconfig - 識別子の生成に関する設定statement - INSERT文を実行した文entityType - エンティティタイプ
protected E newEntity(E entity,
Long value,
EntityType<E> entityType)
entity - エンティティvalue - 値entityType - エンティティタイプ
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||