Class Task
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: Task_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of Task instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<Task,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<Task>Selector for all available fields of Task.static final SimpleProperty.String<Task>static final SimpleProperty.String<Task>static final SimpleProperty.String<Task>static final SimpleProperty.Date<Task>static final SimpleProperty.Date<Task>static final SimpleProperty.Date<Task>static final SimpleProperty.String<Task>static final SimpleProperty.Guid<Task>static final SimpleProperty.String<Task>static final NavigationProperty.Collection<Task,Phase> Use with available request builders to apply the _Phase 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
ConstructorsConstructorDescriptionTask()Task(UUID statryRptTaskUUID, String statryRptgEntity, String statryRptCategory, String country, String statryRptTaskStatus, LocalDate statryRptTaskDueDate, LocalDate statryRptTaskPeriodStartDate, LocalDate statryRptTaskPeriodEndDate, String reportingYear, Collection<SAP__Message> _Messages, List<Phase> to_Phase) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated Phase entities.static Task.TaskBuilderbuilder()protected booleanbooleanprotected voidConstraints: Not nullableConstraints: Not nullable, Maximum length: 3protected Stringprotected Stringprotected ODataEntityKeygetKey()Retrieval of associated Phase entities (one to many).Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 30Constraints: Not nullable, Maximum length: 10Constraints: Not nullableConstraints: Not nullableConstraints: Not nullableConstraints: Not nullable, Maximum length: 3(Key Field) Constraints: Not nullablegetType()inthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetCountry(String country) Constraints: Not nullable, Maximum length: 3voidOverwrites the list of associated Phase entities for the loaded navigation property _Phase.voidsetReportingYear(String reportingYear) Constraints: Not nullable, Maximum length: 4voidsetStatryRptCategory(String statryRptCategory) Constraints: Not nullable, Maximum length: 30voidsetStatryRptgEntity(String statryRptgEntity) Constraints: Not nullable, Maximum length: 10voidsetStatryRptTaskDueDate(LocalDate statryRptTaskDueDate) Constraints: Not nullablevoidsetStatryRptTaskPeriodEndDate(LocalDate statryRptTaskPeriodEndDate) Constraints: Not nullablevoidsetStatryRptTaskPeriodStartDate(LocalDate statryRptTaskPeriodStartDate) Constraints: Not nullablevoidsetStatryRptTaskStatus(String statryRptTaskStatus) Constraints: Not nullable, Maximum length: 3voidsetStatryRptTaskUUID(UUID statryRptTaskUUID) (Key Field) Constraints: Not nullabletoString()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 Task. -
STATRY_RPT_TASK_UUID
-
STATRY_RPTG_ENTITY
-
STATRY_RPT_CATEGORY
-
COUNTRY
-
STATRY_RPT_TASK_STATUS
-
STATRY_RPT_TASK_DUE_DATE
-
STATRY_RPT_TASK_PERIOD_START_DATE
-
STATRY_RPT_TASK_PERIOD_END_DATE
-
REPORTING_YEAR
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__PHASE
Use with available request builders to apply the _Phase navigation property to query operations.
-
-
Constructor Details
-
Task
public Task() -
Task
public Task(@Nullable UUID statryRptTaskUUID, @Nullable String statryRptgEntity, @Nullable String statryRptCategory, @Nullable String country, @Nullable String statryRptTaskStatus, @Nullable LocalDate statryRptTaskDueDate, @Nullable LocalDate statryRptTaskPeriodStartDate, @Nullable LocalDate statryRptTaskPeriodEndDate, @Nullable String reportingYear, @Nullable Collection<SAP__Message> _Messages, List<Phase> to_Phase)
-
-
Method Details
-
getType
-
setStatryRptTaskUUID
(Key Field) 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
-
setCountry
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: Country
- Parameters:
country- Country/Region Key
-
setStatryRptTaskStatus
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: StatryRptTaskStatus
- Parameters:
statryRptTaskStatus- Overall Report Status
-
setStatryRptTaskDueDate
Constraints: Not nullableOriginal property name from the Odata EDM: StatryRptTaskDueDate
- Parameters:
statryRptTaskDueDate- Due Date
-
setStatryRptTaskPeriodStartDate
Constraints: Not nullableOriginal property name from the Odata EDM: StatryRptTaskPeriodStartDate
- Parameters:
statryRptTaskPeriodStartDate- Reporting Period Start Date
-
setStatryRptTaskPeriodEndDate
Constraints: Not nullableOriginal property name from the Odata EDM: StatryRptTaskPeriodEndDate
- Parameters:
statryRptTaskPeriodEndDate- Reporting Period End Date
-
setReportingYear
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ReportingYear
- Parameters:
reportingYear- Reporting Year
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<Task>
-
getKey
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<Task>
-
fromMap
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<Task>
-
getPhaseIfPresent
Retrieval of associated Phase entities (one to many). This corresponds to the OData navigation property _Phase.If the navigation property for an entity Task 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 _Phase is already loaded, the result will contain the
Phase entities. If not, an
Optionwith result stateemptyis returned.
-
setPhase
Overwrites the list of associated Phase entities for the loaded navigation property _Phase.If the navigation property _Phase of a queried Task 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 Phase entities.
-
addPhase
Adds elements to the list of associated Phase entities. This corresponds to the OData navigation property _Phase.If the navigation property _Phase of a queried Task 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 Phase entities.
-
builder
-
getStatryRptTaskUUID
(Key Field) 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
-
getCountry
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: Country
- Returns:
- Country/Region Key
-
getStatryRptTaskStatus
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: StatryRptTaskStatus
- Returns:
- Overall Report Status
-
getStatryRptTaskDueDate
Constraints: Not nullableOriginal property name from the Odata EDM: StatryRptTaskDueDate
- Returns:
- Due Date
-
getStatryRptTaskPeriodStartDate
Constraints: Not nullableOriginal property name from the Odata EDM: StatryRptTaskPeriodStartDate
- Returns:
- Reporting Period Start Date
-
getStatryRptTaskPeriodEndDate
Constraints: Not nullableOriginal property name from the Odata EDM: StatryRptTaskPeriodEndDate
- Returns:
- Reporting Period End Date
-
getReportingYear
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ReportingYear
- Returns:
- Reporting Year
-
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<Task>
-