Class ResourceReference

  • All Implemented Interfaces:
    Serializable

    @Entity
    public class ResourceReference
    extends Object
    implements Serializable
    Model class for a resource reference. This maps a unique string resourceID to a unique integer to minimize costs of storing repeated resourceID strings in the database.
    Version:
    $Id: $
    Author:
    DJ Gregor
    See Also:
    OnmsResource.getId(), Serialized Form
    • Constructor Detail

      • ResourceReference

        public ResourceReference()

        Constructor for ResourceReference.

    • Method Detail

      • getId

        public Integer getId()
        Unique identifier for resource reference.
        Returns:
        a Integer object.
      • setId

        public void setId​(Integer id)

        setId

        Parameters:
        id - a Integer object.
      • getResourceId

        public String getResourceId()

        getResourceId

        Returns:
        a String object.
      • setResourceId

        public void setResourceId​(String resourceId)

        setResourceId

        Parameters:
        resourceId - a String object.