Interface IEntityReference

All Superinterfaces:
IObjectReference, Serializable
All Known Implementing Classes:
UuidEntityRef

@Deprecated public interface IEntityReference extends IObjectReference
Deprecated.
Prefer the more generic IObjectReference interface instead.
Interface for identifying an entity by its UUID and entity Class
Since:
7.0.0
Author:
XIMA MEDIA GmbH
  • Method Details

    • getEntityClass

      Class<? extends IUUIDEntity> getEntityClass()
      Deprecated.
      Gets the class of the referenced type of entities.
      Returns:
      The referenced entity class.
    • getUuid

      UUID getUuid()
      Deprecated.
      Gets the UUID of the referenced entity, i.e. the value of IUUIDEntity.getUUIDObject().
      Returns:
      The referenced UUID.
    • getId

      default String getId()
      Deprecated.
      Gets the ID of the identified object.

      For entity references, the ID is always the UUID in its string representation.

      Specified by:
      getId in interface IObjectReference
      Returns:
      The object ID.
    • getType

      default String getType()
      Deprecated.
      Description copied from interface: IObjectReference
      Gets the type of the identified objects. This should be the type name of an EntityType, if available, but may be another string in case no such entity type exists. Prefer IObjectReference.getTypeKnown() if applicable.
      Specified by:
      getType in interface IObjectReference
      Returns:
      The object type.