Class UuidEntityRef
java.lang.Object
de.xima.fc.workflow.UuidEntityRef
- All Implemented Interfaces:
IEntityReference, IObjectReference, Serializable
Deprecated.
Models a reference to another entity via the UUID of that entity. Supports JSON serialization and deserialization.
All fields of this class should not be
null, to indicate a missing reference use null instead of an
instance of this class.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.static <TEntity extends IUUIDEntity>
UuidEntityRefforEntity(TEntity entity) Deprecated.Creates a new entity reference for the given UUID entity.static <TEntity extends IUUIDEntity>
UuidEntityRefDeprecated.Creates a new entity reference with the given UUID and entity class.Class<? extends IUUIDEntity> Deprecated.Gets the class of the referenced type of entities.getUuid()Deprecated.Gets the UUID of the referenced entity, i.e. the value ofIUUIDEntity.getUUIDObject().inthashCode()Deprecated.voidsetEntityClass(Class<? extends IUUIDEntity> entityClass) Deprecated.voidDeprecated.toString()Deprecated.Methods inherited from interface IEntityReference
getId, getTypeMethods inherited from interface IObjectReference
getId, getTypeKnown
-
Constructor Details
-
UuidEntityRef
public UuidEntityRef()Deprecated.For JSON serialization / deserialization only. Use the static factory methods.
-
-
Method Details
-
equals
-
getEntityClass
Deprecated.Description copied from interface:IEntityReferenceGets the class of the referenced type of entities.- Specified by:
getEntityClassin interfaceIEntityReference- Returns:
- Type of the referenced class.
-
getUuid
Deprecated.Description copied from interface:IEntityReferenceGets the UUID of the referenced entity, i.e. the value ofIUUIDEntity.getUUIDObject().- Specified by:
getUuidin interfaceIEntityReference- Returns:
- The UUID of the referenced entity.
-
hashCode
-
setEntityClass
Deprecated.- Parameters:
entityClass- Type of the referenced class.
-
setUuid
-
toString
-
forEntity
Deprecated.Creates a new entity reference for the given UUID entity.- Type Parameters:
TEntity- Type of the referenced entity.- Parameters:
entity- An entity for which to create a reference.- Returns:
- A new instance with the given UUID and class, or
nullwhen the given entity isnull.
-
forUuid
public static <TEntity extends IUUIDEntity> UuidEntityRef forUuid(UUID uuid, Class<TEntity> entityClass) Deprecated.Creates a new entity reference with the given UUID and entity class.- Type Parameters:
TEntity- Type of the referenced entity.- Parameters:
uuid- UUID of the referenced entity.entityClass- Type of the referenced entity.- Returns:
- A new instance with the given UUID and class, or
nullwhen the given UUID or entity class isnull.
-