Package com.storedobject.core
Interface SingleInstanceDetail
-
Method Summary
Modifier and TypeMethodDescriptiondefault ObjectBy overriding this method, a fixed value is returned as the unique value so that only one instance can exist for a specific master instance.Methods inherited from interface com.storedobject.core.Detail
copyValuesFrom, getId, getUniqueId, isDetailOf
-
Method Details
-
getUniqueValue
By overriding this method, a fixed value is returned as the unique value so that only one instance can exist for a specific master instance.Note: This is the mechanism used for ensuring single instance. If this method is overridden, single instance is not guaranteed.
- Specified by:
getUniqueValuein interfaceDetail- Returns:
- Returns an empty string as the fixed value to enforce uniqueness.
-