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 Deprecated Methods Modifier and Type Method Description java.lang.Object
clone()
Deprecated.since 9.4.0short
getEntityId()
Deprecated.since 9.24.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)
Deprecated.since 9.23.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
@Deprecated short getEntityId()
Deprecated.since 9.24. This method was exposed for internal purposes. There is no replacement.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
@Deprecated void setObject(IMendixObject object)
Deprecated.since 9.23. This method was exposed for internal purposes. There is no replacement.Sets the Mendix object that corresponds to this identifier.- Parameters:
object
- the object to set
-
clone
@Deprecated java.lang.Object clone() throws java.lang.CloneNotSupportedException
Deprecated.since 9.4.0Returns 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
-
-