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 MatlStkInAcctModLink<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.
|
protected void |
fromMap(Map<String,Object> inputValues) |
String |
getBatch()
(Key Field) Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: Batch
|
String |
getCustomer()
(Key Field) Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: Customer
|
protected String |
getEndpointUrl() |
protected String |
getEntityCollection() |
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
String |
getInventorySpecialStockType()
(Key Field) Constraints: Not nullable, Maximum length: 1 Original property name from the Odata EDM: InventorySpecialStockType
|
String |
getInventoryStockType()
(Key Field) Constraints: Not nullable, Maximum length: 2 Original property name from the Odata EDM: InventoryStockType
|
protected Map<String,Object> |
getKey() |
String |
getMaterial()
(Key Field) Constraints: Not nullable, Maximum length: 40 Original property name from the Odata EDM: Material
|
String |
getMaterialBaseUnit()
Constraints: Not nullable, Maximum length: 3 Original property name from the Odata EDM: MaterialBaseUnit
|
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 Original property name from the Odata EDM: MatlWrhsStkQtyInMatlBaseUnit
|
String |
getPlant()
(Key Field) Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: Plant
|
String |
getSDDocument()
(Key Field) Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: SDDocument
|
String |
getSDDocumentItem()
(Key Field) Constraints: Not nullable, Maximum length: 6 Original property name from the Odata EDM: SDDocumentItem
|
String |
getStorageLocation()
(Key Field) Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: StorageLocation
|
String |
getSupplier()
(Key Field) Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: Supplier
|
Class<MatlStkInAcctMod> |
getType() |
String |
getWBSElementInternalID()
(Key Field) Constraints: Not nullable, Maximum length: 24 Original property name from the Odata EDM: WBSElementInternalID
|
int |
hashCode() |
void |
setBatch(String batch)
(Key Field) Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: Batch
|
void |
setCustomer(String customer)
(Key Field) Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: Customer
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
void |
setInventorySpecialStockType(String inventorySpecialStockType)
(Key Field) Constraints: Not nullable, Maximum length: 1 Original property name from the Odata EDM: InventorySpecialStockType
|
void |
setInventoryStockType(String inventoryStockType)
(Key Field) Constraints: Not nullable, Maximum length: 2 Original property name from the Odata EDM: InventoryStockType
|
void |
setMaterial(String material)
(Key Field) Constraints: Not nullable, Maximum length: 40 Original property name from the Odata EDM: Material
|
void |
setMaterialBaseUnit(String materialBaseUnit)
Constraints: Not nullable, Maximum length: 3 Original property name from the Odata EDM: MaterialBaseUnit
|
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 Original property name from the Odata EDM: MatlWrhsStkQtyInMatlBaseUnit
|
void |
setPlant(String plant)
(Key Field) Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: Plant
|
void |
setSDDocument(String sDDocument)
(Key Field) Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: SDDocument
|
void |
setSDDocumentItem(String sDDocumentItem)
(Key Field) Constraints: Not nullable, Maximum length: 6 Original property name from the Odata EDM: SDDocumentItem
|
void |
setStorageLocation(String storageLocation)
(Key Field) Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: StorageLocation
|
void |
setSupplier(String supplier)
(Key Field) Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: Supplier
|
void |
setWBSElementInternalID(String wBSElementInternalID)
(Key Field) Constraints: Not nullable, Maximum length: 24 Original property name from the Odata EDM: WBSElementInternalID
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
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 MatlStkInAcctModLink<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)
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 getEndpointUrl()
getEndpointUrl
in class VdmEntity<MatlStkInAcctMod>
protected String getEntityCollection()
getEntityCollection
in class VdmEntity<MatlStkInAcctMod>
protected Map<String,Object> getKey()
getKey
in class VdmObject<MatlStkInAcctMod>
protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<MatlStkInAcctMod>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<MatlStkInAcctMod>
public static <T> MatlStkInAcctModField<T> field(String fieldName, Class<T> fieldType)
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.protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<MatlStkInAcctMod>
public MaterialStock fetchMaterialStock() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
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.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.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.