|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.doma.jdbc.entity.BasicProperty<D>
org.seasar.doma.jdbc.entity.GeneratedIdProperty<D>
public class GeneratedIdProperty<D extends NumberDomain<?,?>>
生成される識別子のプロパティです。
フィールドの概要 | |
---|---|
protected IdGenerator |
idGenerator
識別子のジェネレータ |
クラス org.seasar.doma.jdbc.entity.BasicProperty から継承されたフィールド |
---|
columnName, domain, insertable, name, updatable |
コンストラクタの概要 | |
---|---|
GeneratedIdProperty(String name,
String columnName,
D domain,
IdGenerator idGenerator)
インスタンスを構築します。 |
メソッドの概要 | |
---|---|
boolean |
isAutoGeneratedKeysSupported(IdGenerationConfig config)
Statement.getGeneratedKeys() をサポートしているかどうかを返します。 |
boolean |
isBatchSupported(IdGenerationConfig config)
バッチ処理をサポートしているかどうかを返します。 |
protected boolean |
isGenerationTypeSupported(GenerationType generationType,
Dialect dialect)
方言で識別子を生成する方法がサポートされていれば true を返します。 |
boolean |
isId()
識別子かどうかを返します。 |
boolean |
isIncluded(IdGenerationConfig config)
バッチ処理をサポートしているかどうかを返します。 |
void |
postInsert(IdGenerationConfig config,
Statement statement)
INSERTの実行後に識別子を設定します。 |
void |
preInsert(IdGenerationConfig config)
INSERTの実行前に識別子を設定します。 |
void |
validateGenerationStrategy(IdGenerationConfig config)
識別子を生成する方法を検証します。 |
クラス org.seasar.doma.jdbc.entity.BasicProperty から継承されたメソッド |
---|
getColumnName, getDomain, getName, isInsertable, isTransient, isUpdatable, isVersion, toString |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
protected final IdGenerator idGenerator
コンストラクタの詳細 |
---|
public GeneratedIdProperty(String name, String columnName, D domain, IdGenerator idGenerator)
name
- 名前columnName
- カラム名domain
- ドメインidGenerator
- ジェネレータ
DomaNullPointerException
- idGenerator
が null
の場合メソッドの詳細 |
---|
public boolean isId()
EntityProperty
の記述:
EntityProperty<D extends NumberDomain<?,?>>
内の isId
BasicProperty<D extends NumberDomain<?,?>>
内の isId
true
public void validateGenerationStrategy(IdGenerationConfig config)
config
- 識別子生成の設定
JdbcException
- 識別子を生成する方法がサポートされてない場合protected boolean isGenerationTypeSupported(GenerationType generationType, Dialect dialect)
true
を返します。
generationType
- 識別子を生成する方法dialect
- 方言
true
public boolean isIncluded(IdGenerationConfig config)
config
- 識別子生成の設定
true
public boolean isBatchSupported(IdGenerationConfig config)
config
- 識別子生成の設定
true
public boolean isAutoGeneratedKeysSupported(IdGenerationConfig config)
Statement.getGeneratedKeys()
をサポートしているかどうかを返します。
config
- 識別子生成の設定
true
public void preInsert(IdGenerationConfig config)
config
- 識別子生成の設定public void postInsert(IdGenerationConfig config, Statement statement)
config
- 識別子生成の設定statement
- INSERT文を実行した文
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |