Class SrcgProjContactCategory
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: SrcgProjContactCategoryType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of SrcgProjContactCategory instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<SrcgProjContactCategory>Selector for all available fields of SrcgProjContactCategory.static final SimpleProperty.String<SrcgProjContactCategory>static final SimpleProperty.String<SrcgProjContactCategory>Use with available request builders to apply the _SourcingProjectContactCatT navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionSrcgProjContactCategory(String sourcingProjectContactCategory, String sourcingProjectContactCatName, List<SrcgProjContactCategoryText> to_SourcingProjectContactCatT) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated SrcgProjContactCategoryText entities.builder()protected booleanbooleanprotected voidprotected Stringprotected Stringprotected ODataEntityKeygetKey()(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 40io.vavr.control.Option<List<SrcgProjContactCategoryText>>Retrieval of associated SrcgProjContactCategoryText entities (one to many).getType()inthashCode()voidsetSourcingProjectContactCategory(String sourcingProjectContactCategory) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetSourcingProjectContactCatName(String sourcingProjectContactCatName) Constraints: Not nullable, Maximum length: 40voidOverwrites the list of associated SrcgProjContactCategoryText entities for the loaded navigation property _SourcingProjectContactCatT.toString()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 SrcgProjContactCategory. -
SOURCING_PROJECT_CONTACT_CATEGORY
public static final SimpleProperty.String<SrcgProjContactCategory> SOURCING_PROJECT_CONTACT_CATEGORY -
SOURCING_PROJECT_CONTACT_CAT_NAME
public static final SimpleProperty.String<SrcgProjContactCategory> SOURCING_PROJECT_CONTACT_CAT_NAME -
TO__SOURCING_PROJECT_CONTACT_CAT_T
public static final NavigationProperty.Collection<SrcgProjContactCategory,SrcgProjContactCategoryText> TO__SOURCING_PROJECT_CONTACT_CAT_TUse with available request builders to apply the _SourcingProjectContactCatT navigation property to query operations.
-
-
Constructor Details
-
SrcgProjContactCategory
public SrcgProjContactCategory() -
SrcgProjContactCategory
public SrcgProjContactCategory(@Nullable String sourcingProjectContactCategory, @Nullable String sourcingProjectContactCatName, List<SrcgProjContactCategoryText> to_SourcingProjectContactCatT)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<SrcgProjContactCategory>
-
setSourcingProjectContactCategory
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: SourcingProjectContactCategory
- Parameters:
sourcingProjectContactCategory- The sourcingProjectContactCategory to set.
-
setSourcingProjectContactCatName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: SourcingProjectContactCatName
- Parameters:
sourcingProjectContactCatName- Contact Category Text for Sourcing Project
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<SrcgProjContactCategory>
-
getKey
- Overrides:
getKeyin classVdmObject<SrcgProjContactCategory>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<SrcgProjContactCategory>
-
fromMap
- Overrides:
fromMapin classVdmObject<SrcgProjContactCategory>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<SrcgProjContactCategory>
-
getSourcingProjectContactCatTIfPresent
@Nonnull public io.vavr.control.Option<List<SrcgProjContactCategoryText>> getSourcingProjectContactCatTIfPresent()Retrieval of associated SrcgProjContactCategoryText entities (one to many). This corresponds to the OData navigation property _SourcingProjectContactCatT.If the navigation property for an entity SrcgProjContactCategory 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 _SourcingProjectContactCatT is already loaded, the
result will contain the SrcgProjContactCategoryText entities. If not, an
Optionwith result stateemptyis returned.
-
setSourcingProjectContactCatT
Overwrites the list of associated SrcgProjContactCategoryText entities for the loaded navigation property _SourcingProjectContactCatT.If the navigation property _SourcingProjectContactCatT of a queried SrcgProjContactCategory 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 SrcgProjContactCategoryText entities.
-
addSourcingProjectContactCatT
Adds elements to the list of associated SrcgProjContactCategoryText entities. This corresponds to the OData navigation property _SourcingProjectContactCatT.If the navigation property _SourcingProjectContactCatT of a queried SrcgProjContactCategory 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 SrcgProjContactCategoryText entities.
-
builder
-
getSourcingProjectContactCategory
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: SourcingProjectContactCategory
- Returns:
- The sourcingProjectContactCategory contained in this
VdmEntity.
-
getSourcingProjectContactCatName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: SourcingProjectContactCatName
- Returns:
- Contact Category Text for Sourcing Project
-
toString
- Overrides:
toStringin classVdmObject<SrcgProjContactCategory>
-
equals
- Overrides:
equalsin classVdmEntity<SrcgProjContactCategory>
-
canEqual
- Overrides:
canEqualin classVdmEntity<SrcgProjContactCategory>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<SrcgProjContactCategory>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<SrcgProjContactCategory>
-