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

    Modifier and Type
    Method
    Description
    Returns a deep clone of this identifier.
    short
    The numeric value of the entity.
    Returns the Mendix object that corresponds to this identifier or null if none is set.
    A string representation of the entity type.
    void
    Sets the Mendix object that corresponds to this identifier.
    long
    The numeric value of the Mendix identfier.
  • Method Details

    • getObjectType

      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

      Returns a deep clone of this identifier. It will copy all data and share nothing with the original identifier.
      Returns:
      the deep clone
      Throws:
      CloneNotSupportedException