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

public class InspectionMethod extends VdmEntity<InspectionMethod>
Inspection Methods

Original entity name from the Odata EDM: A_InspectionMethodType

  • Field Details

    • ALL_FIELDS

      public static final InspectionMethodSelectable ALL_FIELDS
      Selector for all available fields of InspectionMethod.
    • INSPECTION_METHOD

      public static final InspectionMethodField<String> INSPECTION_METHOD
      Use with available fluent helpers to apply the InspectionMethod field to query operations.
    • INSPECTION_METHOD_VERSION

      public static final InspectionMethodField<String> INSPECTION_METHOD_VERSION
      Use with available fluent helpers to apply the InspectionMethodVersion field to query operations.
    • INSPECTION_METHOD_PLANT

      public static final InspectionMethodField<String> INSPECTION_METHOD_PLANT
      Use with available fluent helpers to apply the InspectionMethodPlant field to query operations.
    • INSPECTION_METHOD_VALID_FROM_DATE

      public static final InspectionMethodField<LocalDateTime> INSPECTION_METHOD_VALID_FROM_DATE
      Use with available fluent helpers to apply the InspectionMethodValidFromDate field to query operations.
    • INSPECTION_METHOD_SEARCH_FIELD

      public static final InspectionMethodField<String> INSPECTION_METHOD_SEARCH_FIELD
      Use with available fluent helpers to apply the InspectionMethodSearchField field to query operations.
    • INSPECTION_METHOD_STATUS

      public static final InspectionMethodField<String> INSPECTION_METHOD_STATUS
      Use with available fluent helpers to apply the InspectionMethodStatus field to query operations.
    • INSP_METH_INFORMATION_FIELD1

      public static final InspectionMethodField<String> INSP_METH_INFORMATION_FIELD1
      Use with available fluent helpers to apply the InspMethInformationField1 field to query operations.
    • INSP_METH_INFORMATION_FIELD2

      public static final InspectionMethodField<String> INSP_METH_INFORMATION_FIELD2
      Use with available fluent helpers to apply the InspMethInformationField2 field to query operations.
    • INSP_METH_INFORMATION_FIELD3

      public static final InspectionMethodField<String> INSP_METH_INFORMATION_FIELD3
      Use with available fluent helpers to apply the InspMethInformationField3 field to query operations.
    • QLTY_MSTR_DATA_AUTHORIZATION_GROUP

      public static final InspectionMethodField<String> QLTY_MSTR_DATA_AUTHORIZATION_GROUP
      Use with available fluent helpers to apply the QltyMstrDataAuthorizationGroup field to query operations.
    • INSPECTOR_QUALIFICATION

      public static final InspectionMethodField<String> INSPECTOR_QUALIFICATION
      Use with available fluent helpers to apply the InspectorQualification field to query operations.
    • CREATED_BY_USER

      public static final InspectionMethodField<String> CREATED_BY_USER
      Use with available fluent helpers to apply the CreatedByUser field to query operations.
    • CREATION_DATE

      public static final InspectionMethodField<LocalDateTime> CREATION_DATE
      Use with available fluent helpers to apply the CreationDate field to query operations.
    • LAST_CHANGED_BY_USER

      public static final InspectionMethodField<String> LAST_CHANGED_BY_USER
      Use with available fluent helpers to apply the LastChangedByUser field to query operations.
    • LAST_CHANGE_DATE

      public static final InspectionMethodField<LocalDateTime> LAST_CHANGE_DATE
      Use with available fluent helpers to apply the LastChangeDate field to query operations.
    • LINKED_SAP_OBJECT_KEY

      public static final InspectionMethodField<String> LINKED_SAP_OBJECT_KEY
      Use with available fluent helpers to apply the LinkedSAPObjectKey field to query operations.
    • TO_TEXT

      public static final InspectionMethodLink<InspectionMethodText> TO_TEXT
      Use with available fluent helpers to apply the to_Text navigation property to query operations.
  • Constructor Details

    • InspectionMethod

      public InspectionMethod()
    • InspectionMethod

      public InspectionMethod(@Nullable String inspectionMethod, @Nullable String inspectionMethodVersion, @Nullable String inspectionMethodPlant, @Nullable LocalDateTime inspectionMethodValidFromDate, @Nullable String inspectionMethodSearchField, @Nullable String inspectionMethodStatus, @Nullable String inspMethInformationField1, @Nullable String inspMethInformationField2, @Nullable String inspMethInformationField3, @Nullable String qltyMstrDataAuthorizationGroup, @Nullable String inspectorQualification, @Nullable String createdByUser, @Nullable LocalDateTime creationDate, @Nullable String lastChangedByUser, @Nullable LocalDateTime lastChangeDate, @Nullable String linkedSAPObjectKey, List<InspectionMethodText> toText)
  • Method Details

    • getType

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

      public void setInspectionMethod(@Nullable String inspectionMethod)
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: InspectionMethod

      Parameters:
      inspectionMethod - Inspection Method
    • setInspectionMethodVersion

      public void setInspectionMethodVersion(@Nullable String inspectionMethodVersion)
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: InspectionMethodVersion

      Parameters:
      inspectionMethodVersion - Version Number of Inspection Method
    • setInspectionMethodPlant

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

      Original property name from the Odata EDM: InspectionMethodPlant

      Parameters:
      inspectionMethodPlant - Plant for Inspection Method
    • setInspectionMethodValidFromDate

      public void setInspectionMethodValidFromDate(@Nullable LocalDateTime inspectionMethodValidFromDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: InspectionMethodValidFromDate

      Parameters:
      inspectionMethodValidFromDate - Valid-From Date
    • setInspectionMethodSearchField

      public void setInspectionMethodSearchField(@Nullable String inspectionMethodSearchField)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: InspectionMethodSearchField

      Parameters:
      inspectionMethodSearchField - Search Field
    • setInspectionMethodStatus

      public void setInspectionMethodStatus(@Nullable String inspectionMethodStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: InspectionMethodStatus

      Parameters:
      inspectionMethodStatus - Status of Master Record
    • setInspMethInformationField1

      public void setInspMethInformationField1(@Nullable String inspMethInformationField1)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: InspMethInformationField1

      Parameters:
      inspMethInformationField1 - Text Line for Additional Information
    • setInspMethInformationField2

      public void setInspMethInformationField2(@Nullable String inspMethInformationField2)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: InspMethInformationField2

      Parameters:
      inspMethInformationField2 - Text Line for Additional Information
    • setInspMethInformationField3

      public void setInspMethInformationField3(@Nullable String inspMethInformationField3)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: InspMethInformationField3

      Parameters:
      inspMethInformationField3 - Text Line for Additional Information
    • setQltyMstrDataAuthorizationGroup

      public void setQltyMstrDataAuthorizationGroup(@Nullable String qltyMstrDataAuthorizationGroup)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: QltyMstrDataAuthorizationGroup

      Parameters:
      qltyMstrDataAuthorizationGroup - Authorization Group QM Master Data
    • setInspectorQualification

      public void setInspectorQualification(@Nullable String inspectorQualification)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: InspectorQualification

      Parameters:
      inspectorQualification - Inspector Qualification
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Name of User Who Created the Data Record
    • setCreationDate

      public void setCreationDate(@Nullable LocalDateTime creationDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDate

      Parameters:
      creationDate - System Date on Which Data Record Was Created
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Name of User Who Last Changed Data Record
    • setLastChangeDate

      public void setLastChangeDate(@Nullable LocalDateTime lastChangeDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: LastChangeDate

      Parameters:
      lastChangeDate - System Date on Which Data Record Was Changed
    • setLinkedSAPObjectKey

      public void setLinkedSAPObjectKey(@Nullable String linkedSAPObjectKey)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: LinkedSAPObjectKey

      Parameters:
      linkedSAPObjectKey - The linkedSAPObjectKey to set.
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> InspectionMethodField<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> InspectionMethodField<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<InspectionMethod>
    • setServicePathForFetch

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<InspectionMethod>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<InspectionMethod>
    • fetchText

      @Nonnull public List<InspectionMethodText> fetchText()
      Fetches the InspectionMethodText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_Text.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated InspectionMethodText entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getTextOrFetch

      @Nonnull public List<InspectionMethodText> getTextOrFetch()
      Retrieval of associated InspectionMethodText entities (one to many). This corresponds to the OData navigation property to_Text.

      If the navigation property to_Text of a queried InspectionMethod is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Returns:
      List of associated InspectionMethodText entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getTextIfPresent

      @Nonnull public io.vavr.control.Option<List<InspectionMethodText>> getTextIfPresent()
      Retrieval of associated InspectionMethodText entities (one to many). This corresponds to the OData navigation property to_Text.

      If the navigation property for an entity InspectionMethod has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property to_Text is already loaded, the result will contain the InspectionMethodText entities. If not, an Option with result state empty is returned.
    • setText

      public void setText(@Nonnull List<InspectionMethodText> value)
      Overwrites the list of associated InspectionMethodText entities for the loaded navigation property to_Text.

      If the navigation property to_Text of a queried InspectionMethod is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of InspectionMethodText entities.
    • addText

      public void addText(InspectionMethodText... entity)
      Adds elements to the list of associated InspectionMethodText entities. This corresponds to the OData navigation property to_Text.

      If the navigation property to_Text of a queried InspectionMethod is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of InspectionMethodText entities.
    • builder

      @Nonnull public static InspectionMethod.InspectionMethodBuilder builder()
    • getInspectionMethod

      @Nullable public String getInspectionMethod()
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: InspectionMethod

      Returns:
      Inspection Method
    • getInspectionMethodVersion

      @Nullable public String getInspectionMethodVersion()
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: InspectionMethodVersion

      Returns:
      Version Number of Inspection Method
    • getInspectionMethodPlant

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

      Original property name from the Odata EDM: InspectionMethodPlant

      Returns:
      Plant for Inspection Method
    • getInspectionMethodValidFromDate

      @Nullable public LocalDateTime getInspectionMethodValidFromDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: InspectionMethodValidFromDate

      Returns:
      Valid-From Date
    • getInspectionMethodSearchField

      @Nullable public String getInspectionMethodSearchField()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: InspectionMethodSearchField

      Returns:
      Search Field
    • getInspectionMethodStatus

      @Nullable public String getInspectionMethodStatus()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: InspectionMethodStatus

      Returns:
      Status of Master Record
    • getInspMethInformationField1

      @Nullable public String getInspMethInformationField1()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: InspMethInformationField1

      Returns:
      Text Line for Additional Information
    • getInspMethInformationField2

      @Nullable public String getInspMethInformationField2()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: InspMethInformationField2

      Returns:
      Text Line for Additional Information
    • getInspMethInformationField3

      @Nullable public String getInspMethInformationField3()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: InspMethInformationField3

      Returns:
      Text Line for Additional Information
    • getQltyMstrDataAuthorizationGroup

      @Nullable public String getQltyMstrDataAuthorizationGroup()
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: QltyMstrDataAuthorizationGroup

      Returns:
      Authorization Group QM Master Data
    • getInspectorQualification

      @Nullable public String getInspectorQualification()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: InspectorQualification

      Returns:
      Inspector Qualification
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Name of User Who Created the Data Record
    • getCreationDate

      @Nullable public LocalDateTime getCreationDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDate

      Returns:
      System Date on Which Data Record Was Created
    • getLastChangedByUser

      @Nullable public String getLastChangedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Name of User Who Last Changed Data Record
    • getLastChangeDate

      @Nullable public LocalDateTime getLastChangeDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: LastChangeDate

      Returns:
      System Date on Which Data Record Was Changed
    • getLinkedSAPObjectKey

      @Nullable public String getLinkedSAPObjectKey()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: LinkedSAPObjectKey

      Returns:
      The linkedSAPObjectKey contained in this entity.
    • toString

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

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

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

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