|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.doma.extension.gen.EntityPropertyDescFactory
public class EntityPropertyDescFactory
エンティティプロパティ記述のファクトリです。
| フィールドの概要 | |
|---|---|
protected Long |
allocationSize
識別子の割り当てサイズ |
protected GenDialect |
dialect
方言 |
protected GenerationType |
generationType
識別子を生成する方法 |
protected Long |
initialValue
識別子の初期値 |
protected EntityPropertyClassNameResolver |
propertyClassNameResolver
ドメインクラス名のリゾルバ |
protected boolean |
showColumnName
カラム名を表示する場合 true |
protected Pattern |
versionColumnNamePattern
バージョンカラム名パターン |
| コンストラクタの概要 | |
|---|---|
EntityPropertyDescFactory(GenDialect dialect,
EntityPropertyClassNameResolver propertyClassNameResolver,
String versionColumnNamePattern,
GenerationType generationType,
Long initialValue,
Long allocationSize,
boolean showColumnName)
インスタンスを構築します。 |
|
| メソッドの概要 | |
|---|---|
EntityPropertyDesc |
createEntityPropertyDesc(EntityDesc entityDesc,
ColumnMeta columnMeta)
エンティティプロパティ記述を作成します。 |
protected void |
descriminateType(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
数値かどうかを処理します。 |
protected void |
handleName(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
名前を処理します。 |
protected void |
handlePropertyClassName(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
プロパティクラス名を処理します。 |
protected void |
handleShowColumnName(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
カラム名を表示するかどうかを処理します。 |
protected void |
handleVersion(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
バージョンを処理します。 |
protected boolean |
isNameDifferentBetweenPropertyAndColumn(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc)
プロパティ名とカラム名が異なる場合 trueを返します。 |
protected boolean |
isVersionAnnotatable(String className)
org.seasar.doma.Version を注釈可能なクラス名の場合 true を返します。 |
protected void |
validateGenerationType(GenerationType generationType)
識別子を生成する方法を検証します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected final GenDialect dialect
protected final EntityPropertyClassNameResolver propertyClassNameResolver
protected final Pattern versionColumnNamePattern
protected final GenerationType generationType
protected final Long initialValue
protected final Long allocationSize
protected final boolean showColumnName
true
| コンストラクタの詳細 |
|---|
public EntityPropertyDescFactory(GenDialect dialect,
EntityPropertyClassNameResolver propertyClassNameResolver,
String versionColumnNamePattern,
GenerationType generationType,
Long initialValue,
Long allocationSize,
boolean showColumnName)
dialect - 方言propertyClassNameResolver - プロパティクラス名のリゾルバversionColumnNamePattern - バージョンカラム名パターンgenerationType - 識別子を生成する方法initialValue - 識別子の初期値allocationSize - 識別子の割り当てサイズshowColumnName - カラム名を表示する場合 true| メソッドの詳細 |
|---|
protected void validateGenerationType(GenerationType generationType)
generationType - 識別子を生成する方法
public EntityPropertyDesc createEntityPropertyDesc(EntityDesc entityDesc,
ColumnMeta columnMeta)
entityDesc - エンティティ記述columnMeta - カラムメタデータ
protected void handleName(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
entityDesc - エンティティ記述propertyDesc - エンティティプロパティ記述columnMeta - カラムメタデータ
protected void handlePropertyClassName(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
entityDesc - エンティティ記述propertyDesc - エンティティプロパティ記述columnMeta - カラムメタデータ
protected void descriminateType(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
entityDesc - エンティティ記述propertyDesc - エンティティプロパティ記述columnMeta - カラムメタデータ
protected void handleShowColumnName(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
entityDesc - エンティティ記述propertyDesc - エンティティプロパティ記述columnMeta - カラムメタデータ
protected boolean isNameDifferentBetweenPropertyAndColumn(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc)
trueを返します。
entityDesc - エンティティ記述propertyDesc - エンティティプロパティ記述
true
protected void handleVersion(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
entityDesc - エンティティ記述propertyDesc - エンティティプロパティ記述columnMeta - カラムメタデータprotected boolean isVersionAnnotatable(String className)
org.seasar.doma.Version を注釈可能なクラス名の場合 true を返します。
className - クラス名
Version を注釈可能なクラス名の場合 true
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||