Class ModelReference

java.lang.Object
com.onenetwork.platform.common.ModelId
com.onenetwork.platform.common.ModelReference

public class ModelReference
extends ModelId
Utility class to hold a surrogate id and ModelLevelType (i.e. a ModelId) along with a model display value (which is most typically the 0th Natural Key component of the model).
  • Constructor Summary

    Constructors 
    Constructor Description
    ModelReference​(java.lang.Long id, com.onenetwork.platform.data.model.impl.ModelLevelType modelLevelType)  
    ModelReference​(java.lang.Long id, com.onenetwork.platform.data.model.impl.ModelLevelType modelLevelType, java.lang.String displayValue)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getDisplayValue()  
    void setDisplayValue​(java.lang.String displayValue)  

    Methods inherited from class com.onenetwork.platform.common.ModelId

    equals, getId, getModelLevelType, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ModelReference

      public ModelReference​(java.lang.Long id, com.onenetwork.platform.data.model.impl.ModelLevelType modelLevelType)
      Parameters:
      id - model's surrogate id
      modelLevelType - model's level type
    • ModelReference

      public ModelReference​(java.lang.Long id, com.onenetwork.platform.data.model.impl.ModelLevelType modelLevelType, java.lang.String displayValue)
      Parameters:
      id - model's surrogate id
      modelLevelType - model's level type
      displayValue - human-readable string identifying the model (but not necessarily uniquely identifying it)
  • Method Details

    • getDisplayValue

      public java.lang.String getDisplayValue()
      Returns:
      human-readable string identifying the model (but not necessarily uniquely identifying it)
    • setDisplayValue

      public void setDisplayValue​(java.lang.String displayValue)
      Parameters:
      displayValue - human-readable string identifying the model (but not necessarily uniquely identifying it)