Class BOMItemCategory
Original entity name from the Odata EDM: A_BOMItemCategoryType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of BOMItemCategory instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BOMItemCategorySelectableSelector for all available fields of BOMItemCategory.static final BOMItemCategoryField<String>Use with available fluent helpers to apply the BillOfMaterialItemCategory field to query operations.static final BOMItemCategoryField<String>Use with available fluent helpers to apply the BillOfMaterialItemCategoryDesc field to query operations.static final BOMItemCategoryField<String>Use with available fluent helpers to apply the FixedItemCategory field to query operations.static final BOMItemCategoryOneToOneLink<BOMItemCategoryText>Use with available fluent helpers to apply the to_BOMItemCategoryText navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionBOMItemCategory(String billOfMaterialItemCategory, String fixedItemCategory, String billOfMaterialItemCategoryDesc, BOMItemCategoryText toBOMItemCategoryText) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the BOMItemCategoryText entity (one to one) associated with this entity.static <T,DomainT>
BOMItemCategoryField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> BOMItemCategoryField<T>Use with available fluent helpers to apply an extension field to query operations.protected void(Key Field) Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 30io.vavr.control.Option<BOMItemCategoryText>Retrieval of associated BOMItemCategoryText entity (one to one).Retrieval of associated BOMItemCategoryText entity (one to one).protected Stringprotected StringConstraints: Not nullable, Maximum length: 1getKey()getType()inthashCode()voidsetBillOfMaterialItemCategory(String billOfMaterialItemCategory) (Key Field) Constraints: Not nullable, Maximum length: 1voidsetBillOfMaterialItemCategoryDesc(String billOfMaterialItemCategoryDesc) Constraints: Not nullable, Maximum length: 30voidOverwrites the associated BOMItemCategoryText entity for the loaded navigation property to_BOMItemCategoryText.voidsetFixedItemCategory(String fixedItemCategory) Constraints: Not nullable, Maximum length: 1protected voidsetServicePathForFetch(String servicePathForFetch) toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
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 BOMItemCategory. -
BILL_OF_MATERIAL_ITEM_CATEGORY
Use with available fluent helpers to apply the BillOfMaterialItemCategory field to query operations. -
FIXED_ITEM_CATEGORY
Use with available fluent helpers to apply the FixedItemCategory field to query operations. -
BILL_OF_MATERIAL_ITEM_CATEGORY_DESC
Use with available fluent helpers to apply the BillOfMaterialItemCategoryDesc field to query operations. -
TO_BOM_ITEM_CATEGORY_TEXT
Use with available fluent helpers to apply the to_BOMItemCategoryText navigation property to query operations.
-
-
Constructor Details
-
BOMItemCategory
public BOMItemCategory() -
BOMItemCategory
public BOMItemCategory(@Nullable String billOfMaterialItemCategory, @Nullable String fixedItemCategory, @Nullable String billOfMaterialItemCategoryDesc, @Nullable BOMItemCategoryText toBOMItemCategoryText)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<BOMItemCategory>
-
setBillOfMaterialItemCategory
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: BillOfMaterialItemCategory
- Parameters:
billOfMaterialItemCategory- Item category (bill of material)
-
setFixedItemCategory
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: FixedItemCategory
- Parameters:
fixedItemCategory- Item category (bill of material)
-
setBillOfMaterialItemCategoryDesc
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: BillOfMaterialItemCategoryDesc
- Parameters:
billOfMaterialItemCategoryDesc- Item Category Description
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<BOMItemCategory>
-
getKey
- Overrides:
getKeyin classVdmObject<BOMItemCategory>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<BOMItemCategory>
-
fromMap
- Overrides:
fromMapin classVdmObject<BOMItemCategory>
-
field
@Nonnull public static <T> BOMItemCategoryField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.- Parameters:
fieldName- The name of the extension field as returned by the OData service.fieldType- The Java type to use for the extension field when performing value comparisons.- Returns:
- A representation of an extension field from this entity.
-
field
@Nonnull public static <T,DomainT> BOMItemCategoryField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.DomainT- The type of the extension field as returned by the OData service.- Parameters:
typeConverter- A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the fieldfieldName- The name of the extension field as returned by the OData service.- Returns:
- A representation of an extension field from this entity, holding a reference to the given TypeConverter.
-
getDestinationForFetch
- Overrides:
getDestinationForFetchin classVdmEntity<BOMItemCategory>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<BOMItemCategory>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<BOMItemCategory>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<BOMItemCategory>
-
fetchBOMItemCategoryText
Fetches the BOMItemCategoryText entity (one to one) associated with this entity. This corresponds to the OData navigation property to_BOMItemCategoryText.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated BOMItemCategoryText entity, or
nullif an entity is not associated. - Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getBOMItemCategoryTextOrFetch
Retrieval of associated BOMItemCategoryText entity (one to one). This corresponds to the OData navigation property to_BOMItemCategoryText.If the navigation property to_BOMItemCategoryText of a queried BOMItemCategory 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.
- Returns:
- List of associated BOMItemCategoryText entity.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getBOMItemCategoryTextIfPresent
Retrieval of associated BOMItemCategoryText entity (one to one). This corresponds to the OData navigation property to_BOMItemCategoryText.If the navigation property for an entity BOMItemCategory 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 to_BOMItemCategoryText is already loaded, the result
will contain the BOMItemCategoryText entity. If not, an
Optionwith result stateemptyis returned.
-
setBOMItemCategoryText
Overwrites the associated BOMItemCategoryText entity for the loaded navigation property to_BOMItemCategoryText.- Parameters:
value- New BOMItemCategoryText entity.
-
builder
-
getBillOfMaterialItemCategory
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: BillOfMaterialItemCategory
- Returns:
- Item category (bill of material)
-
getFixedItemCategory
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: FixedItemCategory
- Returns:
- Item category (bill of material)
-
getBillOfMaterialItemCategoryDesc
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: BillOfMaterialItemCategoryDesc
- Returns:
- Item Category Description
-
toString
- Overrides:
toStringin classVdmObject<BOMItemCategory>
-
equals
- Overrides:
equalsin classVdmEntity<BOMItemCategory>
-
canEqual
- Overrides:
canEqualin classVdmEntity<BOMItemCategory>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<BOMItemCategory>
-