Class TxInstanceLocator

java.lang.Object
com.aquima.interactions.profile.model.TxInstanceLocator

public class TxInstanceLocator extends Object
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 Details

  • Method Details

    • getInstance

      public IEntityInstance getInstance(EntityValue id)
      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.