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