Class Batch
Original entity name from the Odata EDM: BatchType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of Batch instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BatchSelectableSelector for all available fields of Batch.static final BatchField<String>Use with available fluent helpers to apply the Batch field to query operations.static final BatchField<String>Use with available fluent helpers to apply the BatchBySupplier field to query operations.static final BatchField<UUID>Use with available fluent helpers to apply the BatchExtWhseMgmtInternalId field to query operations.static final BatchField<String>Use with available fluent helpers to apply the BatchIdentifyingPlant field to query operations.static final BatchField<Boolean>Use with available fluent helpers to apply the BatchIsMarkedForDeletion field to query operations.static final BatchField<String>Use with available fluent helpers to apply the CountryOfOrigin field to query operations.static final BatchField<ZonedDateTime>Use with available fluent helpers to apply the CreationDateTime field to query operations.static final BatchField<LocalDateTime>Use with available fluent helpers to apply the FreeDefinedDate1 field to query operations.static final BatchField<LocalDateTime>Use with available fluent helpers to apply the FreeDefinedDate2 field to query operations.static final BatchField<LocalDateTime>Use with available fluent helpers to apply the FreeDefinedDate3 field to query operations.static final BatchField<LocalDateTime>Use with available fluent helpers to apply the FreeDefinedDate4 field to query operations.static final BatchField<LocalDateTime>Use with available fluent helpers to apply the FreeDefinedDate5 field to query operations.static final BatchField<LocalDateTime>Use with available fluent helpers to apply the FreeDefinedDate6 field to query operations.static final BatchField<ZonedDateTime>Use with available fluent helpers to apply the LastChangeDateTime field to query operations.static final BatchField<LocalDateTime>Use with available fluent helpers to apply the ManufactureDate field to query operations.static final BatchField<String>Use with available fluent helpers to apply the Material field to query operations.static final BatchField<LocalDateTime>Use with available fluent helpers to apply the MatlBatchAvailabilityDate field to query operations.static final BatchField<Boolean>Use with available fluent helpers to apply the MatlBatchIsInRstrcdUseStock field to query operations.static final BatchField<String>Use with available fluent helpers to apply the RegionOfOrigin field to query operations.static final BatchField<LocalDateTime>Use with available fluent helpers to apply the ShelfLifeExpirationDate field to query operations.static final BatchField<String>Use with available fluent helpers to apply the Supplier field to query operations.static final BatchLink<BatchCharc>Use with available fluent helpers to apply the to_BatchCharc navigation property to query operations.static final BatchOneToOneLink<BatchClass>Use with available fluent helpers to apply the to_BatchClass navigation property to query operations.static final BatchLink<BatchPlant>Use with available fluent helpers to apply the to_BatchPlant navigation property to query operations.Use with available fluent helpers to apply the to_BatchText navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionBatch()Batch(String material, String batchIdentifyingPlant, String batch, Boolean batchIsMarkedForDeletion, Boolean matlBatchIsInRstrcdUseStock, String supplier, String batchBySupplier, String countryOfOrigin, String regionOfOrigin, LocalDateTime matlBatchAvailabilityDate, LocalDateTime shelfLifeExpirationDate, LocalDateTime manufactureDate, LocalDateTime freeDefinedDate1, LocalDateTime freeDefinedDate2, LocalDateTime freeDefinedDate3, LocalDateTime freeDefinedDate4, LocalDateTime freeDefinedDate5, LocalDateTime freeDefinedDate6, ZonedDateTime creationDateTime, ZonedDateTime lastChangeDateTime, UUID batchExtWhseMgmtInternalId, List<BatchCharc> toBatchCharc, BatchClass toBatchClass, List<BatchPlant> toBatchPlant, List<BatchText> toBatchText) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBatchCharc(BatchCharc... entity) Adds elements to the list of associated BatchCharc entities.voidaddBatchPlant(BatchPlant... entity) Adds elements to the list of associated BatchPlant entities.voidaddBatchText(BatchText... entity) Adds elements to the list of associated BatchText entities.voidattachToService(String servicePath, HttpDestinationProperties destination) static Batch.BatchBuilderbuilder()protected booleanbooleanFetches the BatchCharc entities (one to many) associated with this entity.Fetches the BatchClass entity (one to one) associated with this entity.Fetches the BatchPlant entities (one to many) associated with this entity.Fetches the BatchText entities (one to many) associated with this entity.static <T,DomainT>
BatchField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> BatchField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidgetBatch()(Key Field) Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 15io.vavr.control.Option<List<BatchCharc>>Retrieval of associated BatchCharc entities (one to many).Retrieval of associated BatchCharc entities (one to many).io.vavr.control.Option<BatchClass>Retrieval of associated BatchClass entity (one to one).Retrieval of associated BatchClass entity (one to one).Constraints: none(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: noneio.vavr.control.Option<List<BatchPlant>>Retrieval of associated BatchPlant entities (one to many).Retrieval of associated BatchPlant entities (one to many).Retrieval of associated BatchText entities (one to many).Retrieval of associated BatchText entities (one to many).Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Precision: 7protected Stringprotected StringConstraints: Not nullable, Precision: 0Constraints: Not nullable, Precision: 0Constraints: Not nullable, Precision: 0Constraints: Not nullable, Precision: 0Constraints: Not nullable, Precision: 0Constraints: Not nullable, Precision: 0getKey()Constraints: Not nullable, Precision: 7Constraints: Not nullable, Precision: 0(Key Field) Constraints: Not nullable, Maximum length: 18Constraints: Not nullable, Precision: 0Constraints: noneConstraints: Not nullable, Maximum length: 3Constraints: Not nullable, Precision: 0Constraints: Not nullable, Maximum length: 10getType()inthashCode()void(Key Field) Constraints: Not nullable, Maximum length: 10voidsetBatchBySupplier(String batchBySupplier) Constraints: Not nullable, Maximum length: 15voidsetBatchCharc(List<BatchCharc> value) Overwrites the list of associated BatchCharc entities for the loaded navigation property to_BatchCharc.voidsetBatchClass(BatchClass value) Overwrites the associated BatchClass entity for the loaded navigation property to_BatchClass.voidsetBatchExtWhseMgmtInternalId(UUID batchExtWhseMgmtInternalId) Constraints: nonevoidsetBatchIdentifyingPlant(String batchIdentifyingPlant) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetBatchIsMarkedForDeletion(Boolean batchIsMarkedForDeletion) Constraints: nonevoidsetBatchPlant(List<BatchPlant> value) Overwrites the list of associated BatchPlant entities for the loaded navigation property to_BatchPlant.voidsetBatchText(List<BatchText> value) Overwrites the list of associated BatchText entities for the loaded navigation property to_BatchText.voidsetCountryOfOrigin(String countryOfOrigin) Constraints: Not nullable, Maximum length: 3voidsetCreationDateTime(ZonedDateTime creationDateTime) Constraints: Not nullable, Precision: 7voidsetFreeDefinedDate1(LocalDateTime freeDefinedDate1) Constraints: Not nullable, Precision: 0voidsetFreeDefinedDate2(LocalDateTime freeDefinedDate2) Constraints: Not nullable, Precision: 0voidsetFreeDefinedDate3(LocalDateTime freeDefinedDate3) Constraints: Not nullable, Precision: 0voidsetFreeDefinedDate4(LocalDateTime freeDefinedDate4) Constraints: Not nullable, Precision: 0voidsetFreeDefinedDate5(LocalDateTime freeDefinedDate5) Constraints: Not nullable, Precision: 0voidsetFreeDefinedDate6(LocalDateTime freeDefinedDate6) Constraints: Not nullable, Precision: 0voidsetLastChangeDateTime(ZonedDateTime lastChangeDateTime) Constraints: Not nullable, Precision: 7voidsetManufactureDate(LocalDateTime manufactureDate) Constraints: Not nullable, Precision: 0voidsetMaterial(String material) (Key Field) Constraints: Not nullable, Maximum length: 18voidsetMatlBatchAvailabilityDate(LocalDateTime matlBatchAvailabilityDate) Constraints: Not nullable, Precision: 0voidsetMatlBatchIsInRstrcdUseStock(Boolean matlBatchIsInRstrcdUseStock) Constraints: nonevoidsetRegionOfOrigin(String regionOfOrigin) Constraints: Not nullable, Maximum length: 3protected voidsetServicePathForFetch(String servicePathForFetch) voidsetShelfLifeExpirationDate(LocalDateTime shelfLifeExpirationDate) Constraints: Not nullable, Precision: 0voidsetSupplier(String supplier) Constraints: Not nullable, Maximum length: 10toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of Batch. -
MATERIAL
Use with available fluent helpers to apply the Material field to query operations. -
BATCH_IDENTIFYING_PLANT
Use with available fluent helpers to apply the BatchIdentifyingPlant field to query operations. -
BATCH
Use with available fluent helpers to apply the Batch field to query operations. -
BATCH_IS_MARKED_FOR_DELETION
Use with available fluent helpers to apply the BatchIsMarkedForDeletion field to query operations. -
MATL_BATCH_IS_IN_RSTRCD_USE_STOCK
Use with available fluent helpers to apply the MatlBatchIsInRstrcdUseStock field to query operations. -
SUPPLIER
Use with available fluent helpers to apply the Supplier field to query operations. -
BATCH_BY_SUPPLIER
Use with available fluent helpers to apply the BatchBySupplier field to query operations. -
COUNTRY_OF_ORIGIN
Use with available fluent helpers to apply the CountryOfOrigin field to query operations. -
REGION_OF_ORIGIN
Use with available fluent helpers to apply the RegionOfOrigin field to query operations. -
MATL_BATCH_AVAILABILITY_DATE
Use with available fluent helpers to apply the MatlBatchAvailabilityDate field to query operations. -
SHELF_LIFE_EXPIRATION_DATE
Use with available fluent helpers to apply the ShelfLifeExpirationDate field to query operations. -
MANUFACTURE_DATE
Use with available fluent helpers to apply the ManufactureDate field to query operations. -
FREE_DEFINED_DATE1
Use with available fluent helpers to apply the FreeDefinedDate1 field to query operations. -
FREE_DEFINED_DATE2
Use with available fluent helpers to apply the FreeDefinedDate2 field to query operations. -
FREE_DEFINED_DATE3
Use with available fluent helpers to apply the FreeDefinedDate3 field to query operations. -
FREE_DEFINED_DATE4
Use with available fluent helpers to apply the FreeDefinedDate4 field to query operations. -
FREE_DEFINED_DATE5
Use with available fluent helpers to apply the FreeDefinedDate5 field to query operations. -
FREE_DEFINED_DATE6
Use with available fluent helpers to apply the FreeDefinedDate6 field to query operations. -
CREATION_DATE_TIME
Use with available fluent helpers to apply the CreationDateTime field to query operations. -
LAST_CHANGE_DATE_TIME
Use with available fluent helpers to apply the LastChangeDateTime field to query operations. -
BATCH_EXT_WHSE_MGMT_INTERNAL_ID
Use with available fluent helpers to apply the BatchExtWhseMgmtInternalId field to query operations. -
TO_BATCH_CHARC
Use with available fluent helpers to apply the to_BatchCharc navigation property to query operations. -
TO_BATCH_CLASS
Use with available fluent helpers to apply the to_BatchClass navigation property to query operations. -
TO_BATCH_PLANT
Use with available fluent helpers to apply the to_BatchPlant navigation property to query operations. -
TO_BATCH_TEXT
Use with available fluent helpers to apply the to_BatchText navigation property to query operations.
-
-
Constructor Details
-
Batch
public Batch() -
Batch
public Batch(@Nullable String material, @Nullable String batchIdentifyingPlant, @Nullable String batch, @Nullable Boolean batchIsMarkedForDeletion, @Nullable Boolean matlBatchIsInRstrcdUseStock, @Nullable String supplier, @Nullable String batchBySupplier, @Nullable String countryOfOrigin, @Nullable String regionOfOrigin, @Nullable LocalDateTime matlBatchAvailabilityDate, @Nullable LocalDateTime shelfLifeExpirationDate, @Nullable LocalDateTime manufactureDate, @Nullable LocalDateTime freeDefinedDate1, @Nullable LocalDateTime freeDefinedDate2, @Nullable LocalDateTime freeDefinedDate3, @Nullable LocalDateTime freeDefinedDate4, @Nullable LocalDateTime freeDefinedDate5, @Nullable LocalDateTime freeDefinedDate6, @Nullable ZonedDateTime creationDateTime, @Nullable ZonedDateTime lastChangeDateTime, @Nullable UUID batchExtWhseMgmtInternalId, List<BatchCharc> toBatchCharc, @Nullable BatchClass toBatchClass, List<BatchPlant> toBatchPlant, List<BatchText> toBatchText)
-
-
Method Details
-
getType
-
setMaterial
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Material
- Parameters:
material- Material Number
-
setBatchIdentifyingPlant
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: BatchIdentifyingPlant
- Parameters:
batchIdentifyingPlant- Plant
-
setBatch
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Batch
- Parameters:
batch- Batch Number
-
setBatchIsMarkedForDeletion
Constraints: noneOriginal property name from the Odata EDM: BatchIsMarkedForDeletion
- Parameters:
batchIsMarkedForDeletion- Deletion Flag for All Data in a Batch
-
setMatlBatchIsInRstrcdUseStock
Constraints: noneOriginal property name from the Odata EDM: MatlBatchIsInRstrcdUseStock
- Parameters:
matlBatchIsInRstrcdUseStock- Batch in Restricted-Use Stock
-
setSupplier
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Supplier
- Parameters:
supplier- Supplier's Account Number
-
setBatchBySupplier
Constraints: Not nullable, Maximum length: 15Original property name from the Odata EDM: BatchBySupplier
- Parameters:
batchBySupplier- Supplier Batch Number
-
setCountryOfOrigin
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: CountryOfOrigin
- Parameters:
countryOfOrigin- Country/Region of Origin of Material (Non-Preferential Ori.)
-
setRegionOfOrigin
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: RegionOfOrigin
- Parameters:
regionOfOrigin- Region of Origin of Material (Non-Preferential Origin)
-
setMatlBatchAvailabilityDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: MatlBatchAvailabilityDate
- Parameters:
matlBatchAvailabilityDate- Availability date
-
setShelfLifeExpirationDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ShelfLifeExpirationDate
- Parameters:
shelfLifeExpirationDate- Shelf Life Expiration or Best-Before Date
-
setManufactureDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ManufactureDate
- Parameters:
manufactureDate- Date of Manufacture
-
setFreeDefinedDate1
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: FreeDefinedDate1
- Parameters:
freeDefinedDate1- Date for Free Use 1
-
setFreeDefinedDate2
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: FreeDefinedDate2
- Parameters:
freeDefinedDate2- Date for Free Use 2
-
setFreeDefinedDate3
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: FreeDefinedDate3
- Parameters:
freeDefinedDate3- Date for Free Use 3
-
setFreeDefinedDate4
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: FreeDefinedDate4
- Parameters:
freeDefinedDate4- Date for Free Use 4
-
setFreeDefinedDate5
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: FreeDefinedDate5
- Parameters:
freeDefinedDate5- Date for Free Use 5
-
setFreeDefinedDate6
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: FreeDefinedDate6
- Parameters:
freeDefinedDate6- Date for Free Use 6
-
setCreationDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Parameters:
creationDateTime- Created On Timestamp
-
setLastChangeDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Parameters:
lastChangeDateTime- Last Change Timestamp
-
setBatchExtWhseMgmtInternalId
Constraints: noneOriginal property name from the Odata EDM: BatchExtWhseMgmtInternalId
- Parameters:
batchExtWhseMgmtInternalId- Batch ID
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<Batch>
-
getKey
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<Batch>
-
fromMap
-
field
@Nonnull public static <T> BatchField<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> BatchField<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 fieldfieldName- 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
- Overrides:
getDestinationForFetchin classVdmEntity<Batch>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<Batch>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<Batch>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<Batch>
-
fetchBatchCharc
Fetches the BatchCharc entities (one to many) associated with this entity. This corresponds to the OData navigation property to_BatchCharc.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated BatchCharc entities. If no entities are associated then an empty list is returned.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getBatchCharcOrFetch
Retrieval of associated BatchCharc entities (one to many). This corresponds to the OData navigation property to_BatchCharc.If the navigation property to_BatchCharc of a queried Batch 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.
- Returns:
- List of associated BatchCharc entities.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getBatchCharcIfPresent
Retrieval of associated BatchCharc entities (one to many). This corresponds to the OData navigation property to_BatchCharc.If the navigation property for an entity Batch has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property to_BatchCharc is already loaded, the result will
contain the BatchCharc entities. If not, an
Optionwith result stateemptyis returned.
-
setBatchCharc
Overwrites the list of associated BatchCharc entities for the loaded navigation property to_BatchCharc.If the navigation property to_BatchCharc of a queried Batch 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.
- Parameters:
value- List of BatchCharc entities.
-
addBatchCharc
Adds elements to the list of associated BatchCharc entities. This corresponds to the OData navigation property to_BatchCharc.If the navigation property to_BatchCharc of a queried Batch 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.
- Parameters:
entity- Array of BatchCharc entities.
-
fetchBatchClass
Fetches the BatchClass entity (one to one) associated with this entity. This corresponds to the OData navigation property to_BatchClass.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated BatchClass entity, or
nullif an entity is not associated. - Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getBatchClassOrFetch
Retrieval of associated BatchClass entity (one to one). This corresponds to the OData navigation property to_BatchClass.If the navigation property to_BatchClass of a queried Batch 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.
- Returns:
- List of associated BatchClass entity.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getBatchClassIfPresent
Retrieval of associated BatchClass entity (one to one). This corresponds to the OData navigation property to_BatchClass.If the navigation property for an entity Batch has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property to_BatchClass is already loaded, the result will
contain the BatchClass entity. If not, an
Optionwith result stateemptyis returned.
-
setBatchClass
Overwrites the associated BatchClass entity for the loaded navigation property to_BatchClass.- Parameters:
value- New BatchClass entity.
-
fetchBatchPlant
Fetches the BatchPlant entities (one to many) associated with this entity. This corresponds to the OData navigation property to_BatchPlant.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated BatchPlant entities. If no entities are associated then an empty list is returned.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getBatchPlantOrFetch
Retrieval of associated BatchPlant entities (one to many). This corresponds to the OData navigation property to_BatchPlant.If the navigation property to_BatchPlant of a queried Batch 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.
- Returns:
- List of associated BatchPlant entities.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getBatchPlantIfPresent
Retrieval of associated BatchPlant entities (one to many). This corresponds to the OData navigation property to_BatchPlant.If the navigation property for an entity Batch has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property to_BatchPlant is already loaded, the result will
contain the BatchPlant entities. If not, an
Optionwith result stateemptyis returned.
-
setBatchPlant
Overwrites the list of associated BatchPlant entities for the loaded navigation property to_BatchPlant.If the navigation property to_BatchPlant of a queried Batch 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.
- Parameters:
value- List of BatchPlant entities.
-
addBatchPlant
Adds elements to the list of associated BatchPlant entities. This corresponds to the OData navigation property to_BatchPlant.If the navigation property to_BatchPlant of a queried Batch 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.
- Parameters:
entity- Array of BatchPlant entities.
-
fetchBatchText
Fetches the BatchText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_BatchText.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated BatchText entities. If no entities are associated then an empty list is returned.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getBatchTextOrFetch
Retrieval of associated BatchText entities (one to many). This corresponds to the OData navigation property to_BatchText.If the navigation property to_BatchText of a queried Batch 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.
- Returns:
- List of associated BatchText entities.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getBatchTextIfPresent
Retrieval of associated BatchText entities (one to many). This corresponds to the OData navigation property to_BatchText.If the navigation property for an entity Batch has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property to_BatchText is already loaded, the result will contain
the BatchText entities. If not, an
Optionwith result stateemptyis returned.
-
setBatchText
Overwrites the list of associated BatchText entities for the loaded navigation property to_BatchText.If the navigation property to_BatchText of a queried Batch 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.
- Parameters:
value- List of BatchText entities.
-
addBatchText
Adds elements to the list of associated BatchText entities. This corresponds to the OData navigation property to_BatchText.If the navigation property to_BatchText of a queried Batch 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.
- Parameters:
entity- Array of BatchText entities.
-
builder
-
getMaterial
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Material
- Returns:
- Material Number
-
getBatchIdentifyingPlant
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: BatchIdentifyingPlant
- Returns:
- Plant
-
getBatch
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Batch
- Returns:
- Batch Number
-
getBatchIsMarkedForDeletion
Constraints: noneOriginal property name from the Odata EDM: BatchIsMarkedForDeletion
- Returns:
- Deletion Flag for All Data in a Batch
-
getMatlBatchIsInRstrcdUseStock
Constraints: noneOriginal property name from the Odata EDM: MatlBatchIsInRstrcdUseStock
- Returns:
- Batch in Restricted-Use Stock
-
getSupplier
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Supplier
- Returns:
- Supplier's Account Number
-
getBatchBySupplier
Constraints: Not nullable, Maximum length: 15Original property name from the Odata EDM: BatchBySupplier
- Returns:
- Supplier Batch Number
-
getCountryOfOrigin
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: CountryOfOrigin
- Returns:
- Country/Region of Origin of Material (Non-Preferential Ori.)
-
getRegionOfOrigin
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: RegionOfOrigin
- Returns:
- Region of Origin of Material (Non-Preferential Origin)
-
getMatlBatchAvailabilityDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: MatlBatchAvailabilityDate
- Returns:
- Availability date
-
getShelfLifeExpirationDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ShelfLifeExpirationDate
- Returns:
- Shelf Life Expiration or Best-Before Date
-
getManufactureDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ManufactureDate
- Returns:
- Date of Manufacture
-
getFreeDefinedDate1
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: FreeDefinedDate1
- Returns:
- Date for Free Use 1
-
getFreeDefinedDate2
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: FreeDefinedDate2
- Returns:
- Date for Free Use 2
-
getFreeDefinedDate3
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: FreeDefinedDate3
- Returns:
- Date for Free Use 3
-
getFreeDefinedDate4
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: FreeDefinedDate4
- Returns:
- Date for Free Use 4
-
getFreeDefinedDate5
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: FreeDefinedDate5
- Returns:
- Date for Free Use 5
-
getFreeDefinedDate6
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: FreeDefinedDate6
- Returns:
- Date for Free Use 6
-
getCreationDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Returns:
- Created On Timestamp
-
getLastChangeDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Returns:
- Last Change Timestamp
-
getBatchExtWhseMgmtInternalId
Constraints: noneOriginal property name from the Odata EDM: BatchExtWhseMgmtInternalId
- Returns:
- Batch ID
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-