Class TranspRateTableValidity
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: TranspRateTableValidity_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of TranspRateTableValidity instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<TranspRateTableValidity,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<TranspRateTableValidity>Selector for all available fields of TranspRateTableValidity.Use with available request builders to apply the _TranspRateTableCalcRule navigation property to query operations.Use with available request builders to apply the _TranspRateTableRate navigation property to query operations.Use with available request builders to apply the _TransportationRateTable navigation property to query operations.static final SimpleProperty.Guid<TranspRateTableValidity>static final SimpleProperty.String<TranspRateTableValidity>static final SimpleProperty.String<TranspRateTableValidity>static final SimpleProperty.Date<TranspRateTableValidity>static final SimpleProperty.String<TranspRateTableValidity>static final SimpleProperty.Date<TranspRateTableValidity>static final SimpleProperty.Guid<TranspRateTableValidity>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionTranspRateTableValidity(UUID transpRateTableValidityUUID, UUID transportationRateTableUUID, String transpRateTblValidityCurrency, String transpRateTblValdtyLfcycStatus, LocalDate transpRateTblValidityEndDate, LocalDate transpRateTblValidityStartDate, String transpRateTblValidityPctUnit, Collection<SAP__Message> _Messages, TransportationRateTable to_TransportationRateTable, List<TranspRateTableCalcRule> to_TranspRateTableCalcRule, List<TranspRateTableRate> to_TranspRateTableRate) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated TranspRateTableCalcRule entities.voidaddTranspRateTableRate(TranspRateTableRate... entity) Adds elements to the list of associated TranspRateTableRate entities.builder()protected booleancopyValidityForRateTable(LocalDate transpRateValidityCpyStartDate, LocalDate transpRateValidityCpyEndDate) Action that can be applied to any entity object of this class.booleanprotected voidConstraints: Not nullableprotected Stringprotected Stringprotected ODataEntityKeygetKey()io.vavr.control.Option<TransportationRateTable>Retrieval of associated TransportationRateTable entity (one to one).Constraints: Not nullableio.vavr.control.Option<List<TranspRateTableCalcRule>>Retrieval of associated TranspRateTableCalcRule entities (one to many).io.vavr.control.Option<List<TranspRateTableRate>>Retrieval of associated TranspRateTableRate entities (one to many).(Key Field) Constraints: Not nullableConstraints: Not nullable, Maximum length: 2Constraints: Not nullable, Maximum length: 3Constraints: NullableConstraints: Not nullable, Maximum length: 3Constraints: NullablegetType()inthashCode()Action that can be applied to any entity object of this class.voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidOverwrites the associated TransportationRateTable entity for the loaded navigation property _TransportationRateTable.voidsetTransportationRateTableUUID(UUID transportationRateTableUUID) Constraints: Not nullablevoidOverwrites the list of associated TranspRateTableCalcRule entities for the loaded navigation property _TranspRateTableCalcRule.voidOverwrites the list of associated TranspRateTableRate entities for the loaded navigation property _TranspRateTableRate.voidsetTranspRateTableValidityUUID(UUID transpRateTableValidityUUID) (Key Field) Constraints: Not nullablevoidsetTranspRateTblValdtyLfcycStatus(String transpRateTblValdtyLfcycStatus) Constraints: Not nullable, Maximum length: 2voidsetTranspRateTblValidityCurrency(String transpRateTblValidityCurrency) Constraints: Not nullable, Maximum length: 3voidsetTranspRateTblValidityEndDate(LocalDate transpRateTblValidityEndDate) Constraints: NullablevoidsetTranspRateTblValidityPctUnit(String transpRateTblValidityPctUnit) Constraints: Not nullable, Maximum length: 3voidsetTranspRateTblValidityStartDate(LocalDate transpRateTblValidityStartDate) Constraints: NullableAction that can be applied to any entity object of this class.toString()updateTransportationRates(BigDecimal transpRateIncrDecrInPct, BigDecimal transpRateAmountInRateCrcy, String transpRateValidityCurrency, String transpRateSignIncrDecr) Action that can be applied to any entity object of this class.updateTransportationRates(BigDecimal transpRateIncrDecrInPct, BigDecimal transpRateAmountInRateCrcy, String transpRateValidityCurrency, String transpRateSignIncrDecr, String transpRateValidityPctUnit) Action that can be applied to any entity object of this class.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 TranspRateTableValidity. -
TRANSP_RATE_TABLE_VALIDITY_UUID
-
TRANSPORTATION_RATE_TABLE_UUID
-
TRANSP_RATE_TBL_VALIDITY_CURRENCY
public static final SimpleProperty.String<TranspRateTableValidity> TRANSP_RATE_TBL_VALIDITY_CURRENCY -
TRANSP_RATE_TBL_VALDTY_LFCYC_STATUS
public static final SimpleProperty.String<TranspRateTableValidity> TRANSP_RATE_TBL_VALDTY_LFCYC_STATUS -
TRANSP_RATE_TBL_VALIDITY_END_DATE
-
TRANSP_RATE_TBL_VALIDITY_START_DATE
public static final SimpleProperty.Date<TranspRateTableValidity> TRANSP_RATE_TBL_VALIDITY_START_DATE -
TRANSP_RATE_TBL_VALIDITY_PCT_UNIT
public static final SimpleProperty.String<TranspRateTableValidity> TRANSP_RATE_TBL_VALIDITY_PCT_UNIT -
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__TRANSPORTATION_RATE_TABLE
public static final NavigationProperty.Single<TranspRateTableValidity,TransportationRateTable> TO__TRANSPORTATION_RATE_TABLEUse with available request builders to apply the _TransportationRateTable navigation property to query operations. -
TO__TRANSP_RATE_TABLE_CALC_RULE
public static final NavigationProperty.Collection<TranspRateTableValidity,TranspRateTableCalcRule> TO__TRANSP_RATE_TABLE_CALC_RULEUse with available request builders to apply the _TranspRateTableCalcRule navigation property to query operations. -
TO__TRANSP_RATE_TABLE_RATE
public static final NavigationProperty.Collection<TranspRateTableValidity,TranspRateTableRate> TO__TRANSP_RATE_TABLE_RATEUse with available request builders to apply the _TranspRateTableRate navigation property to query operations.
-
-
Constructor Details
-
TranspRateTableValidity
public TranspRateTableValidity() -
TranspRateTableValidity
public TranspRateTableValidity(@Nullable UUID transpRateTableValidityUUID, @Nullable UUID transportationRateTableUUID, @Nullable String transpRateTblValidityCurrency, @Nullable String transpRateTblValdtyLfcycStatus, @Nullable LocalDate transpRateTblValidityEndDate, @Nullable LocalDate transpRateTblValidityStartDate, @Nullable String transpRateTblValidityPctUnit, @Nullable Collection<SAP__Message> _Messages, @Nullable TransportationRateTable to_TransportationRateTable, List<TranspRateTableCalcRule> to_TranspRateTableCalcRule, List<TranspRateTableRate> to_TranspRateTableRate)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<TranspRateTableValidity>
-
setTranspRateTableValidityUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: TranspRateTableValidityUUID
- Parameters:
transpRateTableValidityUUID- Transp Rate Table Validity UUID
-
setTransportationRateTableUUID
Constraints: Not nullableOriginal property name from the Odata EDM: TransportationRateTableUUID
- Parameters:
transportationRateTableUUID- Transportation Rate Table UUID
-
setTranspRateTblValidityCurrency
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: TranspRateTblValidityCurrency
- Parameters:
transpRateTblValidityCurrency- Currency
-
setTranspRateTblValdtyLfcycStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: TranspRateTblValdtyLfcycStatus
- Parameters:
transpRateTblValdtyLfcycStatus- Life Cycle Status
-
setTranspRateTblValidityEndDate
Constraints: NullableOriginal property name from the Odata EDM: TranspRateTblValidityEndDate
- Parameters:
transpRateTblValidityEndDate- End Date of Validity
-
setTranspRateTblValidityStartDate
Constraints: NullableOriginal property name from the Odata EDM: TranspRateTblValidityStartDate
- Parameters:
transpRateTblValidityStartDate- Start Date of Validity
-
setTranspRateTblValidityPctUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: TranspRateTblValidityPctUnit
- Parameters:
transpRateTblValidityPctUnit- Unit of Measurement
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<TranspRateTableValidity>
-
getKey
- Overrides:
getKeyin classVdmObject<TranspRateTableValidity>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<TranspRateTableValidity>
-
fromMap
- Overrides:
fromMapin classVdmObject<TranspRateTableValidity>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<TranspRateTableValidity>
-
getTransportationRateTableIfPresent
@Nonnull public io.vavr.control.Option<TransportationRateTable> getTransportationRateTableIfPresent()Retrieval of associated TransportationRateTable entity (one to one). This corresponds to the OData navigation property _TransportationRateTable.If the navigation property for an entity TranspRateTableValidity 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 _TransportationRateTable is already loaded, the result
will contain the TransportationRateTable entity. If not, an
Optionwith result stateemptyis returned.
-
setTransportationRateTable
Overwrites the associated TransportationRateTable entity for the loaded navigation property _TransportationRateTable.- Parameters:
value- New TransportationRateTable entity.
-
getTranspRateTableCalcRuleIfPresent
@Nonnull public io.vavr.control.Option<List<TranspRateTableCalcRule>> getTranspRateTableCalcRuleIfPresent()Retrieval of associated TranspRateTableCalcRule entities (one to many). This corresponds to the OData navigation property _TranspRateTableCalcRule.If the navigation property for an entity TranspRateTableValidity 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 _TranspRateTableCalcRule is already loaded, the result
will contain the TranspRateTableCalcRule entities. If not, an
Optionwith result stateemptyis returned.
-
setTranspRateTableCalcRule
Overwrites the list of associated TranspRateTableCalcRule entities for the loaded navigation property _TranspRateTableCalcRule.If the navigation property _TranspRateTableCalcRule of a queried TranspRateTableValidity 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 TranspRateTableCalcRule entities.
-
addTranspRateTableCalcRule
Adds elements to the list of associated TranspRateTableCalcRule entities. This corresponds to the OData navigation property _TranspRateTableCalcRule.If the navigation property _TranspRateTableCalcRule of a queried TranspRateTableValidity 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 TranspRateTableCalcRule entities.
-
getTranspRateTableRateIfPresent
Retrieval of associated TranspRateTableRate entities (one to many). This corresponds to the OData navigation property _TranspRateTableRate.If the navigation property for an entity TranspRateTableValidity 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 _TranspRateTableRate is already loaded, the result will
contain the TranspRateTableRate entities. If not, an
Optionwith result stateemptyis returned.
-
setTranspRateTableRate
Overwrites the list of associated TranspRateTableRate entities for the loaded navigation property _TranspRateTableRate.If the navigation property _TranspRateTableRate of a queried TranspRateTableValidity 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 TranspRateTableRate entities.
-
addTranspRateTableRate
Adds elements to the list of associated TranspRateTableRate entities. This corresponds to the OData navigation property _TranspRateTableRate.If the navigation property _TranspRateTableRate of a queried TranspRateTableValidity 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 TranspRateTableRate entities.
-
setValdtyStsToInProcForRateTbl
@Nonnull public static BoundAction.SingleToSingle<TranspRateTableValidity,TranspRateTableValidity> setValdtyStsToInProcForRateTbl()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.
-
releaseValidityForRateTable
@Nonnull public static BoundAction.SingleToSingle<TranspRateTableValidity,TranspRateTableValidity> releaseValidityForRateTable()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.
-
updateTransportationRates
@Nonnull public static BoundAction.SingleToSingle<TranspRateTableValidity,TranspRateTableValidity> updateTransportationRates(@Nonnull BigDecimal transpRateIncrDecrInPct, @Nonnull BigDecimal transpRateAmountInRateCrcy, @Nonnull String transpRateValidityCurrency, @Nonnull String transpRateSignIncrDecr) Action that can be applied to any entity object of this class.- Parameters:
transpRateSignIncrDecr- Constraints: Not nullable, Maximum length: 1Original parameter name from the Odata EDM: TranspRateSignIncrDecr
transpRateIncrDecrInPct- Constraints: Not nullable, Precision: 7, Scale: 2Original parameter name from the Odata EDM: TranspRateIncrDecrInPct
transpRateValidityCurrency- Constraints: Not nullable, Maximum length: 3Original parameter name from the Odata EDM: TranspRateValidityCurrency
transpRateAmountInRateCrcy- Constraints: Not nullable, Precision: 28, Scale: 6Original parameter name from the Odata EDM: TranspRateAmountInRateCrcy
- 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.
-
updateTransportationRates
@Nonnull public static BoundAction.SingleToSingle<TranspRateTableValidity,TranspRateTableValidity> updateTransportationRates(@Nonnull BigDecimal transpRateIncrDecrInPct, @Nonnull BigDecimal transpRateAmountInRateCrcy, @Nonnull String transpRateValidityCurrency, @Nonnull String transpRateSignIncrDecr, @Nonnull String transpRateValidityPctUnit) Action that can be applied to any entity object of this class.- Parameters:
transpRateSignIncrDecr- Constraints: Not nullable, Maximum length: 1Original parameter name from the Odata EDM: TranspRateSignIncrDecr
transpRateIncrDecrInPct- Constraints: Not nullable, Precision: 7, Scale: 2Original parameter name from the Odata EDM: TranspRateIncrDecrInPct
transpRateValidityPctUnit- Constraints: Not nullable, Maximum length: 3Original parameter name from the Odata EDM: TranspRateValidityPctUnit
transpRateValidityCurrency- Constraints: Not nullable, Maximum length: 3Original parameter name from the Odata EDM: TranspRateValidityCurrency
transpRateAmountInRateCrcy- Constraints: Not nullable, Precision: 28, Scale: 6Original parameter name from the Odata EDM: TranspRateAmountInRateCrcy
- 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.
-
copyValidityForRateTable
@Nonnull public static BoundAction.SingleToSingle<TranspRateTableValidity,TranspRateTableValidity> copyValidityForRateTable(@Nullable LocalDate transpRateValidityCpyStartDate, @Nullable LocalDate transpRateValidityCpyEndDate) Action that can be applied to any entity object of this class.- Parameters:
transpRateValidityCpyEndDate- Constraints: NullableOriginal parameter name from the Odata EDM: TranspRateValidityCpyEndDate
transpRateValidityCpyStartDate- Constraints: NullableOriginal parameter name from the Odata EDM: TranspRateValidityCpyStartDate
- 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
-
getTranspRateTableValidityUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: TranspRateTableValidityUUID
- Returns:
- Transp Rate Table Validity UUID
-
getTransportationRateTableUUID
Constraints: Not nullableOriginal property name from the Odata EDM: TransportationRateTableUUID
- Returns:
- Transportation Rate Table UUID
-
getTranspRateTblValidityCurrency
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: TranspRateTblValidityCurrency
- Returns:
- Currency
-
getTranspRateTblValdtyLfcycStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: TranspRateTblValdtyLfcycStatus
- Returns:
- Life Cycle Status
-
getTranspRateTblValidityEndDate
Constraints: NullableOriginal property name from the Odata EDM: TranspRateTblValidityEndDate
- Returns:
- End Date of Validity
-
getTranspRateTblValidityStartDate
Constraints: NullableOriginal property name from the Odata EDM: TranspRateTblValidityStartDate
- Returns:
- Start Date of Validity
-
getTranspRateTblValidityPctUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: TranspRateTblValidityPctUnit
- Returns:
- Unit of Measurement
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<TranspRateTableValidity>
-
equals
- Overrides:
equalsin classVdmEntity<TranspRateTableValidity>
-
canEqual
- Overrides:
canEqualin classVdmEntity<TranspRateTableValidity>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<TranspRateTableValidity>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<TranspRateTableValidity>
-