Class FreightAgreement
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: FreightAgreement_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of FreightAgreement instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<FreightAgreement,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<FreightAgreement>Selector for all available fields of FreightAgreement.Use with available request builders to apply the _FreightAgreementItem navigation property to query operations.Use with available request builders to apply the _FreightAgreementOrganization navigation property to query operations.Use with available request builders to apply the _FreightAgreementParty navigation property to query operations.static final SimpleProperty.String<FreightAgreement>static final SimpleProperty.String<FreightAgreement>static final SimpleProperty.String<FreightAgreement>static final SimpleProperty.Date<FreightAgreement>static final SimpleProperty.Date<FreightAgreement>static final SimpleProperty.DateTime<FreightAgreement>static final SimpleProperty.DateTime<FreightAgreement>static final SimpleProperty.String<FreightAgreement>static final SimpleProperty.String<FreightAgreement>static final SimpleProperty.String<FreightAgreement>static final SimpleProperty.String<FreightAgreement>static final SimpleProperty.String<FreightAgreement>static final SimpleProperty.String<FreightAgreement>static final SimpleProperty.String<FreightAgreement>static final SimpleProperty.Guid<FreightAgreement>static final SimpleProperty.String<FreightAgreement>static final SimpleProperty.String<FreightAgreement>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionFreightAgreement(UUID transportationAgreementUUID, String transportationAgreement, String transportationAgreementDesc, OffsetDateTime transpAgrmtChangedOnDateTime, String transpAgreementCreatedBy, OffsetDateTime transpAgrmtCreatedOnDateTime, String transpAgreementChangedBy, String transpExternalAgreement, String transportationAgreementType, LocalDate transpAgreementValidFrom, LocalDate transpAgreementValidTo, String transpAgreementTimeZone, String transpAgrmtDimnWgtProfile, String transportationAgreementDocCrcy, String transportationShippingType, String transportationMode, String transportationAgreementStatus, Collection<SAP__Message> _Messages, List<FreightAgreementItem> to_FreightAgreementItem, List<TFreightAgreementOrganization> to_FreightAgreementOrganization, List<FreightAgreementParty> to_FreightAgreementParty) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFreightAgreementItem(FreightAgreementItem... entity) Adds elements to the list of associated FreightAgreementItem entities.voidAdds elements to the list of associated TFreightAgreementOrganization entities.voidaddFreightAgreementParty(FreightAgreementParty... entity) Adds elements to the list of associated FreightAgreementParty entities.builder()protected booleanAction that can be applied to any entity object of this class.booleanprotected voidConstraints: Not nullableprotected Stringprotected Stringio.vavr.control.Option<List<FreightAgreementItem>>Retrieval of associated FreightAgreementItem entities (one to many).io.vavr.control.Option<List<TFreightAgreementOrganization>>Retrieval of associated TFreightAgreementOrganization entities (one to many).io.vavr.control.Option<List<FreightAgreementParty>>Retrieval of associated FreightAgreementParty entities (one to many).protected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 12Constraints: Not nullable, Maximum length: 12Constraints: Not nullable, Maximum length: 6Constraints: Not nullableConstraints: Not nullableConstraints: NullableConstraints: NullableConstraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 35Constraints: Not nullable, Maximum length: 20Constraints: Not nullable, Maximum length: 75Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 2Constraints: Not nullable, Maximum length: 4(Key Field) Constraints: Not nullableConstraints: Not nullable, Maximum length: 2Constraints: Not nullable, Maximum length: 3getType()inthashCode()Action that can be applied to any entity object of this class.voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidOverwrites the list of associated FreightAgreementItem entities for the loaded navigation property _FreightAgreementItem.voidOverwrites the list of associated TFreightAgreementOrganization entities for the loaded navigation property _FreightAgreementOrganization.voidOverwrites the list of associated FreightAgreementParty entities for the loaded navigation property _FreightAgreementParty.voidsetTranspAgreementChangedBy(String transpAgreementChangedBy) Constraints: Not nullable, Maximum length: 12voidsetTranspAgreementCreatedBy(String transpAgreementCreatedBy) Constraints: Not nullable, Maximum length: 12voidsetTranspAgreementTimeZone(String transpAgreementTimeZone) Constraints: Not nullable, Maximum length: 6voidsetTranspAgreementValidFrom(LocalDate transpAgreementValidFrom) Constraints: Not nullablevoidsetTranspAgreementValidTo(LocalDate transpAgreementValidTo) Constraints: Not nullablevoidsetTranspAgrmtChangedOnDateTime(OffsetDateTime transpAgrmtChangedOnDateTime) Constraints: NullablevoidsetTranspAgrmtCreatedOnDateTime(OffsetDateTime transpAgrmtCreatedOnDateTime) Constraints: NullablevoidsetTranspAgrmtDimnWgtProfile(String transpAgrmtDimnWgtProfile) Constraints: Not nullable, Maximum length: 10voidsetTranspExternalAgreement(String transpExternalAgreement) Constraints: Not nullable, Maximum length: 35voidsetTransportationAgreement(String transportationAgreement) Constraints: Not nullable, Maximum length: 20voidsetTransportationAgreementDesc(String transportationAgreementDesc) Constraints: Not nullable, Maximum length: 75voidsetTransportationAgreementDocCrcy(String transportationAgreementDocCrcy) Constraints: Not nullable, Maximum length: 3voidsetTransportationAgreementStatus(String transportationAgreementStatus) Constraints: Not nullable, Maximum length: 2voidsetTransportationAgreementType(String transportationAgreementType) Constraints: Not nullable, Maximum length: 4voidsetTransportationAgreementUUID(UUID transportationAgreementUUID) (Key Field) Constraints: Not nullablevoidsetTransportationMode(String transportationMode) Constraints: Not nullable, Maximum length: 2voidsetTransportationShippingType(String transportationShippingType) Constraints: Not nullable, Maximum length: 3toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
getAnnotationProperties, 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 FreightAgreement. -
TRANSPORTATION_AGREEMENT_UUID
-
TRANSPORTATION_AGREEMENT
-
TRANSPORTATION_AGREEMENT_DESC
-
TRANSP_AGRMT_CHANGED_ON_DATE_TIME
-
TRANSP_AGREEMENT_CREATED_BY
-
TRANSP_AGRMT_CREATED_ON_DATE_TIME
-
TRANSP_AGREEMENT_CHANGED_BY
-
TRANSP_EXTERNAL_AGREEMENT
-
TRANSPORTATION_AGREEMENT_TYPE
-
TRANSP_AGREEMENT_VALID_FROM
-
TRANSP_AGREEMENT_VALID_TO
-
TRANSP_AGREEMENT_TIME_ZONE
-
TRANSP_AGRMT_DIMN_WGT_PROFILE
-
TRANSPORTATION_AGREEMENT_DOC_CRCY
-
TRANSPORTATION_SHIPPING_TYPE
-
TRANSPORTATION_MODE
-
TRANSPORTATION_AGREEMENT_STATUS
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__FREIGHT_AGREEMENT_ITEM
public static final NavigationProperty.Collection<FreightAgreement,FreightAgreementItem> TO__FREIGHT_AGREEMENT_ITEMUse with available request builders to apply the _FreightAgreementItem navigation property to query operations. -
TO__FREIGHT_AGREEMENT_ORGANIZATION
public static final NavigationProperty.Collection<FreightAgreement,TFreightAgreementOrganization> TO__FREIGHT_AGREEMENT_ORGANIZATIONUse with available request builders to apply the _FreightAgreementOrganization navigation property to query operations. -
TO__FREIGHT_AGREEMENT_PARTY
public static final NavigationProperty.Collection<FreightAgreement,FreightAgreementParty> TO__FREIGHT_AGREEMENT_PARTYUse with available request builders to apply the _FreightAgreementParty navigation property to query operations.
-
-
Constructor Details
-
FreightAgreement
public FreightAgreement() -
FreightAgreement
public FreightAgreement(@Nullable UUID transportationAgreementUUID, @Nullable String transportationAgreement, @Nullable String transportationAgreementDesc, @Nullable OffsetDateTime transpAgrmtChangedOnDateTime, @Nullable String transpAgreementCreatedBy, @Nullable OffsetDateTime transpAgrmtCreatedOnDateTime, @Nullable String transpAgreementChangedBy, @Nullable String transpExternalAgreement, @Nullable String transportationAgreementType, @Nullable LocalDate transpAgreementValidFrom, @Nullable LocalDate transpAgreementValidTo, @Nullable String transpAgreementTimeZone, @Nullable String transpAgrmtDimnWgtProfile, @Nullable String transportationAgreementDocCrcy, @Nullable String transportationShippingType, @Nullable String transportationMode, @Nullable String transportationAgreementStatus, @Nullable Collection<SAP__Message> _Messages, List<FreightAgreementItem> to_FreightAgreementItem, List<TFreightAgreementOrganization> to_FreightAgreementOrganization, List<FreightAgreementParty> to_FreightAgreementParty)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<FreightAgreement>
-
setTransportationAgreementUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: TransportationAgreementUUID
- Parameters:
transportationAgreementUUID- Transportation Agreement UUID
-
setTransportationAgreement
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: TransportationAgreement
- Parameters:
transportationAgreement- Agreement
-
setTransportationAgreementDesc
Constraints: Not nullable, Maximum length: 75Original property name from the Odata EDM: TransportationAgreementDesc
- Parameters:
transportationAgreementDesc- Description
-
setTranspAgrmtChangedOnDateTime
Constraints: NullableOriginal property name from the Odata EDM: TranspAgrmtChangedOnDateTime
- Parameters:
transpAgrmtChangedOnDateTime- Agreement Changed On
-
setTranspAgreementCreatedBy
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: TranspAgreementCreatedBy
- Parameters:
transpAgreementCreatedBy- Created By
-
setTranspAgrmtCreatedOnDateTime
Constraints: NullableOriginal property name from the Odata EDM: TranspAgrmtCreatedOnDateTime
- Parameters:
transpAgrmtCreatedOnDateTime- Agreement Created On
-
setTranspAgreementChangedBy
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: TranspAgreementChangedBy
- Parameters:
transpAgreementChangedBy- Changed By
-
setTranspExternalAgreement
Constraints: Not nullable, Maximum length: 35Original property name from the Odata EDM: TranspExternalAgreement
- Parameters:
transpExternalAgreement- External Reference Number
-
setTransportationAgreementType
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: TransportationAgreementType
- Parameters:
transportationAgreementType- Agreement Type
-
setTranspAgreementValidFrom
Constraints: Not nullableOriginal property name from the Odata EDM: TranspAgreementValidFrom
- Parameters:
transpAgreementValidFrom- Start Date of Validity
-
setTranspAgreementValidTo
Constraints: Not nullableOriginal property name from the Odata EDM: TranspAgreementValidTo
- Parameters:
transpAgreementValidTo- End Date of Validity
-
setTranspAgreementTimeZone
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: TranspAgreementTimeZone
- Parameters:
transpAgreementTimeZone- Time Zone
-
setTranspAgrmtDimnWgtProfile
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: TranspAgrmtDimnWgtProfile
- Parameters:
transpAgrmtDimnWgtProfile- Dimensional Weight Profile
-
setTransportationAgreementDocCrcy
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: TransportationAgreementDocCrcy
- Parameters:
transportationAgreementDocCrcy- Document Currency
-
setTransportationShippingType
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: TransportationShippingType
- Parameters:
transportationShippingType- Shipping Type
-
setTransportationMode
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: TransportationMode
- Parameters:
transportationMode- Transportation Mode
-
setTransportationAgreementStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: TransportationAgreementStatus
- Parameters:
transportationAgreementStatus- Transportation Agreement Status
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<FreightAgreement>
-
getKey
- Overrides:
getKeyin classVdmObject<FreightAgreement>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<FreightAgreement>
-
fromMap
- Overrides:
fromMapin classVdmObject<FreightAgreement>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<FreightAgreement>
-
getFreightAgreementItemIfPresent
@Nonnull public io.vavr.control.Option<List<FreightAgreementItem>> getFreightAgreementItemIfPresent()Retrieval of associated FreightAgreementItem entities (one to many). This corresponds to the OData navigation property _FreightAgreementItem.If the navigation property for an entity FreightAgreement 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 _FreightAgreementItem is already loaded, the result
will contain the FreightAgreementItem entities. If not, an
Optionwith result stateemptyis returned.
-
setFreightAgreementItem
Overwrites the list of associated FreightAgreementItem entities for the loaded navigation property _FreightAgreementItem.If the navigation property _FreightAgreementItem of a queried FreightAgreement 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 FreightAgreementItem entities.
-
addFreightAgreementItem
Adds elements to the list of associated FreightAgreementItem entities. This corresponds to the OData navigation property _FreightAgreementItem.If the navigation property _FreightAgreementItem of a queried FreightAgreement 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 FreightAgreementItem entities.
-
getFreightAgreementOrganizationIfPresent
@Nonnull public io.vavr.control.Option<List<TFreightAgreementOrganization>> getFreightAgreementOrganizationIfPresent()Retrieval of associated TFreightAgreementOrganization entities (one to many). This corresponds to the OData navigation property _FreightAgreementOrganization.If the navigation property for an entity FreightAgreement 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 _FreightAgreementOrganization is already loaded, the
result will contain the TFreightAgreementOrganization entities. If not, an
Optionwith result stateemptyis returned.
-
setFreightAgreementOrganization
Overwrites the list of associated TFreightAgreementOrganization entities for the loaded navigation property _FreightAgreementOrganization.If the navigation property _FreightAgreementOrganization of a queried FreightAgreement 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 TFreightAgreementOrganization entities.
-
addFreightAgreementOrganization
Adds elements to the list of associated TFreightAgreementOrganization entities. This corresponds to the OData navigation property _FreightAgreementOrganization.If the navigation property _FreightAgreementOrganization of a queried FreightAgreement 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 TFreightAgreementOrganization entities.
-
getFreightAgreementPartyIfPresent
@Nonnull public io.vavr.control.Option<List<FreightAgreementParty>> getFreightAgreementPartyIfPresent()Retrieval of associated FreightAgreementParty entities (one to many). This corresponds to the OData navigation property _FreightAgreementParty.If the navigation property for an entity FreightAgreement 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 _FreightAgreementParty is already loaded, the result
will contain the FreightAgreementParty entities. If not, an
Optionwith result stateemptyis returned.
-
setFreightAgreementParty
Overwrites the list of associated FreightAgreementParty entities for the loaded navigation property _FreightAgreementParty.If the navigation property _FreightAgreementParty of a queried FreightAgreement 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 FreightAgreementParty entities.
-
addFreightAgreementParty
Adds elements to the list of associated FreightAgreementParty entities. This corresponds to the OData navigation property _FreightAgreementParty.If the navigation property _FreightAgreementParty of a queried FreightAgreement 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 FreightAgreementParty entities.
-
copyFreightAgreement
@Nonnull public static BoundAction.SingleToSingle<FreightAgreement,FreightAgreement> copyFreightAgreement()Action that can be applied to any entity object of this class.- Returns:
- Action object prepared with the given parameters to be applied to any entity object of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
releaseFreightAgreement
@Nonnull public static BoundAction.SingleToSingle<FreightAgreement,FreightAgreement> releaseFreightAgreement()Action that can be applied to any entity object of this class.- Returns:
- Action object prepared with the given parameters to be applied to any entity object of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
builder
-
getTransportationAgreementUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: TransportationAgreementUUID
- Returns:
- Transportation Agreement UUID
-
getTransportationAgreement
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: TransportationAgreement
- Returns:
- Agreement
-
getTransportationAgreementDesc
Constraints: Not nullable, Maximum length: 75Original property name from the Odata EDM: TransportationAgreementDesc
- Returns:
- Description
-
getTranspAgrmtChangedOnDateTime
Constraints: NullableOriginal property name from the Odata EDM: TranspAgrmtChangedOnDateTime
- Returns:
- Agreement Changed On
-
getTranspAgreementCreatedBy
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: TranspAgreementCreatedBy
- Returns:
- Created By
-
getTranspAgrmtCreatedOnDateTime
Constraints: NullableOriginal property name from the Odata EDM: TranspAgrmtCreatedOnDateTime
- Returns:
- Agreement Created On
-
getTranspAgreementChangedBy
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: TranspAgreementChangedBy
- Returns:
- Changed By
-
getTranspExternalAgreement
Constraints: Not nullable, Maximum length: 35Original property name from the Odata EDM: TranspExternalAgreement
- Returns:
- External Reference Number
-
getTransportationAgreementType
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: TransportationAgreementType
- Returns:
- Agreement Type
-
getTranspAgreementValidFrom
Constraints: Not nullableOriginal property name from the Odata EDM: TranspAgreementValidFrom
- Returns:
- Start Date of Validity
-
getTranspAgreementValidTo
Constraints: Not nullableOriginal property name from the Odata EDM: TranspAgreementValidTo
- Returns:
- End Date of Validity
-
getTranspAgreementTimeZone
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: TranspAgreementTimeZone
- Returns:
- Time Zone
-
getTranspAgrmtDimnWgtProfile
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: TranspAgrmtDimnWgtProfile
- Returns:
- Dimensional Weight Profile
-
getTransportationAgreementDocCrcy
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: TransportationAgreementDocCrcy
- Returns:
- Document Currency
-
getTransportationShippingType
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: TransportationShippingType
- Returns:
- Shipping Type
-
getTransportationMode
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: TransportationMode
- Returns:
- Transportation Mode
-
getTransportationAgreementStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: TransportationAgreementStatus
- Returns:
- Transportation Agreement Status
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<FreightAgreement>
-
equals
- Overrides:
equalsin classVdmEntity<FreightAgreement>
-
canEqual
- Overrides:
canEqualin classVdmEntity<FreightAgreement>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<FreightAgreement>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<FreightAgreement>
-