Package org.iplass.mtp.entity.definition
Interface EntityDefinitionManager
- All Superinterfaces:
Manager,TypedDefinitionManager<EntityDefinition>
Entity定義を管理するクラスのインタフェース。
-
Method Summary
Modifier and TypeMethodDescriptioncreate(EntityDefinition definition) 新規にEntity定義を作成する。現在登録されているEntity定義名のリストを返す。現在登録されているEntity定義名のリストを返す。definitionNameList(String filterPath) 現在登録されているEntity定義名のリストを返す。指定の定義名のEntity定義を取得する。longgetAutoNumberCurrentValue(String definitionName, String propertyName) AutoNumberPropertyの現在のカウンター値を返す。longgetAutoNumberCurrentValue(String definitionName, String propertyName, String subUnitKey) AutoNumberPropertyの現在のカウンター値を返す。getAutoNumberCurrentValueList(String definitionName, String propertyName) AutoNumberPropertyの現在のカウンター値のリストを返す。現在登録されているEntity Storage Spaceのリストを返す。booleanisLockedSchema(String definitionName) スキーマがロックされているかを返す。指定の定義名のEntityを削除する。voidrenameEntityDefinition(String from, String to) Entity定義名を変更する。 データ自体はそのまま保持される。voidrenamePropertyDefinition(String definitionName, String from, String to) Entity定義のプロパティ名を変更する。 データ自体はそのまま保持される。voidresetAutoNumberCounter(String definitionName, String propertyName, long startsWith) AutoNumberPropertyのカウンター値を指定の値にリセットする。voidresetAutoNumberCounter(String definitionName, String propertyName, String subUnitKey, long startsWith) AutoNumberPropertyのカウンター値を指定の値にリセットする。update(EntityDefinition definition) 指定のEntity定義で既存の定義を更新する。 (定義名の一致する定義を更新する。)update(EntityDefinition definition, Map<String, String> renamePropertyMap) 指定のEntity定義で既存の定義を更新する。 (定義名の一致する定義を更新する。)Methods inherited from interface org.iplass.mtp.definition.TypedDefinitionManager
definitionSummaryList, definitionSummaryList, definitionSummaryList, getDefinitionType, rename
-
Method Details
-
create
新規にEntity定義を作成する。- Specified by:
createin interfaceTypedDefinitionManager<EntityDefinition>- Parameters:
definition- 新規に作成するEntityの定義- Returns:
- 作成結果
-
get
指定の定義名のEntity定義を取得する。- Specified by:
getin interfaceTypedDefinitionManager<EntityDefinition>- Parameters:
definitionName- 定義名- Returns:
- 指定の定義名で一意に特定されるEntity定義
-
definitionList
現在登録されているEntity定義名のリストを返す。- Specified by:
definitionListin interfaceTypedDefinitionManager<EntityDefinition>- Returns:
- Entity定義名のリスト
-
definitionNameList
List<DefinitionSummary> definitionNameList()現在登録されているEntity定義名のリストを返す。- Returns:
- Entity定義名(Name, DisplayName, Description)のリスト
-
definitionNameList
現在登録されているEntity定義名のリストを返す。- Parameters:
filterPath- "/"区切りのdefinitionNameのプレフィックス(Entity関連の定義は.区切りでも可)- Returns:
- Entity定義名(Name, DisplayName, Description)のリスト
-
remove
指定の定義名のEntityを削除する。- Specified by:
removein interfaceTypedDefinitionManager<EntityDefinition>- Parameters:
definitionName- 定義名- Returns:
- 削除結果
-
update
指定のEntity定義で既存の定義を更新する。 (定義名の一致する定義を更新する。)- Specified by:
updatein interfaceTypedDefinitionManager<EntityDefinition>- Parameters:
definition- 更新するEntity定義- Returns:
- 更新結果
-
update
EntityDefinitionModifyResult update(EntityDefinition definition, Map<String, String> renamePropertyMap) 指定のEntity定義で既存の定義を更新する。 (定義名の一致する定義を更新する。)- Parameters:
definition- 更新するEntity定義renamePropertyMap- 名前を変更するプロパティのMap(from, to)- Returns:
- 更新結果
-
getAutoNumberCurrentValue
AutoNumberPropertyの現在のカウンター値を返す。- Parameters:
definitionName- Entity定義名propertyName- AutoNumberProperty型プロパティのプロパティ名- Returns:
- 現在のカウンター値
-
getAutoNumberCurrentValueList
List<org.apache.commons.lang3.tuple.Pair<String,Long>> getAutoNumberCurrentValueList(String definitionName, String propertyName) AutoNumberPropertyの現在のカウンター値のリストを返す。- Parameters:
definitionName- Entity定義名propertyName- AutoNumberProperty型プロパティのプロパティ名- Returns:
- 現在のカウンター値のリスト
-
getAutoNumberCurrentValue
AutoNumberPropertyの現在のカウンター値を返す。- Parameters:
definitionName- Entity定義名propertyName- AutoNumberProperty型プロパティのプロパティ名subUnitKey- 採番単位のKEY値- Returns:
- 現在のカウンター値
-
resetAutoNumberCounter
AutoNumberPropertyのカウンター値を指定の値にリセットする。- Parameters:
definitionName- Entity定義名propertyName- AutoNumberProperty型プロパティのプロパティ名startsWith- リセットするカウンター値subUnitKey- 採番単位のKEY値
-
resetAutoNumberCounter
void resetAutoNumberCounter(String definitionName, String propertyName, String subUnitKey, long startsWith) AutoNumberPropertyのカウンター値を指定の値にリセットする。- Parameters:
definitionName- Entity定義名propertyName- AutoNumberProperty型プロパティのプロパティ名subUnitKey- 採番単位のKEY値startsWith- リセットするカウンター値
-
renameEntityDefinition
Entity定義名を変更する。 データ自体はそのまま保持される。- Parameters:
from- 変更前の定義名to- 変更後の定義名
-
renamePropertyDefinition
Entity定義のプロパティ名を変更する。 データ自体はそのまま保持される。- Parameters:
definitionName- 対象のEntity定義名from- 変更前のプロパティ名to- 変更後のプロパティ名
-
getStorageSpaceList
現在登録されているEntity Storage Spaceのリストを返す。- Returns:
- Entity Entity Storage Spaceのリスト
-
isLockedSchema
スキーマがロックされているかを返す。
- Parameters:
definitionName- 対象のEntity定義名- Returns:
- true:ロック
-