Class CategoryDef
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: CategoryDef_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of CategoryDef instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<CategoryDef>Selector for all available fields of CategoryDef.static final SimpleProperty.String<CategoryDef>static final SimpleProperty.String<CategoryDef>static final NavigationProperty.Collection<CategoryDef,ActivityDef> Use with available request builders to apply the _ActivityDef navigation property to query operations.static final NavigationProperty.Collection<CategoryDef,PhaseDef> Use with available request builders to apply the _PhaseDef 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
ConstructorsConstructorDescriptionCategoryDef(String statryRptCategory, String country, List<ActivityDef> to_ActivityDef, List<PhaseDef> to_PhaseDef) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActivityDef(ActivityDef... entity) Adds elements to the list of associated ActivityDef entities.voidaddPhaseDef(PhaseDef... entity) Adds elements to the list of associated PhaseDef entities.builder()protected booleanbooleanprotected voidio.vavr.control.Option<List<ActivityDef>>Retrieval of associated ActivityDef entities (one to many).Constraints: Not nullable, Maximum length: 3protected Stringprotected Stringprotected ODataEntityKeygetKey()Retrieval of associated PhaseDef entities (one to many).(Key Field) Constraints: Not nullable, Maximum length: 30getType()inthashCode()voidsetActivityDef(List<ActivityDef> value) Overwrites the list of associated ActivityDef entities for the loaded navigation property _ActivityDef.voidsetCountry(String country) Constraints: Not nullable, Maximum length: 3voidsetPhaseDef(List<PhaseDef> value) Overwrites the list of associated PhaseDef entities for the loaded navigation property _PhaseDef.voidsetStatryRptCategory(String statryRptCategory) (Key Field) Constraints: Not nullable, Maximum length: 30toString()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 CategoryDef. -
STATRY_RPT_CATEGORY
-
COUNTRY
-
TO__ACTIVITY_DEF
Use with available request builders to apply the _ActivityDef navigation property to query operations. -
TO__PHASE_DEF
Use with available request builders to apply the _PhaseDef navigation property to query operations.
-
-
Constructor Details
-
CategoryDef
public CategoryDef() -
CategoryDef
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<CategoryDef>
-
setStatryRptCategory
(Key Field) Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: StatryRptCategory
- Parameters:
statryRptCategory- Report Category ID
-
setCountry
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: Country
- Parameters:
country- Country/Region Key
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<CategoryDef>
-
getKey
- Overrides:
getKeyin classVdmObject<CategoryDef>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<CategoryDef>
-
fromMap
- Overrides:
fromMapin classVdmObject<CategoryDef>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<CategoryDef>
-
getActivityDefIfPresent
Retrieval of associated ActivityDef entities (one to many). This corresponds to the OData navigation property _ActivityDef.If the navigation property for an entity CategoryDef 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 _ActivityDef is already loaded, the result will contain
the ActivityDef entities. If not, an
Optionwith result stateemptyis returned.
-
setActivityDef
Overwrites the list of associated ActivityDef entities for the loaded navigation property _ActivityDef.If the navigation property _ActivityDef of a queried CategoryDef 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 ActivityDef entities.
-
addActivityDef
Adds elements to the list of associated ActivityDef entities. This corresponds to the OData navigation property _ActivityDef.If the navigation property _ActivityDef of a queried CategoryDef 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 ActivityDef entities.
-
getPhaseDefIfPresent
Retrieval of associated PhaseDef entities (one to many). This corresponds to the OData navigation property _PhaseDef.If the navigation property for an entity CategoryDef 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 _PhaseDef is already loaded, the result will contain
the PhaseDef entities. If not, an
Optionwith result stateemptyis returned.
-
setPhaseDef
Overwrites the list of associated PhaseDef entities for the loaded navigation property _PhaseDef.If the navigation property _PhaseDef of a queried CategoryDef 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 PhaseDef entities.
-
addPhaseDef
Adds elements to the list of associated PhaseDef entities. This corresponds to the OData navigation property _PhaseDef.If the navigation property _PhaseDef of a queried CategoryDef 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 PhaseDef entities.
-
builder
-
getStatryRptCategory
(Key Field) Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: StatryRptCategory
- Returns:
- Report Category ID
-
getCountry
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: Country
- Returns:
- Country/Region Key
-
toString
- Overrides:
toStringin classVdmObject<CategoryDef>
-
equals
- Overrides:
equalsin classVdmEntity<CategoryDef>
-
canEqual
- Overrides:
canEqualin classVdmEntity<CategoryDef>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<CategoryDef>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<CategoryDef>
-