public class Batch extends VdmEntity<Batch>
Batches

Original entity name from the Odata EDM: BatchType

  • Field Details

    • ALL_FIELDS

      public static final BatchSelectable ALL_FIELDS
      Selector for all available fields of Batch.
    • MATERIAL

      public static final BatchField<String> MATERIAL
      Use with available fluent helpers to apply the Material field to query operations.
    • BATCH_IDENTIFYING_PLANT

      public static final BatchField<String> BATCH_IDENTIFYING_PLANT
      Use with available fluent helpers to apply the BatchIdentifyingPlant field to query operations.
    • BATCH

      public static final BatchField<String> BATCH
      Use with available fluent helpers to apply the Batch field to query operations.
    • BATCH_IS_MARKED_FOR_DELETION

      public static final BatchField<Boolean> 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

      public static final BatchField<Boolean> MATL_BATCH_IS_IN_RSTRCD_USE_STOCK
      Use with available fluent helpers to apply the MatlBatchIsInRstrcdUseStock field to query operations.
    • SUPPLIER

      public static final BatchField<String> SUPPLIER
      Use with available fluent helpers to apply the Supplier field to query operations.
    • BATCH_BY_SUPPLIER

      public static final BatchField<String> BATCH_BY_SUPPLIER
      Use with available fluent helpers to apply the BatchBySupplier field to query operations.
    • COUNTRY_OF_ORIGIN

      public static final BatchField<String> COUNTRY_OF_ORIGIN
      Use with available fluent helpers to apply the CountryOfOrigin field to query operations.
    • REGION_OF_ORIGIN

      public static final BatchField<String> REGION_OF_ORIGIN
      Use with available fluent helpers to apply the RegionOfOrigin field to query operations.
    • MATL_BATCH_AVAILABILITY_DATE

      public static final BatchField<LocalDateTime> MATL_BATCH_AVAILABILITY_DATE
      Use with available fluent helpers to apply the MatlBatchAvailabilityDate field to query operations.
    • SHELF_LIFE_EXPIRATION_DATE

      public static final BatchField<LocalDateTime> SHELF_LIFE_EXPIRATION_DATE
      Use with available fluent helpers to apply the ShelfLifeExpirationDate field to query operations.
    • MANUFACTURE_DATE

      public static final BatchField<LocalDateTime> MANUFACTURE_DATE
      Use with available fluent helpers to apply the ManufactureDate field to query operations.
    • FREE_DEFINED_DATE1

      public static final BatchField<LocalDateTime> FREE_DEFINED_DATE1
      Use with available fluent helpers to apply the FreeDefinedDate1 field to query operations.
    • FREE_DEFINED_DATE2

      public static final BatchField<LocalDateTime> FREE_DEFINED_DATE2
      Use with available fluent helpers to apply the FreeDefinedDate2 field to query operations.
    • FREE_DEFINED_DATE3

      public static final BatchField<LocalDateTime> FREE_DEFINED_DATE3
      Use with available fluent helpers to apply the FreeDefinedDate3 field to query operations.
    • FREE_DEFINED_DATE4

      public static final BatchField<LocalDateTime> FREE_DEFINED_DATE4
      Use with available fluent helpers to apply the FreeDefinedDate4 field to query operations.
    • FREE_DEFINED_DATE5

      public static final BatchField<LocalDateTime> FREE_DEFINED_DATE5
      Use with available fluent helpers to apply the FreeDefinedDate5 field to query operations.
    • FREE_DEFINED_DATE6

      public static final BatchField<LocalDateTime> FREE_DEFINED_DATE6
      Use with available fluent helpers to apply the FreeDefinedDate6 field to query operations.
    • CREATION_DATE_TIME

      public static final BatchField<ZonedDateTime> CREATION_DATE_TIME
      Use with available fluent helpers to apply the CreationDateTime field to query operations.
    • LAST_CHANGE_DATE_TIME

      public static final BatchField<ZonedDateTime> LAST_CHANGE_DATE_TIME
      Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
    • BATCH_EXT_WHSE_MGMT_INTERNAL_ID

      public static final BatchField<UUID> BATCH_EXT_WHSE_MGMT_INTERNAL_ID
      Use with available fluent helpers to apply the BatchExtWhseMgmtInternalId field to query operations.
    • TO_BATCH_CHARC

      public static final BatchLink<BatchCharc> TO_BATCH_CHARC
      Use with available fluent helpers to apply the to_BatchCharc navigation property to query operations.
    • TO_BATCH_CLASS

      public static final BatchOneToOneLink<BatchClass> TO_BATCH_CLASS
      Use with available fluent helpers to apply the to_BatchClass navigation property to query operations.
    • TO_BATCH_PLANT

      public static final BatchLink<BatchPlant> TO_BATCH_PLANT
      Use with available fluent helpers to apply the to_BatchPlant navigation property to query operations.
    • TO_BATCH_TEXT

      public static final BatchLink<BatchText> TO_BATCH_TEXT
      Use with available fluent helpers to apply the to_BatchText navigation property to query operations.
  • Constructor Details

  • Method Details

    • getType

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

      public void setMaterial(@Nullable String material)
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Material

      Parameters:
      material - Material Number
    • setBatchIdentifyingPlant

      public void setBatchIdentifyingPlant(@Nullable String batchIdentifyingPlant)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: BatchIdentifyingPlant

      Parameters:
      batchIdentifyingPlant - Plant
    • setBatch

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

      Original property name from the Odata EDM: Batch

      Parameters:
      batch - Batch Number
    • setBatchIsMarkedForDeletion

      public void setBatchIsMarkedForDeletion(@Nullable Boolean batchIsMarkedForDeletion)
      Constraints: none

      Original property name from the Odata EDM: BatchIsMarkedForDeletion

      Parameters:
      batchIsMarkedForDeletion - Deletion Flag for All Data in a Batch
    • setMatlBatchIsInRstrcdUseStock

      public void setMatlBatchIsInRstrcdUseStock(@Nullable Boolean matlBatchIsInRstrcdUseStock)
      Constraints: none

      Original property name from the Odata EDM: MatlBatchIsInRstrcdUseStock

      Parameters:
      matlBatchIsInRstrcdUseStock - Batch in Restricted-Use Stock
    • setSupplier

      public void setSupplier(@Nullable String supplier)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Supplier

      Parameters:
      supplier - Supplier's Account Number
    • setBatchBySupplier

      public void setBatchBySupplier(@Nullable String batchBySupplier)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: BatchBySupplier

      Parameters:
      batchBySupplier - Supplier Batch Number
    • setCountryOfOrigin

      public void setCountryOfOrigin(@Nullable String countryOfOrigin)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CountryOfOrigin

      Parameters:
      countryOfOrigin - Country/Region of Origin of Material (Non-Preferential Ori.)
    • setRegionOfOrigin

      public void setRegionOfOrigin(@Nullable String regionOfOrigin)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: RegionOfOrigin

      Parameters:
      regionOfOrigin - Region of Origin of Material (Non-Preferential Origin)
    • setMatlBatchAvailabilityDate

      public void setMatlBatchAvailabilityDate(@Nullable LocalDateTime matlBatchAvailabilityDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: MatlBatchAvailabilityDate

      Parameters:
      matlBatchAvailabilityDate - Availability date
    • setShelfLifeExpirationDate

      public void setShelfLifeExpirationDate(@Nullable LocalDateTime shelfLifeExpirationDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ShelfLifeExpirationDate

      Parameters:
      shelfLifeExpirationDate - Shelf Life Expiration or Best-Before Date
    • setManufactureDate

      public void setManufactureDate(@Nullable LocalDateTime manufactureDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ManufactureDate

      Parameters:
      manufactureDate - Date of Manufacture
    • setFreeDefinedDate1

      public void setFreeDefinedDate1(@Nullable LocalDateTime freeDefinedDate1)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FreeDefinedDate1

      Parameters:
      freeDefinedDate1 - Date for Free Use 1
    • setFreeDefinedDate2

      public void setFreeDefinedDate2(@Nullable LocalDateTime freeDefinedDate2)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FreeDefinedDate2

      Parameters:
      freeDefinedDate2 - Date for Free Use 2
    • setFreeDefinedDate3

      public void setFreeDefinedDate3(@Nullable LocalDateTime freeDefinedDate3)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FreeDefinedDate3

      Parameters:
      freeDefinedDate3 - Date for Free Use 3
    • setFreeDefinedDate4

      public void setFreeDefinedDate4(@Nullable LocalDateTime freeDefinedDate4)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FreeDefinedDate4

      Parameters:
      freeDefinedDate4 - Date for Free Use 4
    • setFreeDefinedDate5

      public void setFreeDefinedDate5(@Nullable LocalDateTime freeDefinedDate5)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FreeDefinedDate5

      Parameters:
      freeDefinedDate5 - Date for Free Use 5
    • setFreeDefinedDate6

      public void setFreeDefinedDate6(@Nullable LocalDateTime freeDefinedDate6)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FreeDefinedDate6

      Parameters:
      freeDefinedDate6 - Date for Free Use 6
    • setCreationDateTime

      public void setCreationDateTime(@Nullable ZonedDateTime creationDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Created On Timestamp
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable ZonedDateTime lastChangeDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Last Change Timestamp
    • setBatchExtWhseMgmtInternalId

      public void setBatchExtWhseMgmtInternalId(@Nullable UUID batchExtWhseMgmtInternalId)
      Constraints: none

      Original property name from the Odata EDM: BatchExtWhseMgmtInternalId

      Parameters:
      batchExtWhseMgmtInternalId - Batch ID
    • getEntityCollection

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

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

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

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<Batch>
    • 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 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<Batch>
    • setServicePathForFetch

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<Batch>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<Batch>
    • fetchBatchCharc

      @Nonnull public List<BatchCharc> 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

      @Nonnull public List<BatchCharc> 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

      @Nonnull public io.vavr.control.Option<List<BatchCharc>> 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 Option result state will be empty.

      Returns:
      If the information for navigation property to_BatchCharc is already loaded, the result will contain the BatchCharc entities. If not, an Option with result state empty is returned.
    • setBatchCharc

      public void setBatchCharc(@Nonnull List<BatchCharc> value)
      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

      public void addBatchCharc(BatchCharc... entity)
      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

      @Nullable public BatchClass 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 null if 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

      @Nullable public BatchClass 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

      @Nonnull public io.vavr.control.Option<BatchClass> 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 Option result state will be empty.

      Returns:
      If the information for navigation property to_BatchClass is already loaded, the result will contain the BatchClass entity. If not, an Option with result state empty is returned.
    • setBatchClass

      public void setBatchClass(BatchClass value)
      Overwrites the associated BatchClass entity for the loaded navigation property to_BatchClass.
      Parameters:
      value - New BatchClass entity.
    • fetchBatchPlant

      @Nonnull public List<BatchPlant> 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

      @Nonnull public List<BatchPlant> 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

      @Nonnull public io.vavr.control.Option<List<BatchPlant>> 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 Option result state will be empty.

      Returns:
      If the information for navigation property to_BatchPlant is already loaded, the result will contain the BatchPlant entities. If not, an Option with result state empty is returned.
    • setBatchPlant

      public void setBatchPlant(@Nonnull List<BatchPlant> value)
      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

      public void addBatchPlant(BatchPlant... entity)
      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

      @Nonnull public List<BatchText> 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

      @Nonnull public List<BatchText> 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

      @Nonnull public io.vavr.control.Option<List<BatchText>> 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 Option result state will be empty.

      Returns:
      If the information for navigation property to_BatchText is already loaded, the result will contain the BatchText entities. If not, an Option with result state empty is returned.
    • setBatchText

      public void setBatchText(@Nonnull List<BatchText> value)
      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

      public void addBatchText(BatchText... entity)
      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

      @Nonnull public static Batch.BatchBuilder builder()
    • getMaterial

      @Nullable public String getMaterial()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Material

      Returns:
      Material Number
    • getBatchIdentifyingPlant

      @Nullable public String getBatchIdentifyingPlant()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: BatchIdentifyingPlant

      Returns:
      Plant
    • getBatch

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

      Original property name from the Odata EDM: Batch

      Returns:
      Batch Number
    • getBatchIsMarkedForDeletion

      @Nullable public Boolean getBatchIsMarkedForDeletion()
      Constraints: none

      Original property name from the Odata EDM: BatchIsMarkedForDeletion

      Returns:
      Deletion Flag for All Data in a Batch
    • getMatlBatchIsInRstrcdUseStock

      @Nullable public Boolean getMatlBatchIsInRstrcdUseStock()
      Constraints: none

      Original property name from the Odata EDM: MatlBatchIsInRstrcdUseStock

      Returns:
      Batch in Restricted-Use Stock
    • getSupplier

      @Nullable public String getSupplier()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Supplier

      Returns:
      Supplier's Account Number
    • getBatchBySupplier

      @Nullable public String getBatchBySupplier()
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: BatchBySupplier

      Returns:
      Supplier Batch Number
    • getCountryOfOrigin

      @Nullable public String getCountryOfOrigin()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CountryOfOrigin

      Returns:
      Country/Region of Origin of Material (Non-Preferential Ori.)
    • getRegionOfOrigin

      @Nullable public String getRegionOfOrigin()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: RegionOfOrigin

      Returns:
      Region of Origin of Material (Non-Preferential Origin)
    • getMatlBatchAvailabilityDate

      @Nullable public LocalDateTime getMatlBatchAvailabilityDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: MatlBatchAvailabilityDate

      Returns:
      Availability date
    • getShelfLifeExpirationDate

      @Nullable public LocalDateTime getShelfLifeExpirationDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ShelfLifeExpirationDate

      Returns:
      Shelf Life Expiration or Best-Before Date
    • getManufactureDate

      @Nullable public LocalDateTime getManufactureDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ManufactureDate

      Returns:
      Date of Manufacture
    • getFreeDefinedDate1

      @Nullable public LocalDateTime getFreeDefinedDate1()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FreeDefinedDate1

      Returns:
      Date for Free Use 1
    • getFreeDefinedDate2

      @Nullable public LocalDateTime getFreeDefinedDate2()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FreeDefinedDate2

      Returns:
      Date for Free Use 2
    • getFreeDefinedDate3

      @Nullable public LocalDateTime getFreeDefinedDate3()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FreeDefinedDate3

      Returns:
      Date for Free Use 3
    • getFreeDefinedDate4

      @Nullable public LocalDateTime getFreeDefinedDate4()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FreeDefinedDate4

      Returns:
      Date for Free Use 4
    • getFreeDefinedDate5

      @Nullable public LocalDateTime getFreeDefinedDate5()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FreeDefinedDate5

      Returns:
      Date for Free Use 5
    • getFreeDefinedDate6

      @Nullable public LocalDateTime getFreeDefinedDate6()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: FreeDefinedDate6

      Returns:
      Date for Free Use 6
    • getCreationDateTime

      @Nullable public ZonedDateTime getCreationDateTime()
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Created On Timestamp
    • getLastChangeDateTime

      @Nullable public ZonedDateTime getLastChangeDateTime()
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Last Change Timestamp
    • getBatchExtWhseMgmtInternalId

      @Nullable public UUID getBatchExtWhseMgmtInternalId()
      Constraints: none

      Original property name from the Odata EDM: BatchExtWhseMgmtInternalId

      Returns:
      Batch ID
    • toString

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

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

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

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