クラス EntityHandler
java.lang.Object
org.iplass.mtp.impl.metadata.BaseMetaDataRuntime
org.iplass.mtp.impl.entity.EntityHandler
- すべての実装されたインタフェース:
MetaDataRuntime
データモデルの特定の型の管理を扱うクラス。
DataModelHandlerのインスタンスは、
各データモデルかつテナント単位に1インスタンス生成され、
複数のスレッドから同時に使用されるため、クライアント依存のデータは保持しない。
-
フィールドの概要
フィールド -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明voidbulkUpdate(BulkUpdatable bulkUpdatable) booleanintintvoiddelete(Entity entity, DeleteOption option) deleteAll(DeleteCondition cond) (package private) static EntitygetAsEntity(EntityHandler eh, SearchResultIterator it, Query query) getDeclaredProperty(String propName) getIndexedPropertyList(EntityContext context) getProperty(String propName, EntityContext context) getPropertyById(String id, EntityContext context) getPropertyCascade(String propName, EntityContext context) getPropertyList(EntityContext context) getPropertyListByPropertyType(Class<? extends PropertyType> type, EntityContext context) voidgetRecycleBin(Predicate<Entity> callback, Long rbid) getReferencePropertyList(boolean withoutMappedBy, EntityContext context) getReferencePropertyList(ReferenceType type, EntityContext context) getSuperDataModelHandler(EntityContext context) insert(Entity entity, InsertOption option) Entityデータを追加します。insertDirect(Entity entity, EntityContext entityContext) booleanisRoot()booleanbooleanbooleanbooleanload(String oid, Long version, LoadOption option, boolean withLock) booleanbooleanlockEntityByUser(String oid, String userId, boolean force) Entity[]newArrayInstance(int size) void(package private) voidnormalizeInternal(Entity entity, List<String> targetProperties, EntityContext entityContext) (package private) voidpostporcessDeleteDirect(Entity beforeDeleteEntity, EntityContext entityContext, List<PropertyHandler> complexWrapperTypePropList, Long rbid) (package private) EntitypreporcessDeleteDirect(Entity entity, EntityContext entityContext, List<PropertyHandler> complexWrapperTypePropList) (package private) voidpreprocessInsertDirect(Entity entity, EntityContext entityContext, List<PropertyHandler> complexWrapperTypePropList) (package private) booleanpreprocessUpdateDirect(Entity entity, UpdateOption option, EntityContext entityContext, List<PropertyHandler> complexWrapperTypePropList, boolean checkPrevExists) voidvoidsearch(Query cond, EntityStreamSearchHandler<Object[]> streamSearchHandler, Predicate<Object[]> callback) voidsearchEntity(Query query, boolean structuredEntity, EntityStreamSearchHandler<Entity> streamSearchHandler, Predicate<Entity> searchCallback) voidsetLocalizedStringMap(Map<String, String> localizedStringMap) voidsetRoot(boolean isRoot) booleanunlockEntityByUser(String oid, String userId, boolean force) voidupdate(Entity entity, UpdateOption option) updateAll(UpdateCondition cond) voidupdateDirect(Entity entity, UpdateOption option, EntityContext entityContext) クラスから継承されたメソッド org.iplass.mtp.impl.metadata.BaseMetaDataRuntime
checkState, hasIllegalStateException, setIllegalStateException
-
フィールド詳細
-
ROOT_ENTITY_ID
- 関連項目:
-
-
コンストラクタの詳細
-
EntityHandler
-
-
メソッドの詳細
-
getDataLocalizationStrategyRuntime
public MetaDataLocalizationStrategy.DataLocalizationStrategyRuntime getDataLocalizationStrategyRuntime() -
getEntityStoreRuntime
-
getLocalizedStringMap
-
setLocalizedStringMap
-
newInstance
-
newArrayInstance
-
getService
-
getEventListenerHandlers
-
getDataStore
-
isRoot
public boolean isRoot() -
setRoot
public void setRoot(boolean isRoot) -
getMetaData
-
getDeclaredProperty
-
getDeclaredPropertyList
-
getSuperDataModelHandler
-
getProperty
-
getPropertyCascade
-
getPropertyListByPropertyType
public List<PropertyHandler> getPropertyListByPropertyType(Class<? extends PropertyType> type, EntityContext context) -
getIndexedPropertyList
-
getReferencePropertyList
public List<ReferencePropertyHandler> getReferencePropertyList(ReferenceType type, EntityContext context) -
getReferencePropertyList
public List<ReferencePropertyHandler> getReferencePropertyList(boolean withoutMappedBy, EntityContext context) -
getPropertyList
-
validate
-
insertDirect
-
insert
Entityデータを追加します。- パラメータ:
entity- Entityデータoption-- 戻り値:
- 登録OID
-
normalize
-
normalizeInternal
-
preprocessInsertDirect
void preprocessInsertDirect(Entity entity, EntityContext entityContext, List<PropertyHandler> complexWrapperTypePropList) -
preprocessUpdateDirect
boolean preprocessUpdateDirect(Entity entity, UpdateOption option, EntityContext entityContext, List<PropertyHandler> complexWrapperTypePropList, boolean checkPrevExists) - パラメータ:
entity-option-entityContext-complexWrapperTypePropList-checkPrevExists-- 戻り値:
- 確実に既存Entityが存在する場合true、存在するか否か不明な場合false
-
updateDirect
-
update
-
purge
-
restore
-
getRecycleBin
-
countRecycleBin
-
delete
-
preporcessDeleteDirect
Entity preporcessDeleteDirect(Entity entity, EntityContext entityContext, List<PropertyHandler> complexWrapperTypePropList) -
postporcessDeleteDirect
void postporcessDeleteDirect(Entity beforeDeleteEntity, EntityContext entityContext, List<PropertyHandler> complexWrapperTypePropList, Long rbid) -
lock
-
load
-
search
public void search(Query cond, EntityStreamSearchHandler<Object[]> streamSearchHandler, Predicate<Object[]> callback) -
searchEntity
public void searchEntity(Query query, boolean structuredEntity, EntityStreamSearchHandler<Entity> streamSearchHandler, Predicate<Entity> searchCallback) -
count
-
getDeclaredPropertyById
-
getPropertyById
-
getStrategy
-
getAsEntity
-
updateAll
-
canDeleteAll
public boolean canDeleteAll() -
deleteAll
-
unlockEntityByUser
-
lockEntityByUser
-
getLocalizedDisplayName
-
bulkUpdate
-
isVersioned
public boolean isVersioned()
-