Class SerialNumberMaterialDocument

java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<SerialNumberMaterialDocument>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.materialdocument.SerialNumberMaterialDocument

public class SerialNumberMaterialDocument extends VdmEntity<SerialNumberMaterialDocument>
Serial Numbers

Original entity name from the Odata EDM: A_SerialNumberMaterialDocumentType

  • Field Details

  • Constructor Details

    • SerialNumberMaterialDocument

      public SerialNumberMaterialDocument()
    • SerialNumberMaterialDocument

      public SerialNumberMaterialDocument(@Nullable String material, @Nullable String serialNumber, @Nullable String materialDocument, @Nullable String materialDocumentItem, @Nullable String materialDocumentYear)
  • Method Details

    • getType

      @Nonnull public Class<SerialNumberMaterialDocument> getType()
      Specified by:
      getType in class VdmObject<SerialNumberMaterialDocument>
    • setMaterial

      public void setMaterial(@Nullable String material)
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Material

      Parameters:
      material - Material Number
    • setSerialNumber

      public void setSerialNumber(@Nullable String serialNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: SerialNumber

      Parameters:
      serialNumber - Serial Number
    • setMaterialDocument

      public void setMaterialDocument(@Nullable String materialDocument)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: MaterialDocument

      Parameters:
      materialDocument - Number of Material Document
    • setMaterialDocumentItem

      public void setMaterialDocumentItem(@Nullable String materialDocumentItem)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: MaterialDocumentItem

      Parameters:
      materialDocumentItem - Material Document Item
    • setMaterialDocumentYear

      public void setMaterialDocumentYear(@Nullable String materialDocumentYear)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: MaterialDocumentYear

      Parameters:
      materialDocumentYear - Material Document Year
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<SerialNumberMaterialDocument>
    • getKey

      @Nonnull protected Map<String,Object> getKey()
      Overrides:
      getKey in class VdmObject<SerialNumberMaterialDocument>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<SerialNumberMaterialDocument>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<SerialNumberMaterialDocument>
    • field

      @Nonnull public static <T> SerialNumberMaterialDocumentField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> SerialNumberMaterialDocumentField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<SerialNumberMaterialDocument>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<SerialNumberMaterialDocument>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<SerialNumberMaterialDocument>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<SerialNumberMaterialDocument>
    • builder

    • getMaterial

      @Nullable public String getMaterial()
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Material

      Returns:
      Material Number
    • getSerialNumber

      @Nullable public String getSerialNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: SerialNumber

      Returns:
      Serial Number
    • getMaterialDocument

      @Nullable public String getMaterialDocument()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: MaterialDocument

      Returns:
      Number of Material Document
    • getMaterialDocumentItem

      @Nullable public String getMaterialDocumentItem()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: MaterialDocumentItem

      Returns:
      Material Document Item
    • getMaterialDocumentYear

      @Nullable public String getMaterialDocumentYear()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: MaterialDocumentYear

      Returns:
      Material Document Year
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<SerialNumberMaterialDocument>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<SerialNumberMaterialDocument>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<SerialNumberMaterialDocument>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<SerialNumberMaterialDocument>