Class Phase
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: Phase_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of Phase instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<Phase,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<Phase>Selector for all available fields of Phase.static final SimpleProperty.String<Phase>static final SimpleProperty.String<Phase>static final SimpleProperty.Date<Phase>static final SimpleProperty.String<Phase>static final SimpleProperty.Guid<Phase>static final SimpleProperty.Guid<Phase>static final SimpleProperty.String<Phase>static final NavigationProperty.Collection<Phase,Activity> Use with available request builders to apply the _Activity navigation property to query operations.static final NavigationProperty.Single<Phase,Task> Use with available request builders to apply the _Task 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActivity(Activity... entity) Adds elements to the list of associated Activity entities.static Phase.PhaseBuilderbuilder()protected booleanbooleanprotected voidConstraints: Not nullableRetrieval of associated Activity entities (one to many).protected Stringprotected Stringprotected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 30Constraints: Not nullable, Maximum length: 5Constraints: NullableConstraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 5(Key Field) Constraints: Not nullableConstraints: Not nullableio.vavr.control.Option<Task>Retrieval of associated Task entity (one to one).getType()inthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetActivity(List<Activity> value) Overwrites the list of associated Activity entities for the loaded navigation property _Activity.voidsetStatryRptCategory(String statryRptCategory) Constraints: Not nullable, Maximum length: 30voidsetStatryRptCatPhase(String statryRptCatPhase) Constraints: Not nullable, Maximum length: 5voidsetStatryRptDueDate(LocalDate statryRptDueDate) Constraints: NullablevoidsetStatryRptgEntity(String statryRptgEntity) Constraints: Not nullable, Maximum length: 10voidsetStatryRptPhaseStatus(String statryRptPhaseStatus) Constraints: Not nullable, Maximum length: 5voidsetStatryRptPhaseUUID(UUID statryRptPhaseUUID) (Key Field) Constraints: Not nullablevoidsetStatryRptTaskUUID(UUID statryRptTaskUUID) Constraints: Not nullablevoidOverwrites the associated Task entity for the loaded navigation property _Task.static BoundAction.SingleToSingle<Phase,Phase> Action that can be applied to any entity object of this class.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 Phase. -
STATRY_RPT_PHASE_UUID
-
STATRY_RPT_TASK_UUID
-
STATRY_RPTG_ENTITY
-
STATRY_RPT_CATEGORY
-
STATRY_RPT_CAT_PHASE
-
STATRY_RPT_DUE_DATE
-
STATRY_RPT_PHASE_STATUS
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__ACTIVITY
Use with available request builders to apply the _Activity navigation property to query operations. -
TO__TASK
Use with available request builders to apply the _Task navigation property to query operations.
-
-
Constructor Details
-
Phase
public Phase() -
Phase
public Phase(@Nullable UUID statryRptPhaseUUID, @Nullable UUID statryRptTaskUUID, @Nullable String statryRptgEntity, @Nullable String statryRptCategory, @Nullable String statryRptCatPhase, @Nullable LocalDate statryRptDueDate, @Nullable String statryRptPhaseStatus, @Nullable Collection<SAP__Message> _Messages, List<Activity> to_Activity, @Nullable Task to_Task)
-
-
Method Details
-
getType
-
setStatryRptPhaseUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: StatryRptPhaseUUID
- Parameters:
statryRptPhaseUUID- NodeID
-
setStatryRptTaskUUID
Constraints: Not nullableOriginal property name from the Odata EDM: StatryRptTaskUUID
- Parameters:
statryRptTaskUUID- NodeID
-
setStatryRptgEntity
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: StatryRptgEntity
- Parameters:
statryRptgEntity- Reporting Entity
-
setStatryRptCategory
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: StatryRptCategory
- Parameters:
statryRptCategory- Report Category ID
-
setStatryRptCatPhase
Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: StatryRptCatPhase
- Parameters:
statryRptCatPhase- Report Category Phase
-
setStatryRptDueDate
Constraints: NullableOriginal property name from the Odata EDM: StatryRptDueDate
- Parameters:
statryRptDueDate- Due Date
-
setStatryRptPhaseStatus
Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: StatryRptPhaseStatus
- Parameters:
statryRptPhaseStatus- Activity 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<Phase>
-
getKey
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<Phase>
-
fromMap
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<Phase>
-
getActivityIfPresent
Retrieval of associated Activity entities (one to many). This corresponds to the OData navigation property _Activity.If the navigation property for an entity Phase 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 _Activity is already loaded, the result will contain
the Activity entities. If not, an
Optionwith result stateemptyis returned.
-
setActivity
Overwrites the list of associated Activity entities for the loaded navigation property _Activity.If the navigation property _Activity of a queried Phase 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 Activity entities.
-
addActivity
Adds elements to the list of associated Activity entities. This corresponds to the OData navigation property _Activity.If the navigation property _Activity of a queried Phase 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 Activity entities.
-
getTaskIfPresent
Retrieval of associated Task entity (one to one). This corresponds to the OData navigation property _Task.If the navigation property for an entity Phase 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 _Task is already loaded, the result will contain the
Task entity. If not, an
Optionwith result stateemptyis returned.
-
setTask
Overwrites the associated Task entity for the loaded navigation property _Task.- Parameters:
value- New Task entity.
-
skipStatryRptPhase
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
-
getStatryRptPhaseUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: StatryRptPhaseUUID
- Returns:
- NodeID
-
getStatryRptTaskUUID
Constraints: Not nullableOriginal property name from the Odata EDM: StatryRptTaskUUID
- Returns:
- NodeID
-
getStatryRptgEntity
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: StatryRptgEntity
- Returns:
- Reporting Entity
-
getStatryRptCategory
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: StatryRptCategory
- Returns:
- Report Category ID
-
getStatryRptCatPhase
Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: StatryRptCatPhase
- Returns:
- Report Category Phase
-
getStatryRptDueDate
Constraints: NullableOriginal property name from the Odata EDM: StatryRptDueDate
- Returns:
- Due Date
-
getStatryRptPhaseStatus
Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: StatryRptPhaseStatus
- Returns:
- Activity Status
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getOdataType
- Specified by:
getOdataTypein classVdmObject<Phase>
-