Class TaskCode
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: TaskCode_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of TaskCode instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<TaskCode>Selector for all available fields of TaskCode.static final SimpleProperty.Boolean<TaskCode>static final SimpleProperty.Boolean<TaskCode>static final SimpleProperty.String<TaskCode>static final SimpleProperty.String<TaskCode>static final NavigationProperty.Collection<TaskCode,TaskCodeText> Use with available request builders to apply the _TaskCodeText 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 TypeMethodDescriptionvoidaddTaskCodeText(TaskCodeText... entity) Adds elements to the list of associated TaskCodeText entities.static TaskCode.TaskCodeBuilderbuilder()protected booleanbooleanprotected voidConstraints: Not nullableConstraints: Not nullableprotected Stringprotected Stringprotected ODataEntityKeygetKey()(Key Field) Constraints: Not nullable, Maximum length: 4(Key Field) Constraints: Not nullable, Maximum length: 8io.vavr.control.Option<List<TaskCodeText>>Retrieval of associated TaskCodeText entities (one to many).getType()inthashCode()voidsetCodeGroupIsUsable(Boolean codeGroupIsUsable) Constraints: Not nullablevoidsetCodeIsInactive(Boolean codeIsInactive) Constraints: Not nullablevoidsetTaskCode(String taskCode) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetTaskCodeGroup(String taskCodeGroup) (Key Field) Constraints: Not nullable, Maximum length: 8voidsetTaskCodeText(List<TaskCodeText> value) Overwrites the list of associated TaskCodeText entities for the loaded navigation property _TaskCodeText.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 TaskCode. -
TASK_CODE_GROUP
-
TASK_CODE
-
CODE_IS_INACTIVE
-
CODE_GROUP_IS_USABLE
-
TO__TASK_CODE_TEXT
Use with available request builders to apply the _TaskCodeText navigation property to query operations.
-
-
Constructor Details
-
TaskCode
public TaskCode() -
TaskCode
-
-
Method Details
-
getType
-
setTaskCodeGroup
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: TaskCodeGroup
- Parameters:
taskCodeGroup- Group of Task Codes
-
setTaskCode
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: TaskCode
- Parameters:
taskCode- Code for Classification of a Task
-
setCodeIsInactive
Constraints: Not nullableOriginal property name from the Odata EDM: CodeIsInactive
- Parameters:
codeIsInactive- Code Is Inactive
-
setCodeGroupIsUsable
Constraints: Not nullableOriginal property name from the Odata EDM: CodeGroupIsUsable
- Parameters:
codeGroupIsUsable- Code Group Is Usable
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<TaskCode>
-
getKey
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<TaskCode>
-
fromMap
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<TaskCode>
-
getTaskCodeTextIfPresent
Retrieval of associated TaskCodeText entities (one to many). This corresponds to the OData navigation property _TaskCodeText.If the navigation property for an entity TaskCode 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 _TaskCodeText is already loaded, the result will
contain the TaskCodeText entities. If not, an
Optionwith result stateemptyis returned.
-
setTaskCodeText
Overwrites the list of associated TaskCodeText entities for the loaded navigation property _TaskCodeText.If the navigation property _TaskCodeText of a queried TaskCode 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 TaskCodeText entities.
-
addTaskCodeText
Adds elements to the list of associated TaskCodeText entities. This corresponds to the OData navigation property _TaskCodeText.If the navigation property _TaskCodeText of a queried TaskCode 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 TaskCodeText entities.
-
builder
-
getTaskCodeGroup
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: TaskCodeGroup
- Returns:
- Group of Task Codes
-
getTaskCode
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: TaskCode
- Returns:
- Code for Classification of a Task
-
getCodeIsInactive
Constraints: Not nullableOriginal property name from the Odata EDM: CodeIsInactive
- Returns:
- Code Is Inactive
-
getCodeGroupIsUsable
Constraints: Not nullableOriginal property name from the Odata EDM: CodeGroupIsUsable
- Returns:
- Code Group Is Usable
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getOdataType
- Specified by:
getOdataTypein classVdmObject<TaskCode>
-