Class SapClient

All Implemented Interfaces:
ErpType<SapClient>, StringRepresentableKey, Serializable, Comparable<SapClient>

@Deprecated public class SapClient extends StringBasedErpType<SapClient>
Deprecated.
This module will be discontinued, along with its classes and methods.
Representation of a SAP client (MANDT).
See Also:
  • Field Details

    • DEFAULT

      public static final SapClient DEFAULT
      Deprecated.
      Placeholder to indicate that the default SapClient should be used when connecting to the ERP.

      Note: This value does not contain the actual value of the ERP's SapClient, it just logically represents the unknown default value that the respective ERP uses.

    • EMPTY

      public static final SapClient EMPTY
      Deprecated.
      Represents a SapClient with an empty value. How this is value is interpreted depends on the respective business scenario.

      Important: While this value currently corresponds to DEFAULT, this equivalence must not be taken for granted and may change in the future.

  • Constructor Details

  • Method Details

    • of

      @Nullable public static SapClient of(@Nullable String value) throws IllegalArgumentException
      Deprecated.
      Creates a new SapClient based on the given String value.
      Parameters:
      value - The String value the SapClient should represent.
      Returns:
      A newly created SapClient, or null, if value is null.
      Throws:
      IllegalArgumentException - If the length of value is longer than the length specified by getMaxLength().
    • getTypeConverter

      @Nonnull public ErpTypeConverter<SapClient> getTypeConverter()
      Deprecated.
      Description copied from interface: ErpType
      Get the type converter for the ERP type.
      Returns:
      The type converter.
    • getType

      @Nonnull public Class<SapClient> getType()
      Deprecated.
      Description copied from class: StringBasedErpType
      Returns the class of the string-based ERP type.
      Specified by:
      getType in class StringBasedErpType<SapClient>
      Returns:
      The class of the string-based ERP type.
    • getMaxLength

      public int getMaxLength()
      Deprecated.
      Description copied from class: StringBasedErpType
      Returns the maximum length of the string-based ERP type.
      Specified by:
      getMaxLength in class StringBasedErpType<SapClient>
      Returns:
      The maximum length of the string-based ERP type.
    • getFillCharStrategy

      @Nonnull public StringBasedErpType.FillCharStrategy getFillCharStrategy()
      Deprecated.
      Description copied from class: StringBasedErpType
      Returns the strategy of how the type should handle fill characters.
      Specified by:
      getFillCharStrategy in class StringBasedErpType<SapClient>
      Returns:
      The strategy of how the type should handle fill characters.
    • toSapClients

      @Nonnull public static Set<SapClient> toSapClients(@Nonnull Collection<String> values)
      Deprecated.
      Transforms the given collection of Strings representing SapClients to a set of SapClients via the SapClientConverter.
      Parameters:
      values - The collection of strings to convert.
      Returns:
      The set of SapClients.
    • toStrings

      @Nonnull public static Set<String> toStrings(@Nonnull Collection<SapClient> values)
      Deprecated.
      Transforms the given collection of SapClients to a set of Strings representing those SapClients via the SapClientConverter.
      Parameters:
      values - The collection of SapClients to convert.
      Returns:
      The set of Strings.
    • equals

      public boolean equals(@Nullable Object o)
      Deprecated.
      Overrides:
      equals in class StringBasedErpType<SapClient>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Deprecated.
      Overrides:
      canEqual in class StringBasedErpType<SapClient>
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class StringBasedErpType<SapClient>