Modifier and Type | Class and Description |
---|---|
static class |
Batch.BatchBuilder
Helper class to allow for fluent creation of Batch instances.
|
Modifier and Type | Field and Description |
---|---|
static BatchSelectable |
ALL_FIELDS
Selector for all available fields of Batch.
|
static BatchField<String> |
BATCH
Use with available fluent helpers to apply the Batch field to query operations.
|
static BatchField<String> |
BATCH_BY_SUPPLIER
Use with available fluent helpers to apply the BatchBySupplier field to query operations.
|
static BatchField<UUID> |
BATCH_EXT_WHSE_MGMT_INTERNAL_ID
Use with available fluent helpers to apply the BatchExtWhseMgmtInternalId field to query operations.
|
static BatchField<String> |
BATCH_IDENTIFYING_PLANT
Use with available fluent helpers to apply the BatchIdentifyingPlant field to query operations.
|
static BatchField<Boolean> |
BATCH_IS_MARKED_FOR_DELETION
Use with available fluent helpers to apply the BatchIsMarkedForDeletion field to query operations.
|
static BatchField<String> |
COUNTRY_OF_ORIGIN
Use with available fluent helpers to apply the CountryOfOrigin field to query operations.
|
static BatchField<ZonedDateTime> |
CREATION_DATE_TIME
Use with available fluent helpers to apply the CreationDateTime field to query operations.
|
static BatchField<LocalDateTime> |
FREE_DEFINED_DATE1
Use with available fluent helpers to apply the FreeDefinedDate1 field to query operations.
|
static BatchField<LocalDateTime> |
FREE_DEFINED_DATE2
Use with available fluent helpers to apply the FreeDefinedDate2 field to query operations.
|
static BatchField<LocalDateTime> |
FREE_DEFINED_DATE3
Use with available fluent helpers to apply the FreeDefinedDate3 field to query operations.
|
static BatchField<LocalDateTime> |
FREE_DEFINED_DATE4
Use with available fluent helpers to apply the FreeDefinedDate4 field to query operations.
|
static BatchField<LocalDateTime> |
FREE_DEFINED_DATE5
Use with available fluent helpers to apply the FreeDefinedDate5 field to query operations.
|
static BatchField<LocalDateTime> |
FREE_DEFINED_DATE6
Use with available fluent helpers to apply the FreeDefinedDate6 field to query operations.
|
static BatchField<ZonedDateTime> |
LAST_CHANGE_DATE_TIME
Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
|
static BatchField<LocalDateTime> |
MANUFACTURE_DATE
Use with available fluent helpers to apply the ManufactureDate field to query operations.
|
static BatchField<String> |
MATERIAL
Use with available fluent helpers to apply the Material field to query operations.
|
static BatchField<LocalDateTime> |
MATL_BATCH_AVAILABILITY_DATE
Use with available fluent helpers to apply the MatlBatchAvailabilityDate field to query operations.
|
static BatchField<Boolean> |
MATL_BATCH_IS_IN_RSTRCD_USE_STOCK
Use with available fluent helpers to apply the MatlBatchIsInRstrcdUseStock field to query operations.
|
static BatchField<String> |
REGION_OF_ORIGIN
Use with available fluent helpers to apply the RegionOfOrigin field to query operations.
|
static BatchField<LocalDateTime> |
SHELF_LIFE_EXPIRATION_DATE
Use with available fluent helpers to apply the ShelfLifeExpirationDate field to query operations.
|
static BatchField<String> |
SUPPLIER
Use with available fluent helpers to apply the Supplier field to query operations.
|
static BatchLink<BatchCharc> |
TO_BATCH_CHARC
Use with available fluent helpers to apply the to_BatchCharc navigation property to query operations.
|
static BatchOneToOneLink<BatchClass> |
TO_BATCH_CLASS
Use with available fluent helpers to apply the to_BatchClass navigation property to query operations.
|
static BatchLink<BatchPlant> |
TO_BATCH_PLANT
Use with available fluent helpers to apply the to_BatchPlant navigation property to query operations.
|
changedOriginalFields
Constructor and Description |
---|
Batch() |
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) |
Modifier and Type | Method and Description |
---|---|
void |
addBatchCharc(BatchCharc... entity)
Adds elements to the list of associated BatchCharc entities.
|
void |
addBatchPlant(BatchPlant... entity)
Adds elements to the list of associated BatchPlant entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static Batch.BatchBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<BatchCharc> |
fetchBatchCharc()
Fetches the BatchCharc entities (one to many) associated with this entity.
|
BatchClass |
fetchBatchClass()
Fetches the BatchClass entity (one to one) associated with this entity.
|
List<BatchPlant> |
fetchBatchPlant()
Fetches the BatchPlant entities (one to many) associated with this entity.
|
static <T> BatchField<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 |
getBatchBySupplier()
Constraints: Not nullable, Maximum length: 15
|
io.vavr.control.Option<List<BatchCharc>> |
getBatchCharcIfPresent()
Retrieval of associated BatchCharc entities (one to many).
|
List<BatchCharc> |
getBatchCharcOrFetch()
Retrieval of associated BatchCharc entities (one to many).
|
io.vavr.control.Option<BatchClass> |
getBatchClassIfPresent()
Retrieval of associated BatchClass entity (one to one).
|
BatchClass |
getBatchClassOrFetch()
Retrieval of associated BatchClass entity (one to one).
|
UUID |
getBatchExtWhseMgmtInternalId()
Constraints: none
|
String |
getBatchIdentifyingPlant()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
Boolean |
getBatchIsMarkedForDeletion()
Constraints: none
|
io.vavr.control.Option<List<BatchPlant>> |
getBatchPlantIfPresent()
Retrieval of associated BatchPlant entities (one to many).
|
List<BatchPlant> |
getBatchPlantOrFetch()
Retrieval of associated BatchPlant entities (one to many).
|
String |
getCountryOfOrigin()
Constraints: Not nullable, Maximum length: 3
|
ZonedDateTime |
getCreationDateTime()
Constraints: Not nullable, Precision: 7
|
protected String |
getDefaultServicePath()
Used by fluent helpers and navigation property methods to construct OData queries.
|
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection()
Used by fluent helpers and navigation property methods to construct OData queries.
|
LocalDateTime |
getFreeDefinedDate1()
Constraints: Not nullable, Precision: 0
|
LocalDateTime |
getFreeDefinedDate2()
Constraints: Not nullable, Precision: 0
|
LocalDateTime |
getFreeDefinedDate3()
Constraints: Not nullable, Precision: 0
|
LocalDateTime |
getFreeDefinedDate4()
Constraints: Not nullable, Precision: 0
|
LocalDateTime |
getFreeDefinedDate5()
Constraints: Not nullable, Precision: 0
|
LocalDateTime |
getFreeDefinedDate6()
Constraints: Not nullable, Precision: 0
|
protected Map<String,Object> |
getKey() |
ZonedDateTime |
getLastChangeDateTime()
Constraints: Not nullable, Precision: 7
|
LocalDateTime |
getManufactureDate()
Constraints: Not nullable, Precision: 0
|
String |
getMaterial()
(Key Field) Constraints: Not nullable, Maximum length: 40
|
LocalDateTime |
getMatlBatchAvailabilityDate()
Constraints: Not nullable, Precision: 0
|
Boolean |
getMatlBatchIsInRstrcdUseStock()
Constraints: none
|
String |
getRegionOfOrigin()
Constraints: Not nullable, Maximum length: 3
|
LocalDateTime |
getShelfLifeExpirationDate()
Constraints: Not nullable, Precision: 0
|
String |
getSupplier()
Constraints: Not nullable, Maximum length: 10
|
Class<Batch> |
getType() |
int |
hashCode() |
void |
setBatch(String batch)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setBatchBySupplier(String batchBySupplier)
Constraints: Not nullable, Maximum length: 15
|
void |
setBatchCharc(List<BatchCharc> value)
Overwrites the list of associated BatchCharc entities for the loaded navigation property
to_BatchCharc.
|
void |
setBatchClass(BatchClass value)
Overwrites the associated BatchClass entity for the loaded navigation property to_BatchClass.
|
void |
setBatchExtWhseMgmtInternalId(UUID batchExtWhseMgmtInternalId)
Constraints: none
|
void |
setBatchIdentifyingPlant(String batchIdentifyingPlant)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setBatchIsMarkedForDeletion(Boolean batchIsMarkedForDeletion)
Constraints: none
|
void |
setBatchPlant(List<BatchPlant> value)
Overwrites the list of associated BatchPlant entities for the loaded navigation property
to_BatchPlant.
|
void |
setCountryOfOrigin(String countryOfOrigin)
Constraints: Not nullable, Maximum length: 3
|
void |
setCreationDateTime(ZonedDateTime creationDateTime)
Constraints: Not nullable, Precision: 7
|
void |
setFreeDefinedDate1(LocalDateTime freeDefinedDate1)
Constraints: Not nullable, Precision: 0
|
void |
setFreeDefinedDate2(LocalDateTime freeDefinedDate2)
Constraints: Not nullable, Precision: 0
|
void |
setFreeDefinedDate3(LocalDateTime freeDefinedDate3)
Constraints: Not nullable, Precision: 0
|
void |
setFreeDefinedDate4(LocalDateTime freeDefinedDate4)
Constraints: Not nullable, Precision: 0
|
void |
setFreeDefinedDate5(LocalDateTime freeDefinedDate5)
Constraints: Not nullable, Precision: 0
|
void |
setFreeDefinedDate6(LocalDateTime freeDefinedDate6)
Constraints: Not nullable, Precision: 0
|
void |
setLastChangeDateTime(ZonedDateTime lastChangeDateTime)
Constraints: Not nullable, Precision: 7
|
void |
setManufactureDate(LocalDateTime manufactureDate)
Constraints: Not nullable, Precision: 0
|
void |
setMaterial(String material)
(Key Field) Constraints: Not nullable, Maximum length: 40
|
void |
setMatlBatchAvailabilityDate(LocalDateTime matlBatchAvailabilityDate)
Constraints: Not nullable, Precision: 0
|
void |
setMatlBatchIsInRstrcdUseStock(Boolean matlBatchIsInRstrcdUseStock)
Constraints: none
|
void |
setRegionOfOrigin(String regionOfOrigin)
Constraints: Not nullable, Maximum length: 3
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setShelfLifeExpirationDate(LocalDateTime shelfLifeExpirationDate)
Constraints: Not nullable, Precision: 0
|
void |
setSupplier(String supplier)
Constraints: Not nullable, Maximum length: 10
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final BatchSelectable ALL_FIELDS
public static final BatchField<String> MATERIAL
public static final BatchField<String> BATCH_IDENTIFYING_PLANT
public static final BatchField<String> BATCH
public static final BatchField<Boolean> BATCH_IS_MARKED_FOR_DELETION
public static final BatchField<Boolean> MATL_BATCH_IS_IN_RSTRCD_USE_STOCK
public static final BatchField<String> SUPPLIER
public static final BatchField<String> BATCH_BY_SUPPLIER
public static final BatchField<String> COUNTRY_OF_ORIGIN
public static final BatchField<String> REGION_OF_ORIGIN
public static final BatchField<LocalDateTime> MATL_BATCH_AVAILABILITY_DATE
public static final BatchField<LocalDateTime> SHELF_LIFE_EXPIRATION_DATE
public static final BatchField<LocalDateTime> MANUFACTURE_DATE
public static final BatchField<LocalDateTime> FREE_DEFINED_DATE1
public static final BatchField<LocalDateTime> FREE_DEFINED_DATE2
public static final BatchField<LocalDateTime> FREE_DEFINED_DATE3
public static final BatchField<LocalDateTime> FREE_DEFINED_DATE4
public static final BatchField<LocalDateTime> FREE_DEFINED_DATE5
public static final BatchField<LocalDateTime> FREE_DEFINED_DATE6
public static final BatchField<ZonedDateTime> CREATION_DATE_TIME
public static final BatchField<ZonedDateTime> LAST_CHANGE_DATE_TIME
public static final BatchField<UUID> BATCH_EXT_WHSE_MGMT_INTERNAL_ID
public static final BatchLink<BatchCharc> TO_BATCH_CHARC
public static final BatchOneToOneLink<BatchClass> TO_BATCH_CLASS
public static final BatchLink<BatchPlant> TO_BATCH_PLANT
public 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)
public void setMaterial(@Nullable String material)
Original property name from the Odata EDM: Material
material
- Material Numberpublic void setBatchIdentifyingPlant(@Nullable String batchIdentifyingPlant)
Original property name from the Odata EDM: BatchIdentifyingPlant
batchIdentifyingPlant
- Plantpublic void setBatch(@Nullable String batch)
Original property name from the Odata EDM: Batch
batch
- Batch Numberpublic void setBatchIsMarkedForDeletion(@Nullable Boolean batchIsMarkedForDeletion)
Original property name from the Odata EDM: BatchIsMarkedForDeletion
batchIsMarkedForDeletion
- Deletion Flag for All Data in a Batchpublic void setMatlBatchIsInRstrcdUseStock(@Nullable Boolean matlBatchIsInRstrcdUseStock)
Original property name from the Odata EDM: MatlBatchIsInRstrcdUseStock
matlBatchIsInRstrcdUseStock
- Batch in Restricted-Use Stockpublic void setSupplier(@Nullable String supplier)
Original property name from the Odata EDM: Supplier
supplier
- Vendor's account numberpublic void setBatchBySupplier(@Nullable String batchBySupplier)
Original property name from the Odata EDM: BatchBySupplier
batchBySupplier
- Supplier Batch Numberpublic void setCountryOfOrigin(@Nullable String countryOfOrigin)
Original property name from the Odata EDM: CountryOfOrigin
countryOfOrigin
- Country of Origin of Material (Non-Preferential Origin)public void setRegionOfOrigin(@Nullable String regionOfOrigin)
Original property name from the Odata EDM: RegionOfOrigin
regionOfOrigin
- Region of Origin of Material (Non-Preferential Origin)public void setMatlBatchAvailabilityDate(@Nullable LocalDateTime matlBatchAvailabilityDate)
Original property name from the Odata EDM: MatlBatchAvailabilityDate
matlBatchAvailabilityDate
- Availability datepublic void setShelfLifeExpirationDate(@Nullable LocalDateTime shelfLifeExpirationDate)
Original property name from the Odata EDM: ShelfLifeExpirationDate
shelfLifeExpirationDate
- Shelf Life Expiration or Best-Before Datepublic void setManufactureDate(@Nullable LocalDateTime manufactureDate)
Original property name from the Odata EDM: ManufactureDate
manufactureDate
- Date of Manufacturepublic void setFreeDefinedDate1(@Nullable LocalDateTime freeDefinedDate1)
Original property name from the Odata EDM: FreeDefinedDate1
freeDefinedDate1
- Date for Free Use 1public void setFreeDefinedDate2(@Nullable LocalDateTime freeDefinedDate2)
Original property name from the Odata EDM: FreeDefinedDate2
freeDefinedDate2
- Date for Free Use 2public void setFreeDefinedDate3(@Nullable LocalDateTime freeDefinedDate3)
Original property name from the Odata EDM: FreeDefinedDate3
freeDefinedDate3
- Date for Free Use 3public void setFreeDefinedDate4(@Nullable LocalDateTime freeDefinedDate4)
Original property name from the Odata EDM: FreeDefinedDate4
freeDefinedDate4
- Date for Free Use 4public void setFreeDefinedDate5(@Nullable LocalDateTime freeDefinedDate5)
Original property name from the Odata EDM: FreeDefinedDate5
freeDefinedDate5
- Date for Free Use 5public void setFreeDefinedDate6(@Nullable LocalDateTime freeDefinedDate6)
Original property name from the Odata EDM: FreeDefinedDate6
freeDefinedDate6
- Date for Free Use 6public void setCreationDateTime(@Nullable ZonedDateTime creationDateTime)
Original property name from the Odata EDM: CreationDateTime
creationDateTime
- Created On Timestamppublic void setLastChangeDateTime(@Nullable ZonedDateTime lastChangeDateTime)
Original property name from the Odata EDM: LastChangeDateTime
lastChangeDateTime
- Last Change Timestamppublic void setBatchExtWhseMgmtInternalId(@Nullable UUID batchExtWhseMgmtInternalId)
Original property name from the Odata EDM: BatchExtWhseMgmtInternalId
batchExtWhseMgmtInternalId
- Batch IDprotected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<Batch>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<Batch>
@Nonnull public static <T> BatchField<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> BatchField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<Batch>
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<Batch>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
VdmEntity
Note: Use with caution, as this can easily break the fetch calls on this entity. See the interface of the corresponding service for the default service path.
attachToService
in class VdmEntity<Batch>
servicePath
- Optional parameter. New service path to apply to this entity and any associated entities that were
previously fetched. If a null value is provided and the service path has never been set, then the
service path will be set to the default defined in the corresponding service interface.destination
- New destination to apply to this entity and any associated entities that were previously fetched.protected String getDefaultServicePath()
VdmEntity
getDefaultServicePath
in class VdmEntity<Batch>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<Batch>
@Nonnull public List<BatchCharc> fetchBatchCharc() 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.@Nonnull public List<BatchCharc> getBatchCharcOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
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.
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 io.vavr.control.Option<List<BatchCharc>> getBatchCharcIfPresent()
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
.
Option
with result state
empty
is returned.public void setBatchCharc(@Nonnull List<BatchCharc> value)
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.
value
- List of BatchCharc entities.public void addBatchCharc(BatchCharc... entity)
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.
entity
- Array of BatchCharc entities.@Nullable public BatchClass fetchBatchClass() 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 BatchClass getBatchClassOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
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.
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 io.vavr.control.Option<BatchClass> getBatchClassIfPresent()
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
.
Option
with result state empty
is returned.public void setBatchClass(BatchClass value)
value
- New BatchClass entity.@Nonnull public List<BatchPlant> fetchBatchPlant() 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.@Nonnull public List<BatchPlant> getBatchPlantOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
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.
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 io.vavr.control.Option<List<BatchPlant>> getBatchPlantIfPresent()
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
.
Option
with result state
empty
is returned.public void setBatchPlant(@Nonnull List<BatchPlant> value)
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.
value
- List of BatchPlant entities.public void addBatchPlant(BatchPlant... entity)
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.
entity
- Array of BatchPlant entities.@Nonnull public static Batch.BatchBuilder builder()
@Nullable public String getMaterial()
Original property name from the Odata EDM: Material
@Nullable public String getBatchIdentifyingPlant()
Original property name from the Odata EDM: BatchIdentifyingPlant
@Nullable public String getBatch()
Original property name from the Odata EDM: Batch
@Nullable public Boolean getBatchIsMarkedForDeletion()
Original property name from the Odata EDM: BatchIsMarkedForDeletion
@Nullable public Boolean getMatlBatchIsInRstrcdUseStock()
Original property name from the Odata EDM: MatlBatchIsInRstrcdUseStock
@Nullable public String getSupplier()
Original property name from the Odata EDM: Supplier
@Nullable public String getBatchBySupplier()
Original property name from the Odata EDM: BatchBySupplier
@Nullable public String getCountryOfOrigin()
Original property name from the Odata EDM: CountryOfOrigin
@Nullable public String getRegionOfOrigin()
Original property name from the Odata EDM: RegionOfOrigin
@Nullable public LocalDateTime getMatlBatchAvailabilityDate()
Original property name from the Odata EDM: MatlBatchAvailabilityDate
@Nullable public LocalDateTime getShelfLifeExpirationDate()
Original property name from the Odata EDM: ShelfLifeExpirationDate
@Nullable public LocalDateTime getManufactureDate()
Original property name from the Odata EDM: ManufactureDate
@Nullable public LocalDateTime getFreeDefinedDate1()
Original property name from the Odata EDM: FreeDefinedDate1
@Nullable public LocalDateTime getFreeDefinedDate2()
Original property name from the Odata EDM: FreeDefinedDate2
@Nullable public LocalDateTime getFreeDefinedDate3()
Original property name from the Odata EDM: FreeDefinedDate3
@Nullable public LocalDateTime getFreeDefinedDate4()
Original property name from the Odata EDM: FreeDefinedDate4
@Nullable public LocalDateTime getFreeDefinedDate5()
Original property name from the Odata EDM: FreeDefinedDate5
@Nullable public LocalDateTime getFreeDefinedDate6()
Original property name from the Odata EDM: FreeDefinedDate6
@Nullable public ZonedDateTime getCreationDateTime()
Original property name from the Odata EDM: CreationDateTime
@Nullable public ZonedDateTime getLastChangeDateTime()
Original property name from the Odata EDM: LastChangeDateTime
@Nullable public UUID getBatchExtWhseMgmtInternalId()
Original property name from the Odata EDM: BatchExtWhseMgmtInternalId
Copyright © 2021 SAP SE. All rights reserved.