public class EntityImpl extends Object implements Entity, DataStoreConfigurationModelInterface
コンストラクタと説明 |
---|
EntityImpl(ApplicationImpl applicationImpl)
新規にインスタンスを生成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addAttribute(AttributeImpl attribute) |
void |
addExtendedEntity(ExtendedEntityImpl extendedEntity) |
void |
addPrimaryKeyString(String primaryKeyString) |
void |
addReferedRelationships(RelationshipImpl relationship)
このエンティティを参照しているリレーションシップを追加する
|
void |
addSourceRelationships(RelationshipImpl relationship)
このエンティティがソースとなっているリレーションシップを追加する
|
void |
addTargetRelationships(RelationshipImpl relationship)
このエンティティがターゲットとなっているリレーションシップを追加する
|
void |
clearAttributes() |
void |
clearPrimaryKeyStrings() |
void |
executeMapping()
設定されたXMLの内容に従って、モデル同士を関連付ける。
|
Application |
getApplication()
エンティティを定義しているアプリケーションを取得します。
|
Map |
getAttributes()
エンティティに含まれる属性をすべて取得します。
|
Map |
getExtendedEntities()
このエンティティを拡張している拡張エンティティをすべて取得します。
|
Model |
getModel()
このエンティティを参照しているモデルを取得します。
|
String |
getName()
エンティティ名を取得します。
|
Attribute[] |
getPrimaryKeys()
エンティティのプライマリキーとなる属性をすべて取得します。
|
Collection |
getPrimaryKeyStrings() |
Map |
getReferedRelationships()
このエンティティの属性を、国際化基準項目や期間化基準項目などを使用して参照している全てのリレーションシップを取得します。
|
Map |
getSourceRelationships()
このエンティティがソースとなっているリレーションシップを取得する
|
Table |
getTable()
このエンティティを参照しているテーブルを取得します。
|
Map |
getTargetRelationships()
このエンティティがターゲットとなっているリレーションシップを取得する
|
UpdateInfo |
getUpdateInfo()
エンティティの更新情報を取得します。
|
boolean |
isInternational()
エンティティが国際化の対象であるかどうかを取得します。
|
boolean |
isTerminable()
エンティティが期間化の対象であるかどうかを取得します。
|
boolean |
isTerminableInternational()
エンティティが期間国際化の対象であるかどうかを取得します。
|
void |
setInternational(boolean international) |
void |
setModel(ModelImpl model)
model を設定。
|
void |
setName(String name) |
void |
setTable(TableImpl table)
table を設定。
|
void |
setTerminable(boolean terminable) |
void |
setTerminableInternational(boolean terminableInternational) |
void |
setUpdateInfo(UpdateInfoImpl updateInfo)
更新情報を設定する
|
void |
verify()
このオブジェクトの内部情報を検査します。
|
public EntityImpl(ApplicationImpl applicationImpl)
applicationImpl
- public Application getApplication()
Entity
getApplication
インタフェース内 Entity
public Map getAttributes()
Entity
Attribute
を値としたマップを返します。getAttributes
インタフェース内 Entity
public void addAttribute(AttributeImpl attribute)
attribute
- public void clearAttributes()
public void setName(String name)
name
- public Attribute[] getPrimaryKeys()
Entity
Entity.getAttributes()
で取得される配列の部分集合になります。
また、配列の順番はプライマリキーとして定義された順番になります。getPrimaryKeys
インタフェース内 Entity
public UpdateInfo getUpdateInfo()
Entity
null
を返します。getUpdateInfo
インタフェース内 Entity
public void setUpdateInfo(UpdateInfoImpl updateInfo)
updateInfo
- public boolean isTerminable()
Entity
isTerminable
インタフェース内 Entity
true
、そうでない場合 false
public void setTerminable(boolean terminable)
terminable
- public boolean isInternational()
Entity
isInternational
インタフェース内 Entity
true
、そうでない場合 false
public boolean isTerminableInternational()
Entity
isTerminableInternational
インタフェース内 Entity
true
、そうでない場合
false
public void setTerminableInternational(boolean terminableInternational)
terminableInternational
- public void setInternational(boolean international)
international
- public Map getExtendedEntities()
Entity
ExtendedEntity
を値としたマップを返します。getExtendedEntities
インタフェース内 Entity
public void addExtendedEntity(ExtendedEntityImpl extendedEntity)
extendedEntity
- public void addPrimaryKeyString(String primaryKeyString)
primaryKeyString
- public void clearPrimaryKeyStrings()
public Collection getPrimaryKeyStrings()
public void setModel(ModelImpl model) throws DataStoreConfigException
model
- DataStoreConfigException
public Table getTable()
Entity
null
を返します。public void setTable(TableImpl table) throws DataStoreConfigException
table
- DataStoreConfigException
public void addSourceRelationships(RelationshipImpl relationship)
relationship
- public Map getSourceRelationships()
getSourceRelationships
インタフェース内 Entity
public void addTargetRelationships(RelationshipImpl relationship)
relationship
- public Map getTargetRelationships()
getTargetRelationships
インタフェース内 Entity
public Map getReferedRelationships()
Entity
Relationship
を値としたマップを返します。getReferedRelationships
インタフェース内 Entity
public void addReferedRelationships(RelationshipImpl relationship)
relationship
- public void executeMapping() throws DataStoreConfigException
executeMapping
インタフェース内 DataStoreConfigurationModelInterface
DataStoreConfigException
public void verify() throws DataStoreConfigException
DataStoreConfigurationModelInterface
verify
インタフェース内 DataStoreConfigurationModelInterface
DataStoreConfigException
- 内部情報に整合性違反がある場合Copyright © 2012 NTT DATA INTRAMART CORPORATION