Class SubItem
Original entity name from the Odata EDM: SubItemType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of SubItem instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SubItemSelectableSelector for all available fields of SubItem.static final SubItemField<String>Use with available fluent helpers to apply the SubItem field to query operations.static final SubItemField<String>Use with available fluent helpers to apply the SubItemCategory field to query operations.static final SubItemField<String>Use with available fluent helpers to apply the SubItemCategory_Text field to query operations.static final SubItemField<String>Use with available fluent helpers to apply the SubItem_Text field to query operations.static final SubItemField<String>Use with available fluent helpers to apply the SubitemAcquisitionDestination field to query operations.static final SubItemField<String>Use with available fluent helpers to apply the SubitemAcquisitionDestination_Text field to query operations.static final SubItemField<String>Use with available fluent helpers to apply the SubitemCarryForwardDestination field to query operations.static final SubItemField<String>Use with available fluent helpers to apply the SubitemCarryForwardDestination_Text field to query operations.static final SubItemField<String>Use with available fluent helpers to apply the SubitemRtrmtDivestitureDest field to query operations.static final SubItemField<String>Use with available fluent helpers to apply the SubitemRtrmtDivestitureDest_Text field to query operations.static final SubItemLink<SubItemText>Use with available fluent helpers to apply the to_CnsldtnSubItemT navigation property to query operations.static final SubItemLink<SubitemHier>Use with available fluent helpers to apply the to_CnsldtnSubitemHier navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionSubItem()SubItem(String subItemCategory, String subItemCategory_Text, String subItem, String subItem_Text, String subitemCarryForwardDestination, String subitemCarryForwardDestination_Text, String subitemRtrmtDivestitureDest, String subitemRtrmtDivestitureDest_Text, String subitemAcquisitionDestination, String subitemAcquisitionDestination_Text, List<SubitemHier> toCnsldtnSubitemHier, List<SubItemText> toCnsldtnSubItemT) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCnsldtnSubitemHier(SubitemHier... entity) Adds elements to the list of associated SubitemHier entities.voidaddCnsldtnSubItemT(SubItemText... entity) Adds elements to the list of associated SubItemText entities.voidattachToService(String servicePath, HttpDestinationProperties destination) static SubItem.SubItemBuilderbuilder()protected booleanbooleanFetches the SubitemHier entities (one to many) associated with this entity.Fetches the SubItemText entities (one to many) associated with this entity.static <T,DomainT>
SubItemField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> SubItemField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidio.vavr.control.Option<List<SubitemHier>>Retrieval of associated SubitemHier entities (one to many).Retrieval of associated SubitemHier entities (one to many).io.vavr.control.Option<List<SubItemText>>Retrieval of associated SubItemText entities (one to many).Retrieval of associated SubItemText entities (one to many).protected Stringprotected StringgetKey()(Key Field) Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 30Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 30Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 30(Key Field) Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 30Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 30getType()inthashCode()voidsetCnsldtnSubitemHier(List<SubitemHier> value) Overwrites the list of associated SubitemHier entities for the loaded navigation property to_CnsldtnSubitemHier.voidsetCnsldtnSubItemT(List<SubItemText> value) Overwrites the list of associated SubItemText entities for the loaded navigation property to_CnsldtnSubItemT.protected voidsetServicePathForFetch(String servicePathForFetch) voidsetSubItem(String subItem) (Key Field) Constraints: Not nullable, Maximum length: 10voidsetSubItem_Text(String subItem_Text) Constraints: Not nullable, Maximum length: 30voidsetSubitemAcquisitionDestination(String subitemAcquisitionDestination) Constraints: Not nullable, Maximum length: 10voidsetSubitemAcquisitionDestination_Text(String subitemAcquisitionDestination_Text) Constraints: Not nullable, Maximum length: 30voidsetSubitemCarryForwardDestination(String subitemCarryForwardDestination) Constraints: Not nullable, Maximum length: 10voidsetSubitemCarryForwardDestination_Text(String subitemCarryForwardDestination_Text) Constraints: Not nullable, Maximum length: 30voidsetSubItemCategory(String subItemCategory) (Key Field) Constraints: Not nullable, Maximum length: 3voidsetSubItemCategory_Text(String subItemCategory_Text) Constraints: Not nullable, Maximum length: 30voidsetSubitemRtrmtDivestitureDest(String subitemRtrmtDivestitureDest) Constraints: Not nullable, Maximum length: 10voidsetSubitemRtrmtDivestitureDest_Text(String subitemRtrmtDivestitureDest_Text) Constraints: Not nullable, Maximum length: 30toString()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 SubItem. -
SUB_ITEM_CATEGORY
Use with available fluent helpers to apply the SubItemCategory field to query operations. -
SUB_ITEM_CATEGORY_TEXT
Use with available fluent helpers to apply the SubItemCategory_Text field to query operations. -
SUB_ITEM
Use with available fluent helpers to apply the SubItem field to query operations. -
SUB_ITEM_TEXT
Use with available fluent helpers to apply the SubItem_Text field to query operations. -
SUBITEM_CARRY_FORWARD_DESTINATION
Use with available fluent helpers to apply the SubitemCarryForwardDestination field to query operations. -
SUBITEM_CARRY_FORWARD_DESTINATION_TEXT
Use with available fluent helpers to apply the SubitemCarryForwardDestination_Text field to query operations. -
SUBITEM_RTRMT_DIVESTITURE_DEST
Use with available fluent helpers to apply the SubitemRtrmtDivestitureDest field to query operations. -
SUBITEM_RTRMT_DIVESTITURE_DEST_TEXT
Use with available fluent helpers to apply the SubitemRtrmtDivestitureDest_Text field to query operations. -
SUBITEM_ACQUISITION_DESTINATION
Use with available fluent helpers to apply the SubitemAcquisitionDestination field to query operations. -
SUBITEM_ACQUISITION_DESTINATION_TEXT
Use with available fluent helpers to apply the SubitemAcquisitionDestination_Text field to query operations. -
TO_CNSLDTN_SUBITEM_HIER
Use with available fluent helpers to apply the to_CnsldtnSubitemHier navigation property to query operations. -
TO_CNSLDTN_SUB_ITEM_T
Use with available fluent helpers to apply the to_CnsldtnSubItemT navigation property to query operations.
-
-
Constructor Details
-
SubItem
public SubItem() -
SubItem
public SubItem(@Nullable String subItemCategory, @Nullable String subItemCategory_Text, @Nullable String subItem, @Nullable String subItem_Text, @Nullable String subitemCarryForwardDestination, @Nullable String subitemCarryForwardDestination_Text, @Nullable String subitemRtrmtDivestitureDest, @Nullable String subitemRtrmtDivestitureDest_Text, @Nullable String subitemAcquisitionDestination, @Nullable String subitemAcquisitionDestination_Text, List<SubitemHier> toCnsldtnSubitemHier, List<SubItemText> toCnsldtnSubItemT)
-
-
Method Details
-
getType
-
setSubItemCategory
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: SubItemCategory
- Parameters:
subItemCategory- Subitem Category
-
setSubItemCategory_Text
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: SubItemCategory_Text
- Parameters:
subItemCategory_Text- Subitem Category Description
-
setSubItem
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: SubItem
- Parameters:
subItem- Subitem
-
setSubItem_Text
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: SubItem_Text
- Parameters:
subItem_Text- Subitem Description
-
setSubitemCarryForwardDestination
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: SubitemCarryForwardDestination
- Parameters:
subitemCarryForwardDestination- Carryforward Subitem (Transaction Type)
-
setSubitemCarryForwardDestination_Text
public void setSubitemCarryForwardDestination_Text(@Nullable String subitemCarryForwardDestination_Text) Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: SubitemCarryForwardDestination_Text
- Parameters:
subitemCarryForwardDestination_Text- Subitem Description
-
setSubitemRtrmtDivestitureDest
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: SubitemRtrmtDivestitureDest
- Parameters:
subitemRtrmtDivestitureDest- Subitem for retirements/divestitures
-
setSubitemRtrmtDivestitureDest_Text
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: SubitemRtrmtDivestitureDest_Text
- Parameters:
subitemRtrmtDivestitureDest_Text- Subitem Description
-
setSubitemAcquisitionDestination
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: SubitemAcquisitionDestination
- Parameters:
subitemAcquisitionDestination- Acquisition subitem
-
setSubitemAcquisitionDestination_Text
public void setSubitemAcquisitionDestination_Text(@Nullable String subitemAcquisitionDestination_Text) Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: SubitemAcquisitionDestination_Text
- Parameters:
subitemAcquisitionDestination_Text- Subitem Description
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<SubItem>
-
getKey
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<SubItem>
-
fromMap
-
field
@Nonnull public static <T> SubItemField<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> SubItemField<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<SubItem>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<SubItem>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<SubItem>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<SubItem>
-
fetchCnsldtnSubitemHier
Fetches the SubitemHier entities (one to many) associated with this entity. This corresponds to the OData navigation property to_CnsldtnSubitemHier.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated SubitemHier entities. If no entities are associated then an empty list is returned.
- 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.
-
getCnsldtnSubitemHierOrFetch
Retrieval of associated SubitemHier entities (one to many). This corresponds to the OData navigation property to_CnsldtnSubitemHier.If the navigation property to_CnsldtnSubitemHier of a queried SubItem 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 SubitemHier entities.
- 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.
-
getCnsldtnSubitemHierIfPresent
Retrieval of associated SubitemHier entities (one to many). This corresponds to the OData navigation property to_CnsldtnSubitemHier.If the navigation property for an entity SubItem 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_CnsldtnSubitemHier is already loaded, the result
will contain the SubitemHier entities. If not, an
Optionwith result stateemptyis returned.
-
setCnsldtnSubitemHier
Overwrites the list of associated SubitemHier entities for the loaded navigation property to_CnsldtnSubitemHier.If the navigation property to_CnsldtnSubitemHier of a queried SubItem 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 SubitemHier entities.
-
addCnsldtnSubitemHier
Adds elements to the list of associated SubitemHier entities. This corresponds to the OData navigation property to_CnsldtnSubitemHier.If the navigation property to_CnsldtnSubitemHier of a queried SubItem 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 SubitemHier entities.
-
fetchCnsldtnSubItemT
Fetches the SubItemText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_CnsldtnSubItemT.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated SubItemText entities. If no entities are associated then an empty list is returned.
- 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.
-
getCnsldtnSubItemTOrFetch
Retrieval of associated SubItemText entities (one to many). This corresponds to the OData navigation property to_CnsldtnSubItemT.If the navigation property to_CnsldtnSubItemT of a queried SubItem 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 SubItemText entities.
- 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.
-
getCnsldtnSubItemTIfPresent
Retrieval of associated SubItemText entities (one to many). This corresponds to the OData navigation property to_CnsldtnSubItemT.If the navigation property for an entity SubItem 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_CnsldtnSubItemT is already loaded, the result will
contain the SubItemText entities. If not, an
Optionwith result stateemptyis returned.
-
setCnsldtnSubItemT
Overwrites the list of associated SubItemText entities for the loaded navigation property to_CnsldtnSubItemT.If the navigation property to_CnsldtnSubItemT of a queried SubItem 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 SubItemText entities.
-
addCnsldtnSubItemT
Adds elements to the list of associated SubItemText entities. This corresponds to the OData navigation property to_CnsldtnSubItemT.If the navigation property to_CnsldtnSubItemT of a queried SubItem 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 SubItemText entities.
-
builder
-
getSubItemCategory
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: SubItemCategory
- Returns:
- Subitem Category
-
getSubItemCategory_Text
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: SubItemCategory_Text
- Returns:
- Subitem Category Description
-
getSubItem
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: SubItem
- Returns:
- Subitem
-
getSubItem_Text
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: SubItem_Text
- Returns:
- Subitem Description
-
getSubitemCarryForwardDestination
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: SubitemCarryForwardDestination
- Returns:
- Carryforward Subitem (Transaction Type)
-
getSubitemCarryForwardDestination_Text
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: SubitemCarryForwardDestination_Text
- Returns:
- Subitem Description
-
getSubitemRtrmtDivestitureDest
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: SubitemRtrmtDivestitureDest
- Returns:
- Subitem for retirements/divestitures
-
getSubitemRtrmtDivestitureDest_Text
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: SubitemRtrmtDivestitureDest_Text
- Returns:
- Subitem Description
-
getSubitemAcquisitionDestination
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: SubitemAcquisitionDestination
- Returns:
- Acquisition subitem
-
getSubitemAcquisitionDestination_Text
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: SubitemAcquisitionDestination_Text
- Returns:
- Subitem Description
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-