|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.extension.jdbc.EntityMeta
public class EntityMeta
エンティティのメタデータです。
フィールドの概要 | |
---|---|
protected ArrayMap |
additionalInfoMap
追加情報の配列マップです。 |
protected CaseInsensitiveMap |
columnPropertyMetaMap
カラム名をキーにしたプロパティメタデータの配列マップです。 |
protected Class<?> |
entityClass
エンティティクラスです。 |
protected List<PropertyMeta> |
idPropertyMetaList
識別子になっているプロパティメタデータのリストです。 |
protected CaseInsensitiveMap |
mappedByPropertyMetaMap
MappedByで注釈されているプロパティメタデータのマップです。 |
protected String |
name
名前です。 |
protected CaseInsensitiveMap |
propertyMetaMap
プロパティメタデータの配列マップです。 |
protected boolean |
relationshipResolved
関連が解決されたかどうかです。 |
protected TableMeta |
tableMeta
テーブルメタデータです。 |
protected PropertyMeta |
versionPropertyMeta
バージョンを表すプロパティメタデータです。 |
コンストラクタの概要 | |
---|---|
EntityMeta()
EntityMeta を作成します。 |
|
EntityMeta(String name)
EntityMeta を作成します。 |
メソッドの概要 | |
---|---|
void |
addAdditionalInfo(String name,
Object additionalInfo)
追加情報を追加します。 |
void |
addPropertyMeta(PropertyMeta propertyMeta)
プロパティメタデータを追加します。 |
Object |
getAdditionalInfo(int index)
インデックスに対応した追加情報を返します。 |
Object |
getAdditionalInfo(String name)
名前に対応した追加情報を返します。 |
int |
getAdditionalInfoSize()
追加情報のサイズを返します。 |
Iterable<PropertyMeta> |
getAllColumnPropertyMeta()
カラムに結びつく全てのプロパティメタデータの Iterable を返します。 |
Iterable<PropertyMeta> |
getAllPropertyMeta()
全てのプロパティメタデータの Iterable を返します。 |
PropertyMeta |
getColumnPropertyMeta(int index)
カラムに結びつくプロパティメタデータを返します。 |
PropertyMeta |
getColumnPropertyMeta(String columnName)
カラムに結びつくプロパティメタデータを返します。 |
int |
getColumnPropertyMetaSize()
カラムに結びつくプロパティメタデータの数を返します。 |
Class<?> |
getEntityClass()
エンティティクラスを返します。 |
List<PropertyMeta> |
getIdPropertyMetaList()
識別子になっているプロパティメタデータのリストを返します。 |
PropertyMeta |
getMappedByPropertyMeta(String mappedBy,
Class<?> relationshipClass)
MappedByで注釈されているプロパティメタデータを返します。 |
String |
getName()
名前を返します。 |
PropertyMeta |
getPropertyMeta(int index)
プロパティメタデータを返します。 |
PropertyMeta |
getPropertyMeta(String propertyName)
プロパティメタデータを返します。 |
int |
getPropertyMetaSize()
プロパティメタデータの数を返します。 |
TableMeta |
getTableMeta()
テーブルメタデータを返します。 |
PropertyMeta |
getVersionPropertyMeta()
バージョンを表すプロパティメタデータを返します。 |
boolean |
hasColumnPropertyMeta(String columnName)
カラムに結びつくプロパティメタデータがあるかどうかを返します。 |
boolean |
hasPropertyMeta(String propertyName)
プロパティメタデータがあるかどうかを返します。 |
boolean |
hasVersionPropertyMeta()
バージョンを表すプロパティメタデータがあれば true を返します。 |
boolean |
isRelationshipResolved()
関連が解決されたかどうかを返します。 |
void |
setEntityClass(Class<?> entityClass)
エンティティクラスを設定します。 |
void |
setName(String name)
名前を設定します。 |
void |
setRelationshipResolved(boolean relationshipResolved)
関連が解決されたかどうかを設定します。 |
void |
setTableMeta(TableMeta tableMeta)
テーブルメタデータを設定します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected String name
protected Class<?> entityClass
protected TableMeta tableMeta
protected CaseInsensitiveMap propertyMetaMap
protected ArrayMap additionalInfoMap
protected List<PropertyMeta> idPropertyMetaList
protected PropertyMeta versionPropertyMeta
protected CaseInsensitiveMap mappedByPropertyMetaMap
protected CaseInsensitiveMap columnPropertyMetaMap
protected volatile boolean relationshipResolved
コンストラクタの詳細 |
---|
public EntityMeta()
EntityMeta
を作成します。
public EntityMeta(String name)
EntityMeta
を作成します。
name
- 名前メソッドの詳細 |
---|
public String getName()
public void setName(String name)
name
- 名前public Class<?> getEntityClass()
public void setEntityClass(Class<?> entityClass)
entityClass
- エンティティクラスpublic TableMeta getTableMeta()
public void setTableMeta(TableMeta tableMeta)
tableMeta
- テーブルメタデータpublic PropertyMeta getPropertyMeta(String propertyName) throws PropertyNotFoundRuntimeException
propertyName
- プロパティ名
PropertyNotFoundRuntimeException
- プロパティメタデータが見つからない場合public PropertyMeta getColumnPropertyMeta(String columnName) throws EntityColumnNotFoundRuntimeException
columnName
- カラム名
EntityColumnNotFoundRuntimeException
- カラム用のプロパティメタデータが見つからない場合public boolean hasPropertyMeta(String propertyName)
propertyName
- プロパティ名
public boolean hasColumnPropertyMeta(String columnName)
columnName
- カラム名
public int getPropertyMetaSize()
public int getColumnPropertyMetaSize()
public PropertyMeta getPropertyMeta(int index)
index
- インデックス
public Iterable<PropertyMeta> getAllPropertyMeta()
Iterable
を返します。
Iterable
public PropertyMeta getColumnPropertyMeta(int index)
index
- カラムインデックス
public Iterable<PropertyMeta> getAllColumnPropertyMeta()
Iterable
を返します。
Iterable
public List<PropertyMeta> getIdPropertyMetaList()
public boolean hasVersionPropertyMeta()
true
を返します。
true
public PropertyMeta getVersionPropertyMeta()
public PropertyMeta getMappedByPropertyMeta(String mappedBy, Class<?> relationshipClass)
mappedBy
- 関連の所有者側のプロパティ名relationshipClass
- 関連クラス
public void addPropertyMeta(PropertyMeta propertyMeta)
propertyMeta
- プロパティメタデータpublic boolean isRelationshipResolved()
public void setRelationshipResolved(boolean relationshipResolved)
relationshipResolved
- 関連が解決されたかどうかpublic Object getAdditionalInfo(String name)
name
- 名前
public int getAdditionalInfoSize()
public Object getAdditionalInfo(int index)
index
- インデックス
public void addAdditionalInfo(String name, Object additionalInfo)
name
- 名前additionalInfo
- 追加情報
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |