Class EntityReference
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityReference
-
- All Implemented Interfaces:
ICodeHolder,IEntityInformationHolder,IEntityInformationHolderWithPermId,IIdAndCodeHolder,IIdHolder,IPermIdHolder,java.io.Serializable
public class EntityReference extends java.lang.Object implements java.io.Serializable, IEntityInformationHolderWithPermId
Reference to an entity with minimal information to uniquely identify it in the database and to choose the right plugin to handle it.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEntityReference()EntityReference(long id, java.lang.String code, java.lang.String typeCode, EntityKind kind, java.lang.String permIdOrNull)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCode()Returns the code.EntityKindgetEntityKind()Return the entity kind of this matching entity.BasicEntityTypegetEntityType()Returns the entity type of this matching entity.java.lang.LonggetId()Returns the technical ID of this instance.java.lang.StringgetPermId()java.lang.StringtoString()
-
-
-
Constructor Detail
-
EntityReference
protected EntityReference()
-
EntityReference
public EntityReference(long id, java.lang.String code, java.lang.String typeCode, EntityKind kind, java.lang.String permIdOrNull)
-
-
Method Detail
-
getEntityKind
public EntityKind getEntityKind()
Description copied from interface:IEntityInformationHolderReturn the entity kind of this matching entity.- Specified by:
getEntityKindin interfaceIEntityInformationHolder
-
getEntityType
public BasicEntityType getEntityType()
Description copied from interface:IEntityInformationHolderReturns the entity type of this matching entity.- Specified by:
getEntityTypein interfaceIEntityInformationHolder
-
getId
public java.lang.Long getId()
Description copied from interface:IIdHolderReturns the technical ID of this instance.
-
getCode
public java.lang.String getCode()
Description copied from interface:ICodeHolderReturns the code.- Specified by:
getCodein interfaceICodeHolder
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getPermId
public java.lang.String getPermId()
- Specified by:
getPermIdin interfaceIPermIdHolder
-
-