Class PersistedObjEventType


  • public final class PersistedObjEventType
    extends EventType
    This class represents an event type for an object was persisted.
    • Constructor Detail

      • PersistedObjEventType

        public PersistedObjEventType()
        Constructor used for deserialization.
      • PersistedObjEventType

        public PersistedObjEventType​(String newnamespace,
                                     String newclassName)
        Constructor
        Parameters:
        newnamespace - Namespace of class
        newclassName - Class name of class
      • PersistedObjEventType

        public PersistedObjEventType​(MetaClassID newclassID)
        Constructor
        Parameters:
        newclassID - Class ID of condition.
      • PersistedObjEventType

        public PersistedObjEventType​(Class<?> stubClazz)
        Constructor
        Parameters:
        stubClazz - Stub of class being used. If it is a class being registered, only the name will be set.
    • Method Detail

      • init

        public void init​(AccountID accountID,
                         PasswordCredential credential,
                         String newnamespace,
                         LogicModuleAPI lm)
        Description copied from class: EventType
        Initialize (if needed) IDs from specifications (example: className -> class ID)
        Specified by:
        init in class EventType
        Parameters:
        accountID - ID of account registering the Event Type
        credential - Credentials of account registering the Event Type
        newnamespace - Namespace being used to register events. Used for registration of classes and ECAs at once.
        lm - Reference to LogicModule to seek for IDs and so on.
      • getClassID

        public MetaClassID getClassID()
        Get the PersistedObjExecCondition::classID
        Returns:
        the classID
      • setClassID

        public void setClassID​(MetaClassID newclassID)
        Set the PersistedObjExecCondition::classID
        Parameters:
        newclassID - the classID to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • checkIsEventType

        public boolean checkIsEventType​(EventMessage message)
        Description copied from class: EventType
        Checks if event received belongs to this event type.
        Specified by:
        checkIsEventType in class EventType
        Parameters:
        message - Event message
        Returns:
        TRUE if message belongs to this event type. FALSE otherwise.
      • getNamespace

        public String getNamespace()
        Returns:
        the namespace
      • setNamespace

        public void setNamespace​(String newnamespace)
        Parameters:
        newnamespace - the namespace to set
      • getClassName

        public String getClassName()
        Returns:
        the className
      • setClassName

        public void setClassName​(String newclassName)
        Parameters:
        newclassName - the className to set