Class ResourceReference

  • All Implemented Interfaces:
    java.io.Serializable

    @Entity
    public class ResourceReference
    extends java.lang.Object
    implements java.io.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 Summary

      Constructors 
      Constructor Description
      ResourceReference()
      Constructor for ResourceReference.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getId()
      Unique identifier for resource reference.
      java.lang.String getResourceId()
      getResourceId
      void setId​(java.lang.Integer id)
      setId
      void setResourceId​(java.lang.String resourceId)
      setResourceId
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceReference

        public ResourceReference()

        Constructor for ResourceReference.

    • Method Detail

      • getId

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

        public void setId​(java.lang.Integer id)

        setId

        Parameters:
        id - a Integer object.
      • getResourceId

        public java.lang.String getResourceId()

        getResourceId

        Returns:
        a String object.
      • setResourceId

        public void setResourceId​(java.lang.String resourceId)

        setResourceId

        Parameters:
        resourceId - a String object.