Package com.onenetwork.platform.common
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)
-
Constructor Details
-
ModelReference
public ModelReference(java.lang.Long id, com.onenetwork.platform.data.model.impl.ModelLevelType modelLevelType)- Parameters:
id
- model's surrogate idmodelLevelType
- 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 idmodelLevelType
- model's level typedisplayValue
- 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)
-