|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.extension.jdbc.gen.internal.desc.AssociationResolver
public class AssociationResolver
エンティティ記述の関連を解決するクラスです。
フィールドの概要 | |
---|---|
protected EntitySetDesc |
entitySetDesc
エンティティ集合記述 |
protected PersistenceConvention |
persistenceConvention
永続化層の命名規約 |
protected PluralFormDictinary |
pluralFormDictinary
単語を複数形に変換するための辞書 |
protected static java.lang.String |
TO_MANY_ASSOCIATION_NAME_SUFFIX
多側に対する関連名のサフィックス |
コンストラクタの概要 | |
---|---|
AssociationResolver(EntitySetDesc entitySetDesc,
PluralFormDictinary pluralFormDictinary,
PersistenceConvention persistenceConvention)
インスタンスを構築します。 |
メソッドの概要 | |
---|---|
protected void |
adjustAttributeNames(DbForeignKeyMeta fkMeta,
EntityDesc entityDesc,
java.lang.String associationName)
エンティティ記述のすべての属性について必要であれば名前を調整します。 |
protected void |
doInverseAssociationDesc(DbForeignKeyMeta fkMeta,
EntityDesc ownerEntityDesc,
EntityDesc inverseEntityDesc,
java.lang.String mappedBy)
被所有側の関連を処理します。 |
protected AssociationDesc |
doOwnerAssociationDesc(DbForeignKeyMeta fkMeta,
EntityDesc ownerEntityDesc,
EntityDesc inverseEntityDesc)
所有側の関連を処理します。 |
protected java.lang.String |
getInverseAssociationName(EntityDesc inverseEntityDesc,
EntityDesc ownerEntityDesc,
boolean oneToMany)
関連名を返します。 |
protected java.lang.String |
getOwnerAssociationName(DbForeignKeyMeta fkMeta,
EntityDesc ownerEntityDesc,
EntityDesc inverseEntityDesc)
関連の所有側の関連名を返します。 |
protected java.lang.String |
pluralizeName(java.lang.String name)
名前を複数形に変換します。 |
void |
resolve(DbTableMeta tableMeta,
DbForeignKeyMeta fkMeta)
関連を解決します。 |
protected java.lang.String |
toUniqueAssociationName(EntityDesc entityDesc,
java.lang.String candidateName)
一意の関連名に変換します。 |
protected java.lang.String |
toUniqueAttributeName(EntityDesc entityDesc,
java.lang.String candidateName)
一意な属性名に変換します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected static java.lang.String TO_MANY_ASSOCIATION_NAME_SUFFIX
protected EntitySetDesc entitySetDesc
protected PluralFormDictinary pluralFormDictinary
protected PersistenceConvention persistenceConvention
コンストラクタの詳細 |
---|
public AssociationResolver(EntitySetDesc entitySetDesc, PluralFormDictinary pluralFormDictinary, PersistenceConvention persistenceConvention)
entitySetDesc
- エンティティ集合記述pluralFormDictinary
- 単語を複数形に変換するための辞書persistenceConvention
- 永続化層の命名規約メソッドの詳細 |
---|
public void resolve(DbTableMeta tableMeta, DbForeignKeyMeta fkMeta)
tableMeta
- テーブルメタデータfkMeta
- 外部キーメタデータprotected AssociationDesc doOwnerAssociationDesc(DbForeignKeyMeta fkMeta, EntityDesc ownerEntityDesc, EntityDesc inverseEntityDesc)
fkMeta
- 外部キーメタデータownerEntityDesc
- 関連の所有者側のエンティティ記述inverseEntityDesc
- 関連の被所有者側のエンティティ記述
protected void adjustAttributeNames(DbForeignKeyMeta fkMeta, EntityDesc entityDesc, java.lang.String associationName)
fkMeta
- 外部キーメタデータentityDesc
- エンティティ記述associationName
- 関連名protected java.lang.String toUniqueAttributeName(EntityDesc entityDesc, java.lang.String candidateName)
entityDesc
- エンティティ記述candidateName
- 候補の属性名
protected void doInverseAssociationDesc(DbForeignKeyMeta fkMeta, EntityDesc ownerEntityDesc, EntityDesc inverseEntityDesc, java.lang.String mappedBy)
fkMeta
- 外部キーメタデータownerEntityDesc
- 関連の所有者側のエンティティ記述inverseEntityDesc
- 関連の被所有者側のエンティティ記述mappedBy
- 関連の所有者側のプロパティ名protected java.lang.String getOwnerAssociationName(DbForeignKeyMeta fkMeta, EntityDesc ownerEntityDesc, EntityDesc inverseEntityDesc)
fkMeta
- 外部キーメタデータownerEntityDesc
- 関連の所有者側のエンティティ記述inverseEntityDesc
- 関連の被所有者側のエンティティ記述
protected java.lang.String getInverseAssociationName(EntityDesc inverseEntityDesc, EntityDesc ownerEntityDesc, boolean oneToMany)
inverseEntityDesc
- 参照する側のエンティティ記述ownerEntityDesc
- 参照される側のエンティティ記述oneToMany
- 関連がOneToManyの場合true
protected java.lang.String toUniqueAssociationName(EntityDesc entityDesc, java.lang.String candidateName)
entityDesc
- エンティティ記述candidateName
- 候補の関連名
protected java.lang.String pluralizeName(java.lang.String name)
name
- 名前
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |