Class ReturnsInspection
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ReturnsInspection_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ReturnsInspection instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<ReturnsInspection,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<ReturnsInspection>Selector for all available fields of ReturnsInspection.static final SimpleProperty.String<ReturnsInspection>static final SimpleProperty.DateTime<ReturnsInspection>static final SimpleProperty.DateTime<ReturnsInspection>static final SimpleProperty.String<ReturnsInspection>static final SimpleProperty.String<ReturnsInspection>static final SimpleProperty.String<ReturnsInspection>static final SimpleProperty.String<ReturnsInspection>Use with available request builders to apply the _Item 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
ConstructorsConstructorDescriptionReturnsInspection(String returnsInspection, String returnsDelivery, String retsInspectionIsToBeConfirmed, String createdByUser, OffsetDateTime creationDateTime, String lastChangedByUser, OffsetDateTime lastChangeDateTime, Collection<SAP__Message> _Messages, List<ReturnsInspectionItem> to_Item) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItem(ReturnsInspectionItem... entity) Adds elements to the list of associated ReturnsInspectionItem entities.builder()protected booleanconfirmRetsInspByDelivery(String returnsDelivery, Collection<D_RetsInspectionItemConfirmP> _Item) Action that can be applied to a collection of entities of this class.deleteRetsInspByDelivery(String returnsDelivery, Collection<D_ReturnsInspectionItemDeleteP> _Item) Action that can be applied to a collection of entities of this class.booleanprotected voidConstraints: Not nullableConstraints: Not nullable, Maximum length: 12Constraints: Nullableprotected Stringprotected Stringio.vavr.control.Option<List<ReturnsInspectionItem>>Retrieval of associated ReturnsInspectionItem entities (one to many).protected ODataEntityKeygetKey()Constraints: NullableConstraints: Not nullable, Maximum length: 12Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 10(Key Field) Constraints: Not nullable, Maximum length: 12getType()inthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetCreatedByUser(String createdByUser) Constraints: Not nullable, Maximum length: 12voidsetCreationDateTime(OffsetDateTime creationDateTime) Constraints: NullablevoidsetItem(List<ReturnsInspectionItem> value) Overwrites the list of associated ReturnsInspectionItem entities for the loaded navigation property _Item.voidsetLastChangeDateTime(OffsetDateTime lastChangeDateTime) Constraints: NullablevoidsetLastChangedByUser(String lastChangedByUser) Constraints: Not nullable, Maximum length: 12voidsetRetsInspectionIsToBeConfirmed(String retsInspectionIsToBeConfirmed) Constraints: Not nullable, Maximum length: 1voidsetReturnsDelivery(String returnsDelivery) Constraints: Not nullable, Maximum length: 10voidsetReturnsInspection(String returnsInspection) (Key Field) Constraints: Not nullable, Maximum length: 12toString()updateRetsInspByDelivery(String returnsDelivery, String retsInspectionIsToBeConfirmed, Collection<D_ReturnsInspectionItemUpdateP> _Item) Action that can be applied to a collection of entities of this class.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 ReturnsInspection. -
RETURNS_INSPECTION
-
RETURNS_DELIVERY
-
RETS_INSPECTION_IS_TO_BE_CONFIRMED
-
CREATED_BY_USER
-
CREATION_DATE_TIME
-
LAST_CHANGED_BY_USER
-
LAST_CHANGE_DATE_TIME
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__ITEM
Use with available request builders to apply the _Item navigation property to query operations.
-
-
Constructor Details
-
ReturnsInspection
public ReturnsInspection() -
ReturnsInspection
public ReturnsInspection(@Nullable String returnsInspection, @Nullable String returnsDelivery, @Nullable String retsInspectionIsToBeConfirmed, @Nullable String createdByUser, @Nullable OffsetDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable OffsetDateTime lastChangeDateTime, @Nullable Collection<SAP__Message> _Messages, List<ReturnsInspectionItem> to_Item)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ReturnsInspection>
-
setReturnsInspection
(Key Field) Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: ReturnsInspection
- Parameters:
returnsInspection- Inspection Outcome number
-
setReturnsDelivery
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ReturnsDelivery
- Parameters:
returnsDelivery- Delivery
-
setRetsInspectionIsToBeConfirmed
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: RetsInspectionIsToBeConfirmed
- Parameters:
retsInspectionIsToBeConfirmed- The retsInspectionIsToBeConfirmed to set.
-
setCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Parameters:
createdByUser- Name of Person Responsible for Creating the Object
-
setCreationDateTime
Constraints: NullableOriginal property name from the Odata EDM: CreationDateTime
- Parameters:
creationDateTime- UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
-
setLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Parameters:
lastChangedByUser- Name of Person Who Changed Object
-
setLastChangeDateTime
Constraints: NullableOriginal property name from the Odata EDM: LastChangeDateTime
- Parameters:
lastChangeDateTime- UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ReturnsInspection>
-
getKey
- Overrides:
getKeyin classVdmObject<ReturnsInspection>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ReturnsInspection>
-
fromMap
- Overrides:
fromMapin classVdmObject<ReturnsInspection>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ReturnsInspection>
-
getItemIfPresent
Retrieval of associated ReturnsInspectionItem entities (one to many). This corresponds to the OData navigation property _Item.If the navigation property for an entity ReturnsInspection 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 _Item is already loaded, the result will contain the
ReturnsInspectionItem entities. If not, an
Optionwith result stateemptyis returned.
-
setItem
Overwrites the list of associated ReturnsInspectionItem entities for the loaded navigation property _Item.If the navigation property _Item of a queried ReturnsInspection 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 ReturnsInspectionItem entities.
-
addItem
Adds elements to the list of associated ReturnsInspectionItem entities. This corresponds to the OData navigation property _Item.If the navigation property _Item of a queried ReturnsInspection 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 ReturnsInspectionItem entities.
-
confirmRetsInspByDelivery
@Nonnull public static BoundAction.CollectionToSingle<ReturnsInspection,Void> confirmRetsInspByDelivery(@Nonnull String returnsDelivery, @Nonnull Collection<D_RetsInspectionItemConfirmP> _Item) Action that can be applied to a collection of entities of this class.- Parameters:
returnsDelivery- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: ReturnsDelivery
_Item- Constraints: Not nullableOriginal parameter name from the Odata EDM: _Item
- Returns:
- Action object prepared with the given parameters to be applied to a collection of entities of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
deleteRetsInspByDelivery
@Nonnull public static BoundAction.CollectionToSingle<ReturnsInspection,Void> deleteRetsInspByDelivery(@Nonnull String returnsDelivery, @Nonnull Collection<D_ReturnsInspectionItemDeleteP> _Item) Action that can be applied to a collection of entities of this class.- Parameters:
returnsDelivery- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: ReturnsDelivery
_Item- Constraints: Not nullableOriginal parameter name from the Odata EDM: _Item
- Returns:
- Action object prepared with the given parameters to be applied to a collection of entities of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
updateRetsInspByDelivery
@Nonnull public static BoundAction.CollectionToSingle<ReturnsInspection,Void> updateRetsInspByDelivery(@Nonnull String returnsDelivery, @Nonnull String retsInspectionIsToBeConfirmed, @Nonnull Collection<D_ReturnsInspectionItemUpdateP> _Item) Action that can be applied to a collection of entities of this class.- Parameters:
retsInspectionIsToBeConfirmed- Constraints: Not nullable, Maximum length: 1Original parameter name from the Odata EDM: RetsInspectionIsToBeConfirmed
returnsDelivery- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: ReturnsDelivery
_Item- Constraints: Not nullableOriginal parameter name from the Odata EDM: _Item
- Returns:
- Action object prepared with the given parameters to be applied to a collection of entities of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
builder
-
getReturnsInspection
(Key Field) Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: ReturnsInspection
- Returns:
- Inspection Outcome number
-
getReturnsDelivery
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ReturnsDelivery
- Returns:
- Delivery
-
getRetsInspectionIsToBeConfirmed
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: RetsInspectionIsToBeConfirmed
- Returns:
- The retsInspectionIsToBeConfirmed contained in this
VdmEntity.
-
getCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Returns:
- Name of Person Responsible for Creating the Object
-
getCreationDateTime
Constraints: NullableOriginal property name from the Odata EDM: CreationDateTime
- Returns:
- UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
-
getLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Returns:
- Name of Person Who Changed Object
-
getLastChangeDateTime
Constraints: NullableOriginal property name from the Odata EDM: LastChangeDateTime
- Returns:
- UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<ReturnsInspection>
-
equals
- Overrides:
equalsin classVdmEntity<ReturnsInspection>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ReturnsInspection>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ReturnsInspection>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ReturnsInspection>
-