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

public class SrvcOrdDuration extends VdmEntity<SrvcOrdDuration>
Service Order Duration

Original entity name from the Odata EDM: A_SrvcOrdDurationType

  • Field Details

    • ALL_FIELDS

      public static final SrvcOrdDurationSelectable ALL_FIELDS
      Selector for all available fields of SrvcOrdDuration.
    • SERVICE_ORDER

      public static final SrvcOrdDurationField<String> SERVICE_ORDER
      Use with available fluent helpers to apply the ServiceOrder field to query operations.
    • SRVC_DOC_DURATION_TYPE

      public static final SrvcOrdDurationField<String> SRVC_DOC_DURATION_TYPE
      Use with available fluent helpers to apply the SrvcDocDurationType field to query operations.
    • SRVC_DOC_DURATION_VALUE

      public static final SrvcOrdDurationField<BigDecimal> SRVC_DOC_DURATION_VALUE
      Use with available fluent helpers to apply the SrvcDocDurationValue field to query operations.
    • SRVC_DOC_DURATION_UNIT

      public static final SrvcOrdDurationField<String> SRVC_DOC_DURATION_UNIT
      Use with available fluent helpers to apply the SrvcDocDurationUnit field to query operations.
  • Constructor Details

    • SrvcOrdDuration

      public SrvcOrdDuration()
    • SrvcOrdDuration

      public SrvcOrdDuration(@Nullable String serviceOrder, @Nullable String srvcDocDurationType, @Nullable BigDecimal srvcDocDurationValue, @Nullable String srvcDocDurationUnit)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ServiceOrder

      Parameters:
      serviceOrder - Transaction ID
    • setSrvcDocDurationType

      public void setSrvcDocDurationType(@Nullable String srvcDocDurationType)
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: SrvcDocDurationType

      Parameters:
      srvcDocDurationType - Name for Type of Time Duration
    • setSrvcDocDurationValue

      public void setSrvcDocDurationValue(@Nullable BigDecimal srvcDocDurationValue)
      Constraints: Not nullable, Precision: 13, Scale: 0

      Original property name from the Odata EDM: SrvcDocDurationValue

      Parameters:
      srvcDocDurationValue - Numerical Value of Duration
    • setSrvcDocDurationUnit

      public void setSrvcDocDurationUnit(@Nullable String srvcDocDurationUnit)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: SrvcDocDurationUnit

      Parameters:
      srvcDocDurationUnit - Default Value for Time Unit
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SrvcOrdDurationField<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> SrvcOrdDurationField<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<SrvcOrdDuration>
    • setServicePathForFetch

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

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

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

      @Nonnull public static SrvcOrdDuration.SrvcOrdDurationBuilder builder()
    • getServiceOrder

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

      Original property name from the Odata EDM: ServiceOrder

      Returns:
      Transaction ID
    • getSrvcDocDurationType

      @Nullable public String getSrvcDocDurationType()
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: SrvcDocDurationType

      Returns:
      Name for Type of Time Duration
    • getSrvcDocDurationValue

      @Nullable public BigDecimal getSrvcDocDurationValue()
      Constraints: Not nullable, Precision: 13, Scale: 0

      Original property name from the Odata EDM: SrvcDocDurationValue

      Returns:
      Numerical Value of Duration
    • getSrvcDocDurationUnit

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

      Original property name from the Odata EDM: SrvcDocDurationUnit

      Returns:
      Default Value for Time Unit
    • toString

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

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

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

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