public class ProductSales extends VdmEntity<ProductSales>
Original entity name from the Odata EDM: A_ProductSalesType
Modifier and Type | Class and Description |
---|---|
static class |
ProductSales.ProductSalesBuilder |
Modifier and Type | Field and Description |
---|---|
static ProductSalesSelectable |
ALL_FIELDS
Selector for all available fields of ProductSales.
|
static ProductSalesField<String> |
PRODUCT
Use with available fluent helpers to apply the Product field to query operations.
|
static ProductSalesField<String> |
SALES_STATUS
Use with available fluent helpers to apply the SalesStatus field to query operations.
|
static ProductSalesField<LocalDateTime> |
SALES_STATUS_VALIDITY_DATE
Use with available fluent helpers to apply the SalesStatusValidityDate field to query operations.
|
static ProductSalesField<String> |
TAX_CLASSIFICATION
Use with available fluent helpers to apply the TaxClassification field to query operations.
|
static ProductSalesField<String> |
TRANSPORTATION_GROUP
Use with available fluent helpers to apply the TransportationGroup field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
ProductSales() |
ProductSales(String product,
String salesStatus,
LocalDateTime salesStatusValidityDate,
String taxClassification,
String transportationGroup) |
Modifier and Type | Method and Description |
---|---|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static ProductSales.ProductSalesBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static <T> ProductSalesField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
protected String |
getDefaultServicePath()
Used by fluent helpers and navigation property methods to construct OData queries.
|
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection()
Used by fluent helpers and navigation property methods to construct OData queries.
|
protected Map<String,Object> |
getKey() |
String |
getProduct()
(Key Field) Constraints: Not nullable, Maximum length: 40
|
String |
getSalesStatus()
Constraints: Not nullable, Maximum length: 2
|
LocalDateTime |
getSalesStatusValidityDate()
Constraints: Not nullable, Precision: 0
|
String |
getTaxClassification()
Constraints: Not nullable, Maximum length: 1
|
String |
getTransportationGroup()
Constraints: Not nullable, Maximum length: 4
|
Class<ProductSales> |
getType() |
int |
hashCode() |
void |
setProduct(String product)
(Key Field) Constraints: Not nullable, Maximum length: 40
|
void |
setSalesStatus(String salesStatus)
Constraints: Not nullable, Maximum length: 2
|
void |
setSalesStatusValidityDate(LocalDateTime salesStatusValidityDate)
Constraints: Not nullable, Precision: 0
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setTaxClassification(String taxClassification)
Constraints: Not nullable, Maximum length: 1
|
void |
setTransportationGroup(String transportationGroup)
Constraints: Not nullable, Maximum length: 4
|
protected Map<String,Object> |
toMapOfFields() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfNavigationProperties
public static final ProductSalesSelectable ALL_FIELDS
public static final ProductSalesField<String> PRODUCT
public static final ProductSalesField<String> SALES_STATUS
public static final ProductSalesField<LocalDateTime> SALES_STATUS_VALIDITY_DATE
public static final ProductSalesField<String> TAX_CLASSIFICATION
public static final ProductSalesField<String> TRANSPORTATION_GROUP
@Nonnull public Class<ProductSales> getType()
getType
in class VdmObject<ProductSales>
public void setProduct(@Nullable String product)
Original property name from the Odata EDM: Product
product
- Alphanumeric key uniquely identifying the material.public void setSalesStatus(@Nullable String salesStatus)
Original property name from the Odata EDM: SalesStatus
The cross-distribution-chain material status restricts the usability of the material for all the distribution chains, that is, it defines whether a warning or error message is displayed if you include the material in a particular function.The material may be a part under development or one to be discontinued.
salesStatus
- Indicates whether the material may be used in individual functions in Sales and Distribution for all
distribution chains.public void setSalesStatusValidityDate(@Nullable LocalDateTime salesStatusValidityDate)
Original property name from the Odata EDM: SalesStatusValidityDate
salesStatusValidityDate
- Date from which the cross-distribution-chain material status is valid.public void setTaxClassification(@Nullable String taxClassification)
Original property name from the Odata EDM: TaxClassification
The value entered here serves as the default value for the tax classification of the tax categories to be taken into account (for example, for the tax category value-added tax in Germany).
taxClassification
- Key that identifies the tax classification of a material.public void setTransportationGroup(@Nullable String transportationGroup)
Original property name from the Odata EDM: TransportationGroup
Transportation groups are used for automatic route scheduling during sales order and delivery note processing.Suppose that you sell food products, some of which are perishable and require refrigeration. You create a transportation group that includes all the products that need refrigerated trucks for delivery.
transportationGroup
- A grouping of materials that share the same route and transportation requirements.protected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<ProductSales>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<ProductSales>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<ProductSales>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<ProductSales>
@Nonnull public static <T> ProductSalesField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
T
- The type of the extension field when performing value comparisons.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.@Nonnull public static <T,DomainT> ProductSalesField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<ProductSales>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<ProductSales>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
VdmEntity
Note: Use with caution, as this can easily break the fetch calls on this entity. See the interface of the corresponding service for the default service path.
attachToService
in class VdmEntity<ProductSales>
servicePath
- Optional parameter. New service path to apply to this entity and any associated entities that were
previously fetched. If a null value is provided and the service path has never been set, then the
service path will be set to the default defined in the corresponding service interface.destination
- New destination to apply to this entity and any associated entities that were previously fetched.protected String getDefaultServicePath()
VdmEntity
getDefaultServicePath
in class VdmEntity<ProductSales>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull public static ProductSales.ProductSalesBuilder builder()
@Nullable public String getProduct()
Original property name from the Odata EDM: Product
@Nullable public String getSalesStatus()
Original property name from the Odata EDM: SalesStatus
The cross-distribution-chain material status restricts the usability of the material for all the distribution chains, that is, it defines whether a warning or error message is displayed if you include the material in a particular function.The material may be a part under development or one to be discontinued.
@Nullable public LocalDateTime getSalesStatusValidityDate()
Original property name from the Odata EDM: SalesStatusValidityDate
@Nullable public String getTaxClassification()
Original property name from the Odata EDM: TaxClassification
The value entered here serves as the default value for the tax classification of the tax categories to be taken into account (for example, for the tax category value-added tax in Germany).
@Nullable public String getTransportationGroup()
Original property name from the Odata EDM: TransportationGroup
Transportation groups are used for automatic route scheduling during sales order and delivery note processing.Suppose that you sell food products, some of which are perishable and require refrigeration. You create a transportation group that includes all the products that need refrigerated trucks for delivery.
@Nonnull public String toString()
toString
in class VdmObject<ProductSales>
public boolean equals(@Nullable Object o)
equals
in class VdmObject<ProductSales>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmObject<ProductSales>
public int hashCode()
hashCode
in class VdmObject<ProductSales>
Copyright © 2021 SAP SE. All rights reserved.