public class MatlStkInAcctMod extends VdmEntity<MatlStkInAcctMod>
Original entity name from the Odata EDM: A_MatlStkInAcctModType
Modifier and Type | Class and Description |
---|---|
static class |
MatlStkInAcctMod.MatlStkInAcctModBuilder |
Modifier and Type | Field and Description |
---|---|
static MatlStkInAcctModSelectable |
ALL_FIELDS
Selector for all available fields of MatlStkInAcctMod.
|
static MatlStkInAcctModField<String> |
BATCH
Use with available fluent helpers to apply the Batch field to query operations.
|
static MatlStkInAcctModField<String> |
CUSTOMER
Use with available fluent helpers to apply the Customer field to query operations.
|
static MatlStkInAcctModField<String> |
INVENTORY_SPECIAL_STOCK_TYPE
Use with available fluent helpers to apply the InventorySpecialStockType field to query operations.
|
static MatlStkInAcctModField<String> |
INVENTORY_STOCK_TYPE
Use with available fluent helpers to apply the InventoryStockType field to query operations.
|
static MatlStkInAcctModField<String> |
MATERIAL
Use with available fluent helpers to apply the Material field to query operations.
|
static MatlStkInAcctModField<String> |
MATERIAL_BASE_UNIT
Use with available fluent helpers to apply the MaterialBaseUnit field to query operations.
|
static MatlStkInAcctModField<BigDecimal> |
MATL_WRHS_STK_QTY_IN_MATL_BASE_UNIT
Use with available fluent helpers to apply the MatlWrhsStkQtyInMatlBaseUnit field to query operations.
|
static MatlStkInAcctModField<String> |
PLANT
Use with available fluent helpers to apply the Plant field to query operations.
|
static MatlStkInAcctModField<String> |
SD_DOCUMENT
Use with available fluent helpers to apply the SDDocument field to query operations.
|
static MatlStkInAcctModField<String> |
SD_DOCUMENT_ITEM
Use with available fluent helpers to apply the SDDocumentItem field to query operations.
|
static MatlStkInAcctModField<String> |
STORAGE_LOCATION
Use with available fluent helpers to apply the StorageLocation field to query operations.
|
static MatlStkInAcctModField<String> |
SUPPLIER
Use with available fluent helpers to apply the Supplier field to query operations.
|
static MatlStkInAcctModOneToOneLink<MaterialStock> |
TO_MATERIAL_STOCK
Use with available fluent helpers to apply the to_MaterialStock navigation property to query operations.
|
static MatlStkInAcctModField<String> |
WBS_ELEMENT_INTERNAL_ID
Use with available fluent helpers to apply the WBSElementInternalID field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
MatlStkInAcctMod() |
MatlStkInAcctMod(String material,
String inventorySpecialStockType,
String inventoryStockType,
String materialBaseUnit,
BigDecimal matlWrhsStkQtyInMatlBaseUnit,
String plant,
String storageLocation,
String batch,
String supplier,
String customer,
String wBSElementInternalID,
String sDDocument,
String sDDocumentItem,
ErpConfigContext erpConfigContext,
MaterialStock toMaterialStock) |
Modifier and Type | Method and Description |
---|---|
static MatlStkInAcctMod.MatlStkInAcctModBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
MaterialStock |
fetchMaterialStock()
Fetches the MaterialStock entity (one to one) associated with this entity.
|
static <T> MatlStkInAcctModField<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) |
String |
getBatch()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getCustomer()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
protected String |
getEntityCollection() |
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
String |
getInventorySpecialStockType()
(Key Field) Constraints: Not nullable, Maximum length: 1
|
String |
getInventoryStockType()
(Key Field) Constraints: Not nullable, Maximum length: 2
|
protected Map<String,Object> |
getKey() |
String |
getMaterial()
(Key Field) Constraints: Not nullable, Maximum length: 40
|
String |
getMaterialBaseUnit()
Constraints: Not nullable, Maximum length: 3
|
Optional<MaterialStock> |
getMaterialStockIfPresent()
Retrieval of associated MaterialStock entity (one to one).
|
MaterialStock |
getMaterialStockOrFetch()
Retrieval of associated MaterialStock entity (one to one).
|
BigDecimal |
getMatlWrhsStkQtyInMatlBaseUnit()
Constraints: Not nullable, Precision: 31, Scale: 14
|
String |
getPlant()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getSDDocument()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getSDDocumentItem()
(Key Field) Constraints: Not nullable, Maximum length: 6
|
String |
getStorageLocation()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getSupplier()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
Class<MatlStkInAcctMod> |
getType() |
String |
getWBSElementInternalID()
(Key Field) Constraints: Not nullable, Maximum length: 24
|
int |
hashCode() |
void |
setBatch(String batch)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setCustomer(String customer)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
void |
setInventorySpecialStockType(String inventorySpecialStockType)
(Key Field) Constraints: Not nullable, Maximum length: 1
|
void |
setInventoryStockType(String inventoryStockType)
(Key Field) Constraints: Not nullable, Maximum length: 2
|
void |
setMaterial(String material)
(Key Field) Constraints: Not nullable, Maximum length: 40
|
void |
setMaterialBaseUnit(String materialBaseUnit)
Constraints: Not nullable, Maximum length: 3
|
void |
setMaterialStock(MaterialStock value)
Overwrites the associated MaterialStock entity for the loaded navigation property to_MaterialStock.
|
void |
setMatlWrhsStkQtyInMatlBaseUnit(BigDecimal matlWrhsStkQtyInMatlBaseUnit)
Constraints: Not nullable, Precision: 31, Scale: 14
|
void |
setPlant(String plant)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setSDDocument(String sDDocument)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setSDDocumentItem(String sDDocumentItem)
(Key Field) Constraints: Not nullable, Maximum length: 6
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setStorageLocation(String storageLocation)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setSupplier(String supplier)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setWBSElementInternalID(String wBSElementInternalID)
(Key Field) Constraints: Not nullable, Maximum length: 24
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getEndpointUrl, getServicePathForFetch, getVersionIdentifier, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final MatlStkInAcctModSelectable ALL_FIELDS
public static final MatlStkInAcctModField<String> MATERIAL
public static final MatlStkInAcctModField<String> INVENTORY_SPECIAL_STOCK_TYPE
public static final MatlStkInAcctModField<String> INVENTORY_STOCK_TYPE
public static final MatlStkInAcctModField<String> MATERIAL_BASE_UNIT
public static final MatlStkInAcctModField<BigDecimal> MATL_WRHS_STK_QTY_IN_MATL_BASE_UNIT
public static final MatlStkInAcctModField<String> PLANT
public static final MatlStkInAcctModField<String> STORAGE_LOCATION
public static final MatlStkInAcctModField<String> BATCH
public static final MatlStkInAcctModField<String> SUPPLIER
public static final MatlStkInAcctModField<String> CUSTOMER
public static final MatlStkInAcctModField<String> WBS_ELEMENT_INTERNAL_ID
public static final MatlStkInAcctModField<String> SD_DOCUMENT
public static final MatlStkInAcctModField<String> SD_DOCUMENT_ITEM
public static final MatlStkInAcctModOneToOneLink<MaterialStock> TO_MATERIAL_STOCK
public MatlStkInAcctMod()
public MatlStkInAcctMod(@Nullable String material, @Nullable String inventorySpecialStockType, @Nullable String inventoryStockType, @Nullable String materialBaseUnit, @Nullable BigDecimal matlWrhsStkQtyInMatlBaseUnit, @Nullable String plant, @Nullable String storageLocation, @Nullable String batch, @Nullable String supplier, @Nullable String customer, @Nullable String wBSElementInternalID, @Nullable String sDDocument, @Nullable String sDDocumentItem, @Nullable ErpConfigContext erpConfigContext, @Nullable MaterialStock toMaterialStock)
@Nonnull public Class<MatlStkInAcctMod> getType()
getType
in class VdmObject<MatlStkInAcctMod>
public void setMaterial(@Nullable String material)
Original property name from the Odata EDM: Material
material
- Material in Respect of Which Stock is Managedpublic void setInventorySpecialStockType(@Nullable String inventorySpecialStockType)
Original property name from the Odata EDM: InventorySpecialStockType
inventorySpecialStockType
- Special Stock Indicatorpublic void setInventoryStockType(@Nullable String inventoryStockType)
Original property name from the Odata EDM: InventoryStockType
inventoryStockType
- Stock Type of Goods Movement (Stock Identifier)public void setMaterialBaseUnit(@Nullable String materialBaseUnit)
Original property name from the Odata EDM: MaterialBaseUnit
materialBaseUnit
- Base Unit of Measurepublic void setMatlWrhsStkQtyInMatlBaseUnit(@Nullable BigDecimal matlWrhsStkQtyInMatlBaseUnit)
Original property name from the Odata EDM: MatlWrhsStkQtyInMatlBaseUnit
matlWrhsStkQtyInMatlBaseUnit
- public void setPlant(@Nullable String plant)
Original property name from the Odata EDM: Plant
plant
- Plantpublic void setStorageLocation(@Nullable String storageLocation)
Original property name from the Odata EDM: StorageLocation
storageLocation
- Storage Locationpublic void setBatch(@Nullable String batch)
Original property name from the Odata EDM: Batch
batch
- Batch Number (Stock Identifier)public void setSupplier(@Nullable String supplier)
Original property name from the Odata EDM: Supplier
supplier
- Account Number of Supplier or Creditor (Stock Identifier)public void setCustomer(@Nullable String customer)
Original property name from the Odata EDM: Customer
customer
- Customer Number (Stock Identifier)public void setWBSElementInternalID(@Nullable String wBSElementInternalID)
Original property name from the Odata EDM: WBSElementInternalID
wBSElementInternalID
- Valuated Sales Order Stock WBS Elementpublic void setSDDocument(@Nullable String sDDocument)
Original property name from the Odata EDM: SDDocument
sDDocument
- Sales Order Number of Valuated Sales Order Stockpublic void setSDDocumentItem(@Nullable String sDDocumentItem)
Original property name from the Odata EDM: SDDocumentItem
sDDocumentItem
- Sales Order Item of Valuated Sales Order Stockprotected String getEntityCollection()
getEntityCollection
in class VdmEntity<MatlStkInAcctMod>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<MatlStkInAcctMod>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<MatlStkInAcctMod>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<MatlStkInAcctMod>
@Nonnull public static <T> MatlStkInAcctModField<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> MatlStkInAcctModField<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.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<MatlStkInAcctMod>
@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<MatlStkInAcctMod>
@Nullable public MaterialStock fetchMaterialStock() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
null
if an entity is not associated.com.sap.cloud.sdk.odatav2.connectivity.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.@Nullable public MaterialStock getMaterialStockOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_MaterialStock of a queried MatlStkInAcctMod 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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public Optional<MaterialStock> getMaterialStockIfPresent()
If the navigation property for an entity MatlStkInAcctMod has not been resolved yet, this method will
not query further information. Instead its Optional
result state will be empty
.
Optional
with result state
empty
is returned.public void setMaterialStock(MaterialStock value)
value
- New MaterialStock entity.public static MatlStkInAcctMod.MatlStkInAcctModBuilder builder()
@Nullable public String getMaterial()
Original property name from the Odata EDM: Material
@Nullable public String getInventorySpecialStockType()
Original property name from the Odata EDM: InventorySpecialStockType
@Nullable public String getInventoryStockType()
Original property name from the Odata EDM: InventoryStockType
@Nullable public String getMaterialBaseUnit()
Original property name from the Odata EDM: MaterialBaseUnit
@Nullable public BigDecimal getMatlWrhsStkQtyInMatlBaseUnit()
Original property name from the Odata EDM: MatlWrhsStkQtyInMatlBaseUnit
@Nullable public String getPlant()
Original property name from the Odata EDM: Plant
@Nullable public String getStorageLocation()
Original property name from the Odata EDM: StorageLocation
@Nullable public String getBatch()
Original property name from the Odata EDM: Batch
@Nullable public String getSupplier()
Original property name from the Odata EDM: Supplier
@Nullable public String getCustomer()
Original property name from the Odata EDM: Customer
@Nullable public String getWBSElementInternalID()
Original property name from the Odata EDM: WBSElementInternalID
@Nullable public String getSDDocument()
Original property name from the Odata EDM: SDDocument
@Nullable public String getSDDocumentItem()
Original property name from the Odata EDM: SDDocumentItem
@Nullable public ErpConfigContext getErpConfigContext()
public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
setErpConfigContext
in class VdmEntity<MatlStkInAcctMod>
erpConfigContext
- public String toString()
toString
in class VdmObject<MatlStkInAcctMod>
public boolean equals(Object o)
equals
in class VdmObject<MatlStkInAcctMod>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<MatlStkInAcctMod>
public int hashCode()
hashCode
in class VdmObject<MatlStkInAcctMod>
Copyright © 2018 SAP SE. All rights reserved.