Package de.xima.fc.workflow
Class UuidEntityRef
- java.lang.Object
-
- de.xima.fc.workflow.UuidEntityRef
-
- All Implemented Interfaces:
IEntityReference,IObjectReference,Serializable
@Deprecated public final class UuidEntityRef extends Object implements IEntityReference
Deprecated.UseIObjectReference, which is more flexible and not limited to UUID andClasstypes.Models a reference to another entity via the UUID of that entity. Supports JSON serialization and deserialization. All fields of this class should not benull, to indicate a missing reference usenullinstead of an instance of this class.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UuidEntityRef()Deprecated.For JSON serialization / deserialization only.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)Deprecated.static <TEntity extends IUUIDEntity>
UuidEntityRefforEntity(TEntity entity)Deprecated.Creates a new entity reference for the given UUID entity.static <TEntity extends IUUIDEntity>
UuidEntityRefforUuid(UUID uuid, Class<TEntity> entityClass)Deprecated.Creates a new entity reference with the given UUID and entity class.Class<? extends IUUIDEntity>getEntityClass()Deprecated.Gets the class of the referenced type of entities.UUIDgetUuid()Deprecated.Gets the UUID of the referenced entity, i.e. the value ofIUUIDEntity.getUUIDObject().inthashCode()Deprecated.voidsetEntityClass(Class<? extends IUUIDEntity> entityClass)Deprecated.voidsetUuid(UUID uuid)Deprecated.StringtoString()Deprecated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.xima.fc.interfaces.workflow.reference.IEntityReference
getId, getType
-
Methods inherited from interface de.xima.fc.interfaces.workflow.reference.IObjectReference
getId, getTypeKnown
-
-
-
-
Method Detail
-
getEntityClass
public Class<? extends IUUIDEntity> 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
public UUID 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.
-
setEntityClass
public void setEntityClass(Class<? extends IUUIDEntity> entityClass)
Deprecated.- Parameters:
entityClass- Type of the referenced class.
-
setUuid
public void setUuid(UUID uuid)
Deprecated.- Parameters:
uuid- Type of the referenced class.
-
forEntity
public static <TEntity extends IUUIDEntity> UuidEntityRef forEntity(TEntity entity)
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.
-
-