Class ReservationDocumentHeader
Original entity name from the Odata EDM: A_ReservationDocumentHeaderType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ReservationDocumentHeader instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReservationDocumentHeaderSelectableSelector for all available fields of ReservationDocumentHeader.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the AssetNumber field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the AssetSubNumber field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the ControllingArea field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the CostCenter field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the Customer field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the GoodsMovementType field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the GoodsRecipientName field to query operations.static final ReservationDocumentHeaderField<Boolean>Use with available fluent helpers to apply the IsCheckedAgainstFactoryCal field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the IssuingOrReceivingPlant field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the IssuingOrReceivingStorageLoc field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the NetworkNumberForAcctAssgmt field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the OrderID field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the Reservation field to query operations.static final ReservationDocumentHeaderField<LocalDateTime>Use with available fluent helpers to apply the ReservationDate field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the SalesOrder field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the SalesOrderItem field to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the SalesOrderScheduleLine field to query operations.static final ReservationDocumentHeaderLink<ReservationDocumentItem>Use with available fluent helpers to apply the to_ReservationDocumentItem navigation property to query operations.static final ReservationDocumentHeaderField<String>Use with available fluent helpers to apply the WBSElement field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionReservationDocumentHeader(String reservation, String orderID, String goodsMovementType, String costCenter, String goodsRecipientName, LocalDateTime reservationDate, Boolean isCheckedAgainstFactoryCal, String customer, String wBSElement, String controllingArea, String salesOrder, String salesOrderItem, String salesOrderScheduleLine, String assetNumber, String assetSubNumber, String networkNumberForAcctAssgmt, String issuingOrReceivingPlant, String issuingOrReceivingStorageLoc, List<ReservationDocumentItem> toReservationDocumentItem) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated ReservationDocumentItem entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the ReservationDocumentItem entities (one to many) associated with this entity.static <T,DomainT>
ReservationDocumentHeaderField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> ReservationDocumentHeaderField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidConstraints: Not nullable, Maximum length: 12Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 10protected Stringprotected StringConstraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 12Constraints: noneConstraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 4getKey()Constraints: Not nullable, Maximum length: 12Constraints: Not nullable, Maximum length: 12(Key Field) Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Precision: 0io.vavr.control.Option<List<ReservationDocumentItem>>Retrieval of associated ReservationDocumentItem entities (one to many).Retrieval of associated ReservationDocumentItem entities (one to many).Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 6Constraints: Not nullable, Maximum length: 4getType()Constraints: Not nullable, Maximum length: 24inthashCode()voidsetAssetNumber(String assetNumber) Constraints: Not nullable, Maximum length: 12voidsetAssetSubNumber(String assetSubNumber) Constraints: Not nullable, Maximum length: 4voidsetControllingArea(String controllingArea) Constraints: Not nullable, Maximum length: 4voidsetCostCenter(String costCenter) Constraints: Not nullable, Maximum length: 10voidsetCustomer(String customer) Constraints: Not nullable, Maximum length: 10voidsetGoodsMovementType(String goodsMovementType) Constraints: Not nullable, Maximum length: 3voidsetGoodsRecipientName(String goodsRecipientName) Constraints: Not nullable, Maximum length: 12voidsetIsCheckedAgainstFactoryCal(Boolean isCheckedAgainstFactoryCal) Constraints: nonevoidsetIssuingOrReceivingPlant(String issuingOrReceivingPlant) Constraints: Not nullable, Maximum length: 4voidsetIssuingOrReceivingStorageLoc(String issuingOrReceivingStorageLoc) Constraints: Not nullable, Maximum length: 4voidsetNetworkNumberForAcctAssgmt(String networkNumberForAcctAssgmt) Constraints: Not nullable, Maximum length: 12voidsetOrderID(String orderID) Constraints: Not nullable, Maximum length: 12voidsetReservation(String reservation) (Key Field) Constraints: Not nullable, Maximum length: 10voidsetReservationDate(LocalDateTime reservationDate) Constraints: Not nullable, Precision: 0voidOverwrites the list of associated ReservationDocumentItem entities for the loaded navigation property to_ReservationDocumentItem.voidsetSalesOrder(String salesOrder) Constraints: Not nullable, Maximum length: 10voidsetSalesOrderItem(String salesOrderItem) Constraints: Not nullable, Maximum length: 6voidsetSalesOrderScheduleLine(String salesOrderScheduleLine) Constraints: Not nullable, Maximum length: 4protected voidsetServicePathForFetch(String servicePathForFetch) voidsetWBSElement(String wBSElement) Constraints: Not nullable, Maximum length: 24toString()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 ReservationDocumentHeader. -
RESERVATION
Use with available fluent helpers to apply the Reservation field to query operations. -
ORDER_ID
Use with available fluent helpers to apply the OrderID field to query operations. -
GOODS_MOVEMENT_TYPE
Use with available fluent helpers to apply the GoodsMovementType field to query operations. -
COST_CENTER
Use with available fluent helpers to apply the CostCenter field to query operations. -
GOODS_RECIPIENT_NAME
Use with available fluent helpers to apply the GoodsRecipientName field to query operations. -
RESERVATION_DATE
Use with available fluent helpers to apply the ReservationDate field to query operations. -
IS_CHECKED_AGAINST_FACTORY_CAL
Use with available fluent helpers to apply the IsCheckedAgainstFactoryCal field to query operations. -
CUSTOMER
Use with available fluent helpers to apply the Customer field to query operations. -
WBS_ELEMENT
Use with available fluent helpers to apply the WBSElement field to query operations. -
CONTROLLING_AREA
Use with available fluent helpers to apply the ControllingArea field to query operations. -
SALES_ORDER
Use with available fluent helpers to apply the SalesOrder field to query operations. -
SALES_ORDER_ITEM
Use with available fluent helpers to apply the SalesOrderItem field to query operations. -
SALES_ORDER_SCHEDULE_LINE
Use with available fluent helpers to apply the SalesOrderScheduleLine field to query operations. -
ASSET_NUMBER
Use with available fluent helpers to apply the AssetNumber field to query operations. -
ASSET_SUB_NUMBER
Use with available fluent helpers to apply the AssetSubNumber field to query operations. -
NETWORK_NUMBER_FOR_ACCT_ASSGMT
Use with available fluent helpers to apply the NetworkNumberForAcctAssgmt field to query operations. -
ISSUING_OR_RECEIVING_PLANT
Use with available fluent helpers to apply the IssuingOrReceivingPlant field to query operations. -
ISSUING_OR_RECEIVING_STORAGE_LOC
Use with available fluent helpers to apply the IssuingOrReceivingStorageLoc field to query operations. -
TO_RESERVATION_DOCUMENT_ITEM
public static final ReservationDocumentHeaderLink<ReservationDocumentItem> TO_RESERVATION_DOCUMENT_ITEMUse with available fluent helpers to apply the to_ReservationDocumentItem navigation property to query operations.
-
-
Constructor Details
-
ReservationDocumentHeader
public ReservationDocumentHeader() -
ReservationDocumentHeader
public ReservationDocumentHeader(@Nullable String reservation, @Nullable String orderID, @Nullable String goodsMovementType, @Nullable String costCenter, @Nullable String goodsRecipientName, @Nullable LocalDateTime reservationDate, @Nullable Boolean isCheckedAgainstFactoryCal, @Nullable String customer, @Nullable String wBSElement, @Nullable String controllingArea, @Nullable String salesOrder, @Nullable String salesOrderItem, @Nullable String salesOrderScheduleLine, @Nullable String assetNumber, @Nullable String assetSubNumber, @Nullable String networkNumberForAcctAssgmt, @Nullable String issuingOrReceivingPlant, @Nullable String issuingOrReceivingStorageLoc, List<ReservationDocumentItem> toReservationDocumentItem)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ReservationDocumentHeader>
-
setReservation
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Reservation
- Parameters:
reservation- Number of reservation/dependent requirements
-
setOrderID
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: OrderID
- Parameters:
orderID- Order Number
-
setGoodsMovementType
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: GoodsMovementType
- Parameters:
goodsMovementType- Movement Type (Inventory Management)
-
setCostCenter
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: CostCenter
- Parameters:
costCenter- Cost Center
-
setGoodsRecipientName
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: GoodsRecipientName
- Parameters:
goodsRecipientName- Goods Recipient
-
setReservationDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ReservationDate
- Parameters:
reservationDate- Base date for reservation
-
setIsCheckedAgainstFactoryCal
Constraints: noneOriginal property name from the Odata EDM: IsCheckedAgainstFactoryCal
- Parameters:
isCheckedAgainstFactoryCal- Check date against factory calendar
-
setCustomer
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Customer
- Parameters:
customer- Account number of customer
-
setWBSElement
Constraints: Not nullable, Maximum length: 24Original property name from the Odata EDM: WBSElement
- Parameters:
wBSElement- Work Breakdown Structure Element (WBS Element)
-
setControllingArea
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ControllingArea
- Parameters:
controllingArea- Controlling Area
-
setSalesOrder
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: SalesOrder
- Parameters:
salesOrder- Sales Order Number
-
setSalesOrderItem
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: SalesOrderItem
- Parameters:
salesOrderItem- Item Number in Sales Order
-
setSalesOrderScheduleLine
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: SalesOrderScheduleLine
- Parameters:
salesOrderScheduleLine- Delivery schedule for sales order
-
setAssetNumber
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: AssetNumber
- Parameters:
assetNumber- Main Asset Number
-
setAssetSubNumber
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: AssetSubNumber
- Parameters:
assetSubNumber- Asset Subnumber
-
setNetworkNumberForAcctAssgmt
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: NetworkNumberForAcctAssgmt
- Parameters:
networkNumberForAcctAssgmt- Network Number for Account Assignment
-
setIssuingOrReceivingPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: IssuingOrReceivingPlant
- Parameters:
issuingOrReceivingPlant- Receiving plant/issuing plant
-
setIssuingOrReceivingStorageLoc
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: IssuingOrReceivingStorageLoc
- Parameters:
issuingOrReceivingStorageLoc- Receiving/issuing storage location
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ReservationDocumentHeader>
-
getKey
- Overrides:
getKeyin classVdmObject<ReservationDocumentHeader>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ReservationDocumentHeader>
-
fromMap
- Overrides:
fromMapin classVdmObject<ReservationDocumentHeader>
-
field
@Nonnull public static <T> ReservationDocumentHeaderField<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> ReservationDocumentHeaderField<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<ReservationDocumentHeader>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<ReservationDocumentHeader>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<ReservationDocumentHeader>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ReservationDocumentHeader>
-
fetchReservationDocumentItem
Fetches the ReservationDocumentItem entities (one to many) associated with this entity. This corresponds to the OData navigation property to_ReservationDocumentItem.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated ReservationDocumentItem 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.
-
getReservationDocumentItemOrFetch
Retrieval of associated ReservationDocumentItem entities (one to many). This corresponds to the OData navigation property to_ReservationDocumentItem.If the navigation property to_ReservationDocumentItem of a queried ReservationDocumentHeader 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 ReservationDocumentItem 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.
-
getReservationDocumentItemIfPresent
@Nonnull public io.vavr.control.Option<List<ReservationDocumentItem>> getReservationDocumentItemIfPresent()Retrieval of associated ReservationDocumentItem entities (one to many). This corresponds to the OData navigation property to_ReservationDocumentItem.If the navigation property for an entity ReservationDocumentHeader 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_ReservationDocumentItem is already loaded, the
result will contain the ReservationDocumentItem entities. If not, an
Optionwith result stateemptyis returned.
-
setReservationDocumentItem
Overwrites the list of associated ReservationDocumentItem entities for the loaded navigation property to_ReservationDocumentItem.If the navigation property to_ReservationDocumentItem of a queried ReservationDocumentHeader 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 ReservationDocumentItem entities.
-
addReservationDocumentItem
Adds elements to the list of associated ReservationDocumentItem entities. This corresponds to the OData navigation property to_ReservationDocumentItem.If the navigation property to_ReservationDocumentItem of a queried ReservationDocumentHeader 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 ReservationDocumentItem entities.
-
builder
-
getReservation
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Reservation
- Returns:
- Number of reservation/dependent requirements
-
getOrderID
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: OrderID
- Returns:
- Order Number
-
getGoodsMovementType
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: GoodsMovementType
- Returns:
- Movement Type (Inventory Management)
-
getCostCenter
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: CostCenter
- Returns:
- Cost Center
-
getGoodsRecipientName
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: GoodsRecipientName
- Returns:
- Goods Recipient
-
getReservationDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ReservationDate
- Returns:
- Base date for reservation
-
getIsCheckedAgainstFactoryCal
Constraints: noneOriginal property name from the Odata EDM: IsCheckedAgainstFactoryCal
- Returns:
- Check date against factory calendar
-
getCustomer
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Customer
- Returns:
- Account number of customer
-
getWBSElement
Constraints: Not nullable, Maximum length: 24Original property name from the Odata EDM: WBSElement
- Returns:
- Work Breakdown Structure Element (WBS Element)
-
getControllingArea
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ControllingArea
- Returns:
- Controlling Area
-
getSalesOrder
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: SalesOrder
- Returns:
- Sales Order Number
-
getSalesOrderItem
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: SalesOrderItem
- Returns:
- Item Number in Sales Order
-
getSalesOrderScheduleLine
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: SalesOrderScheduleLine
- Returns:
- Delivery schedule for sales order
-
getAssetNumber
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: AssetNumber
- Returns:
- Main Asset Number
-
getAssetSubNumber
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: AssetSubNumber
- Returns:
- Asset Subnumber
-
getNetworkNumberForAcctAssgmt
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: NetworkNumberForAcctAssgmt
- Returns:
- Network Number for Account Assignment
-
getIssuingOrReceivingPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: IssuingOrReceivingPlant
- Returns:
- Receiving plant/issuing plant
-
getIssuingOrReceivingStorageLoc
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: IssuingOrReceivingStorageLoc
- Returns:
- Receiving/issuing storage location
-
toString
- Overrides:
toStringin classVdmObject<ReservationDocumentHeader>
-
equals
- Overrides:
equalsin classVdmEntity<ReservationDocumentHeader>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ReservationDocumentHeader>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ReservationDocumentHeader>
-