Interface PlaceholderValue

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    PlaceholderValue.AbstractPlaceholderValue, PlaceholderValue.PlaceholderCharSequence, PlaceholderValue.PlaceholderUdtValue

    public interface PlaceholderValue
    extends Serializable
    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 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!

    • Field Detail

      • UDT_VALUE_PLACEHOLDER

        static final UDTValue UDT_VALUE_PLACEHOLDER
        The singleton representing an UDTValue that is not transferred since it is too big. The actual value has to be retrieved lazily from the server.
    • Method Detail

      • 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.