T - PD entity class (translatable to PI)E - PI entity class@Beta public interface PiTranslationStore<T extends PiTranslatable,E extends PiEntity> extends Store<PiTranslationEvent<T,E>,PiTranslationStoreDelegate<T,E>>
| Modifier and Type | Method and Description |
|---|---|
void |
addOrUpdate(PiHandle<E> handle,
PiTranslatedEntity<T,E> entity)
Adds or update a mapping between the given PI entity handle and
translated entity.
|
PiTranslatedEntity<T,E> |
get(PiHandle<E> handle)
Returns a PI translated entity for the given handle.
|
void |
remove(PiHandle<E> handle)
Removes a previously added mapping for the given PI entity handle.
|
hasDelegate, setDelegate, unsetDelegatevoid addOrUpdate(PiHandle<E> handle, PiTranslatedEntity<T,E> entity)
handle - PI entity handleentity - PI translated entityPiTranslatedEntity<T,E> get(PiHandle<E> handle)
handle - PI entity handle