Interface IMendixIdentifier
-
public interface IMendixIdentifier
Represents a Mendix identifier, holding information for uniquely identifiying a Mendix object instance.It holds the following information:
- object type
- datastore code
- object id
>Based on this information the Mendix identifier can generate a globally unique identifier (GUID), which is globally unique within the whole run-time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
clone()
Returns a deep clone of this identifier.short
getEntityId()
The numeric value of the entity.IMendixObject
getObject()
Returns the Mendix object that corresponds to this identifier or null if none is set.java.lang.String
getObjectType()
A string representation of the entity type.void
setObject(IMendixObject object)
Sets the Mendix object that corresponds to this identifier.long
toLong()
The numeric value of the Mendix identfier.
-
-
-
Method Detail
-
getObjectType
java.lang.String getObjectType()
A string representation of the entity type.- Returns:
- the entity name
-
toLong
long toLong()
The numeric value of the Mendix identfier.- Returns:
- the numeric value
-
getEntityId
short getEntityId()
The numeric value of the entity.- Returns:
- the entity identifier
-
getObject
IMendixObject getObject()
Returns the Mendix object that corresponds to this identifier or null if none is set. Use at your own risk, the actual object will most likely not be set.- Returns:
- the Mendix object if it set, null otherwise
-
setObject
void setObject(IMendixObject object)
Sets the Mendix object that corresponds to this identifier.- Parameters:
object
- the object to set
-
clone
java.lang.Object clone() throws java.lang.CloneNotSupportedException
Returns a deep clone of this identifier. It will copy all data and share nothing with the original identifier.- Returns:
- the deep clone
- Throws:
java.lang.CloneNotSupportedException
-
-