Class SrvcDocumentItemCategory
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: SrvcDocumentItemCategory_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of SrvcDocumentItemCategory instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<SrvcDocumentItemCategory>Selector for all available fields of SrvcDocumentItemCategory.static final SimpleProperty.String<SrvcDocumentItemCategory>static final SimpleProperty.String<SrvcDocumentItemCategory>static final SimpleProperty.String<SrvcDocumentItemCategory>static final SimpleProperty.String<SrvcDocumentItemCategory>Use with available request builders to apply the _SrvcDocumentItemCategoryText 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
ConstructorsConstructorDescriptionSrvcDocumentItemCategory(String serviceDocItemCategory, String serviceObjectType, String businessObjectTypeName, String serviceDocItemCategoryName, List<SrvcDocumentItemCategoryText> to_SrvcDocumentItemCategoryText) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated SrvcDocumentItemCategoryText entities.builder()protected booleanbooleanprotected voidConstraints: Not nullable, Maximum length: 20protected Stringprotected Stringprotected ODataEntityKeygetKey()(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 40Constraints: Not nullable, Maximum length: 10io.vavr.control.Option<List<SrvcDocumentItemCategoryText>>Retrieval of associated SrvcDocumentItemCategoryText entities (one to many).getType()inthashCode()voidsetBusinessObjectTypeName(String businessObjectTypeName) Constraints: Not nullable, Maximum length: 20voidsetServiceDocItemCategory(String serviceDocItemCategory) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetServiceDocItemCategoryName(String serviceDocItemCategoryName) Constraints: Not nullable, Maximum length: 40voidsetServiceObjectType(String serviceObjectType) Constraints: Not nullable, Maximum length: 10voidOverwrites the list of associated SrvcDocumentItemCategoryText entities for the loaded navigation property _SrvcDocumentItemCategoryText.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 SrvcDocumentItemCategory. -
SERVICE_DOC_ITEM_CATEGORY
-
SERVICE_OBJECT_TYPE
-
BUSINESS_OBJECT_TYPE_NAME
-
SERVICE_DOC_ITEM_CATEGORY_NAME
-
TO__SRVC_DOCUMENT_ITEM_CATEGORY_TEXT
public static final NavigationProperty.Collection<SrvcDocumentItemCategory,SrvcDocumentItemCategoryText> TO__SRVC_DOCUMENT_ITEM_CATEGORY_TEXTUse with available request builders to apply the _SrvcDocumentItemCategoryText navigation property to query operations.
-
-
Constructor Details
-
SrvcDocumentItemCategory
public SrvcDocumentItemCategory() -
SrvcDocumentItemCategory
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<SrvcDocumentItemCategory>
-
setServiceDocItemCategory
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ServiceDocItemCategory
- Parameters:
serviceDocItemCategory- Item Category
-
setServiceObjectType
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ServiceObjectType
- Parameters:
serviceObjectType- Service Item Object Type
-
setBusinessObjectTypeName
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: BusinessObjectTypeName
- Parameters:
businessObjectTypeName- Name
-
setServiceDocItemCategoryName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ServiceDocItemCategoryName
- Parameters:
serviceDocItemCategoryName- Item Category Text
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<SrvcDocumentItemCategory>
-
getKey
- Overrides:
getKeyin classVdmObject<SrvcDocumentItemCategory>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<SrvcDocumentItemCategory>
-
fromMap
- Overrides:
fromMapin classVdmObject<SrvcDocumentItemCategory>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<SrvcDocumentItemCategory>
-
getSrvcDocumentItemCategoryTextIfPresent
@Nonnull public io.vavr.control.Option<List<SrvcDocumentItemCategoryText>> getSrvcDocumentItemCategoryTextIfPresent()Retrieval of associated SrvcDocumentItemCategoryText entities (one to many). This corresponds to the OData navigation property _SrvcDocumentItemCategoryText.If the navigation property for an entity SrvcDocumentItemCategory 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 _SrvcDocumentItemCategoryText is already loaded, the
result will contain the SrvcDocumentItemCategoryText entities. If not, an
Optionwith result stateemptyis returned.
-
setSrvcDocumentItemCategoryText
Overwrites the list of associated SrvcDocumentItemCategoryText entities for the loaded navigation property _SrvcDocumentItemCategoryText.If the navigation property _SrvcDocumentItemCategoryText of a queried SrvcDocumentItemCategory 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 SrvcDocumentItemCategoryText entities.
-
addSrvcDocumentItemCategoryText
Adds elements to the list of associated SrvcDocumentItemCategoryText entities. This corresponds to the OData navigation property _SrvcDocumentItemCategoryText.If the navigation property _SrvcDocumentItemCategoryText of a queried SrvcDocumentItemCategory 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 SrvcDocumentItemCategoryText entities.
-
builder
-
getServiceDocItemCategory
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ServiceDocItemCategory
- Returns:
- Item Category
-
getServiceObjectType
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ServiceObjectType
- Returns:
- Service Item Object Type
-
getBusinessObjectTypeName
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: BusinessObjectTypeName
- Returns:
- Name
-
getServiceDocItemCategoryName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ServiceDocItemCategoryName
- Returns:
- Item Category Text
-
toString
- Overrides:
toStringin classVdmObject<SrvcDocumentItemCategory>
-
equals
- Overrides:
equalsin classVdmEntity<SrvcDocumentItemCategory>
-
canEqual
- Overrides:
canEqualin classVdmEntity<SrvcDocumentItemCategory>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<SrvcDocumentItemCategory>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<SrvcDocumentItemCategory>
-