Class VarCnfTblValAssgmtAlternative
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: VarCnfTblValAssgmtAlternative_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of VarCnfTblValAssgmtAlternative instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<VarCnfTblValAssgmtAlternative>Selector for all available fields of VarCnfTblValAssgmtAlternative.static final NavigationProperty.Collection<VarCnfTblValAssgmtAlternative,VarCnfTblValAssgmtAltvItem> Use with available request builders to apply the _Item navigation property to query operations.Use with available request builders to apply the _Table navigation property to query operations.static final SimpleProperty.String<VarCnfTblValAssgmtAlternative>static final SimpleProperty.String<VarCnfTblValAssgmtAlternative>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionVarCnfTblValAssgmtAlternative(String varConfignTblName, String varConfignTblValAssgmtAltvID, List<VarCnfTblValAssgmtAltvItem> to_Item, VariantConfigurationTable to_Table) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItem(VarCnfTblValAssgmtAltvItem... entity) Adds elements to the list of associated VarCnfTblValAssgmtAltvItem entities.builder()protected booleanbooleanprotected voidprotected Stringprotected Stringio.vavr.control.Option<List<VarCnfTblValAssgmtAltvItem>>Retrieval of associated VarCnfTblValAssgmtAltvItem entities (one to many).protected ODataEntityKeygetKey()io.vavr.control.Option<VariantConfigurationTable>Retrieval of associated VariantConfigurationTable entity (one to one).getType()(Key Field) Constraints: Not nullable, Maximum length: 18(Key Field) Constraints: Not nullable, Maximum length: 4inthashCode()voidsetItem(List<VarCnfTblValAssgmtAltvItem> value) Overwrites the list of associated VarCnfTblValAssgmtAltvItem entities for the loaded navigation property _Item.voidOverwrites the associated VariantConfigurationTable entity for the loaded navigation property _Table.voidsetVarConfignTblName(String varConfignTblName) (Key Field) Constraints: Not nullable, Maximum length: 18voidsetVarConfignTblValAssgmtAltvID(String varConfignTblValAssgmtAltvID) (Key Field) Constraints: Not nullable, Maximum length: 4toString()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 VarCnfTblValAssgmtAlternative. -
VAR_CONFIGN_TBL_NAME
-
VAR_CONFIGN_TBL_VAL_ASSGMT_ALTV_ID
public static final SimpleProperty.String<VarCnfTblValAssgmtAlternative> VAR_CONFIGN_TBL_VAL_ASSGMT_ALTV_ID -
TO__ITEM
public static final NavigationProperty.Collection<VarCnfTblValAssgmtAlternative,VarCnfTblValAssgmtAltvItem> TO__ITEMUse with available request builders to apply the _Item navigation property to query operations. -
TO__TABLE
public static final NavigationProperty.Single<VarCnfTblValAssgmtAlternative,VariantConfigurationTable> TO__TABLEUse with available request builders to apply the _Table navigation property to query operations.
-
-
Constructor Details
-
VarCnfTblValAssgmtAlternative
public VarCnfTblValAssgmtAlternative() -
VarCnfTblValAssgmtAlternative
public VarCnfTblValAssgmtAlternative(@Nullable String varConfignTblName, @Nullable String varConfignTblValAssgmtAltvID, List<VarCnfTblValAssgmtAltvItem> to_Item, @Nullable VariantConfigurationTable to_Table)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<VarCnfTblValAssgmtAlternative>
-
setVarConfignTblName
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: VarConfignTblName
- Parameters:
varConfignTblName- Name of variant table
-
setVarConfignTblValAssgmtAltvID
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: VarConfignTblValAssgmtAltvID
- Parameters:
varConfignTblValAssgmtAltvID- Counter for value assignment alternative
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<VarCnfTblValAssgmtAlternative>
-
getKey
- Overrides:
getKeyin classVdmObject<VarCnfTblValAssgmtAlternative>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<VarCnfTblValAssgmtAlternative>
-
fromMap
- Overrides:
fromMapin classVdmObject<VarCnfTblValAssgmtAlternative>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<VarCnfTblValAssgmtAlternative>
-
getItemIfPresent
Retrieval of associated VarCnfTblValAssgmtAltvItem entities (one to many). This corresponds to the OData navigation property _Item.If the navigation property for an entity VarCnfTblValAssgmtAlternative 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 _Item is already loaded, the result will contain the
VarCnfTblValAssgmtAltvItem entities. If not, an
Optionwith result stateemptyis returned.
-
setItem
Overwrites the list of associated VarCnfTblValAssgmtAltvItem entities for the loaded navigation property _Item.If the navigation property _Item of a queried VarCnfTblValAssgmtAlternative 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 VarCnfTblValAssgmtAltvItem entities.
-
addItem
Adds elements to the list of associated VarCnfTblValAssgmtAltvItem entities. This corresponds to the OData navigation property _Item.If the navigation property _Item of a queried VarCnfTblValAssgmtAlternative 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 VarCnfTblValAssgmtAltvItem entities.
-
getTableIfPresent
Retrieval of associated VariantConfigurationTable entity (one to one). This corresponds to the OData navigation property _Table.If the navigation property for an entity VarCnfTblValAssgmtAlternative 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 _Table is already loaded, the result will contain the
VariantConfigurationTable entity. If not, an
Optionwith result stateemptyis returned.
-
setTable
Overwrites the associated VariantConfigurationTable entity for the loaded navigation property _Table.- Parameters:
value- New VariantConfigurationTable entity.
-
builder
-
getVarConfignTblName
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: VarConfignTblName
- Returns:
- Name of variant table
-
getVarConfignTblValAssgmtAltvID
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: VarConfignTblValAssgmtAltvID
- Returns:
- Counter for value assignment alternative
-
toString
- Overrides:
toStringin classVdmObject<VarCnfTblValAssgmtAlternative>
-
equals
- Overrides:
equalsin classVdmEntity<VarCnfTblValAssgmtAlternative>
-
canEqual
- Overrides:
canEqualin classVdmEntity<VarCnfTblValAssgmtAlternative>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<VarCnfTblValAssgmtAlternative>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<VarCnfTblValAssgmtAlternative>
-