Interface PlaceholderValue
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
PlaceholderValue.AbstractPlaceholderValue,PlaceholderValue.PlaceholderCharSequence,PlaceholderValue.PlaceholderUdtValue
This interface represents placeholder for data values. For instance, if a value exceeds a size
limit, it may be replaced by such a placeholder and the actual value can be retrieved on demand.
The logic needs to be an interface to support proxies wrapping values, for instance
Only the predefined singleton instances of the placeholders must be used. Each one has a corresponding data type. When comparing use
de.aristaflow.adept2.model.common.defaultimplementation#CloseIgnoringWrapper. Only the predefined singleton instances of the placeholders must be used. Each one has a corresponding data type. When comparing use
#equals(Object)
on the corresponding singleton instance, for instance
UDT_VALUE_PLACEHOLDER.equals(...)! Do not compare with ==
since this does not work with proxies!
This interface must not be extended and not be implemented outside of this file!
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAbstract class providing the basic methods for aPlaceholderValue, for instancePlaceholderValue.AbstractPlaceholderValue.equals(Object)andPlaceholderValue.AbstractPlaceholderValue.hashCode().static final classThis class implements thePlaceholderValuefor a value ofProcessConstants.AdeptDataType.STRING.static final classThis class implements thePlaceholderValuefor a value ofProcessConstants.AdeptDataType.USERDEFINEDtype. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SerializableA placeholder for aProcessConstants.AdeptDataType.STRINGvalue to be requested on demand.static final StringThe user-defined type name used for a placeholderUDTValue.static final UDTValueThe singleton representing anUDTValuethat is not transferred since it is too big. -
Method Summary
Modifier and TypeMethodDescriptionGets the data type this instance is a placeholder value for.
-
Field Details
-
STRING_VALUE_PLACEHOLDER
A placeholder for aProcessConstants.AdeptDataType.STRINGvalue to be requested on demand. -
UDT_NAME
The user-defined type name used for a placeholderUDTValue.- See Also:
-
UDT_VALUE_PLACEHOLDER
The singleton representing anUDTValuethat is not transferred since it is too big. The actual value has to be retrieved lazily from the server.
-
-
Method Details
-
getDataType
ProcessConstants.AdeptDataType getDataType()Gets the data type this instance is a placeholder value for. This method is used for#equals(Object)since methods can be called on proxies.- Returns:
- The data type this instance is a placeholder value for.
-