Class TxInstanceLocator
java.lang.Object
com.aquima.interactions.profile.model.TxInstanceLocator
This class is used by transaction commands to locate an instance. The instances are not stored in the command itself,
as the instance might get deleted and recreated.
- Since:
- 6.5
- Author:
- O. Kerpershoek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method can be used to lookup an instance based on a reference.
-
Constructor Details
-
TxInstanceLocator
-
-
Method Details
-
getInstance
This method can be used to lookup an instance based on a reference.- Parameters:
id
- InstanceReference of the instance that should be returned.- Returns:
- IEntityInstance The entity instance for the specified ID.
- Throws:
UnknownEntityException
- This exception is thrown when the entity value contains an invalid entity name.UnknownInstanceException
- This exception is thrown when the entity value refers to an unknown instance.InstanceCastException
- This exception is thrown when the ID of the entity value does not match the actual type.
-