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

public class CntrlPurContrLegalTrans extends VdmEntity<CntrlPurContrLegalTrans>
Legal Transaction

Original entity name from the Odata EDM: A_CntrlPurContrLegalTransType

  • Field Details

    • ALL_FIELDS

      public static final CntrlPurContrLegalTransSelectable ALL_FIELDS
      Selector for all available fields of CntrlPurContrLegalTrans.
    • CENTRAL_PURCHASE_CONTRACT

      public static final CntrlPurContrLegalTransField<String> CENTRAL_PURCHASE_CONTRACT
      Use with available fluent helpers to apply the CentralPurchaseContract field to query operations.
  • Constructor Details

    • CntrlPurContrLegalTrans

      public CntrlPurContrLegalTrans()
    • CntrlPurContrLegalTrans

      public CntrlPurContrLegalTrans(@Nullable String centralPurchaseContract, @Nullable String legalTransaction, @Nullable String legalTransactionTitle)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: CentralPurchaseContract

      Parameters:
      centralPurchaseContract - Central Purchase Contract
    • setLegalTransaction

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

      Original property name from the Odata EDM: LegalTransaction

      Parameters:
      legalTransaction - Legal Transaction ID
    • setLegalTransactionTitle

      public void setLegalTransactionTitle(@Nullable String legalTransactionTitle)
      Constraints: Not nullable, Maximum length: 128

      Original property name from the Odata EDM: LegalTransactionTitle

      Parameters:
      legalTransactionTitle - Legal Transaction Name
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> CntrlPurContrLegalTransField<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> CntrlPurContrLegalTransField<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<CntrlPurContrLegalTrans>
    • setServicePathForFetch

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

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

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

    • getCentralPurchaseContract

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

      Original property name from the Odata EDM: CentralPurchaseContract

      Returns:
      Central Purchase Contract
    • getLegalTransaction

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

      Original property name from the Odata EDM: LegalTransaction

      Returns:
      Legal Transaction ID
    • getLegalTransactionTitle

      @Nullable public String getLegalTransactionTitle()
      Constraints: Not nullable, Maximum length: 128

      Original property name from the Odata EDM: LegalTransactionTitle

      Returns:
      Legal Transaction Name
    • toString

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

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

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

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