Class SAP__DocumentDescription
Original entity name from the Odata EDM: SAP__DocumentDescription
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of SAP__DocumentDescription instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SAP__DocumentDescriptionSelectableSelector for all available fields of SAP__DocumentDescription.static final SAP__DocumentDescriptionField<LocalDateTime>Use with available fluent helpers to apply the CreatedAt field to query operations.static final SAP__DocumentDescriptionField<String>Use with available fluent helpers to apply the CreatedBy field to query operations.static final SAP__DocumentDescriptionField<String>Use with available fluent helpers to apply the FileName field to query operations.static final SAP__DocumentDescriptionField<UUID>Use with available fluent helpers to apply the Id field to query operations.static final SAP__DocumentDescriptionField<String>Use with available fluent helpers to apply the Title field to query operations.static final SAP__DocumentDescriptionLink<SAP__CoverPage>Use with available fluent helpers to apply the CoverPage navigation property to query operations.static final SAP__DocumentDescriptionOneToOneLink<SAP__Format>Use with available fluent helpers to apply the Format navigation property to query operations.static final SAP__DocumentDescriptionOneToOneLink<SAP__PDFStandard>Use with available fluent helpers to apply the PDFStandard navigation property to query operations.static final SAP__DocumentDescriptionOneToOneLink<SAP__Signature>Use with available fluent helpers to apply the Signature navigation property to query operations.static final SAP__DocumentDescriptionLink<SAP__TableColumns>Use with available fluent helpers to apply the TableColumns navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionSAP__DocumentDescription(UUID id, String createdBy, LocalDateTime createdAt, String fileName, String title, SAP__Format toFormat, List<SAP__TableColumns> toTableColumns, List<SAP__CoverPage> toCoverPage, SAP__Signature toSignature, SAP__PDFStandard toPDFStandard) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCoverPage(SAP__CoverPage... entity) Adds elements to the list of associated SAP__CoverPage entities.voidaddTableColumns(SAP__TableColumns... entity) Adds elements to the list of associated SAP__TableColumns entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the SAP__CoverPage entities (one to many) associated with this entity.Fetches the SAP__Format entity (one to one) associated with this entity.Fetches the SAP__PDFStandard entity (one to one) associated with this entity.Fetches the SAP__Signature entity (one to one) associated with this entity.Fetches the SAP__TableColumns entities (one to many) associated with this entity.static <T,DomainT>
SAP__DocumentDescriptionField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> SAP__DocumentDescriptionField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidio.vavr.control.Option<List<SAP__CoverPage>>Retrieval of associated SAP__CoverPage entities (one to many).Retrieval of associated SAP__CoverPage entities (one to many).Constraints: Not nullable, Precision: 0Constraints: Not nullable, Maximum length: 12protected Stringprotected StringConstraints: Not nullable, Maximum length: 256io.vavr.control.Option<SAP__Format>Retrieval of associated SAP__Format entity (one to one).Retrieval of associated SAP__Format entity (one to one).getId()(Key Field) Constraints: Not nullablegetKey()io.vavr.control.Option<SAP__PDFStandard>Retrieval of associated SAP__PDFStandard entity (one to one).Retrieval of associated SAP__PDFStandard entity (one to one).io.vavr.control.Option<SAP__Signature>Retrieval of associated SAP__Signature entity (one to one).Retrieval of associated SAP__Signature entity (one to one).io.vavr.control.Option<List<SAP__TableColumns>>Retrieval of associated SAP__TableColumns entities (one to many).Retrieval of associated SAP__TableColumns entities (one to many).getTitle()Constraints: Not nullable, Maximum length: 256getType()inthashCode()voidsetCoverPage(List<SAP__CoverPage> value) Overwrites the list of associated SAP__CoverPage entities for the loaded navigation property CoverPage.voidsetCreatedAt(LocalDateTime createdAt) Constraints: Not nullable, Precision: 0voidsetCreatedBy(String createdBy) Constraints: Not nullable, Maximum length: 12voidsetFileName(String fileName) Constraints: Not nullable, Maximum length: 256voidsetFormat(SAP__Format value) Overwrites the associated SAP__Format entity for the loaded navigation property Format.void(Key Field) Constraints: Not nullablevoidsetPDFStandard(SAP__PDFStandard value) Overwrites the associated SAP__PDFStandard entity for the loaded navigation property PDFStandard.protected voidsetServicePathForFetch(String servicePathForFetch) voidsetSignature(SAP__Signature value) Overwrites the associated SAP__Signature entity for the loaded navigation property Signature.voidsetTableColumns(List<SAP__TableColumns> value) Overwrites the list of associated SAP__TableColumns entities for the loaded navigation property TableColumns.voidConstraints: Not nullable, Maximum length: 256toString()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 SAP__DocumentDescription. -
ID
Use with available fluent helpers to apply the Id field to query operations. -
CREATED_BY
Use with available fluent helpers to apply the CreatedBy field to query operations. -
CREATED_AT
Use with available fluent helpers to apply the CreatedAt field to query operations. -
FILE_NAME
Use with available fluent helpers to apply the FileName field to query operations. -
TITLE
Use with available fluent helpers to apply the Title field to query operations. -
TO_FORMAT
Use with available fluent helpers to apply the Format navigation property to query operations. -
TO_TABLE_COLUMNS
Use with available fluent helpers to apply the TableColumns navigation property to query operations. -
TO_COVER_PAGE
Use with available fluent helpers to apply the CoverPage navigation property to query operations. -
TO_SIGNATURE
Use with available fluent helpers to apply the Signature navigation property to query operations. -
TO_PDF_STANDARD
Use with available fluent helpers to apply the PDFStandard navigation property to query operations.
-
-
Constructor Details
-
SAP__DocumentDescription
public SAP__DocumentDescription() -
SAP__DocumentDescription
public SAP__DocumentDescription(@Nullable UUID id, @Nullable String createdBy, @Nullable LocalDateTime createdAt, @Nullable String fileName, @Nullable String title, @Nullable SAP__Format toFormat, List<SAP__TableColumns> toTableColumns, List<SAP__CoverPage> toCoverPage, @Nullable SAP__Signature toSignature, @Nullable SAP__PDFStandard toPDFStandard)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<SAP__DocumentDescription>
-
setId
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: Id
- Parameters:
id- UUID
-
setCreatedBy
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedBy
- Parameters:
createdBy- The createdBy to set.
-
setCreatedAt
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: CreatedAt
- Parameters:
createdAt- Time Stamp
-
setFileName
Constraints: Not nullable, Maximum length: 256Original property name from the Odata EDM: FileName
- Parameters:
fileName- The fileName to set.
-
setTitle
Constraints: Not nullable, Maximum length: 256Original property name from the Odata EDM: Title
- Parameters:
title- The title to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<SAP__DocumentDescription>
-
getKey
- Overrides:
getKeyin classVdmObject<SAP__DocumentDescription>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<SAP__DocumentDescription>
-
fromMap
- Overrides:
fromMapin classVdmObject<SAP__DocumentDescription>
-
field
@Nonnull public static <T> SAP__DocumentDescriptionField<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> SAP__DocumentDescriptionField<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<SAP__DocumentDescription>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<SAP__DocumentDescription>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<SAP__DocumentDescription>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<SAP__DocumentDescription>
-
fetchFormat
Fetches the SAP__Format entity (one to one) associated with this entity. This corresponds to the OData navigation property Format.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated SAP__Format 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.
-
getFormatOrFetch
Retrieval of associated SAP__Format entity (one to one). This corresponds to the OData navigation property Format.If the navigation property Format of a queried SAP__DocumentDescription 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 SAP__Format 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.
-
getFormatIfPresent
Retrieval of associated SAP__Format entity (one to one). This corresponds to the OData navigation property Format.If the navigation property for an entity SAP__DocumentDescription 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 Format is already loaded, the result will contain the
SAP__Format entity. If not, an
Optionwith result stateemptyis returned.
-
setFormat
Overwrites the associated SAP__Format entity for the loaded navigation property Format.- Parameters:
value- New SAP__Format entity.
-
fetchTableColumns
Fetches the SAP__TableColumns entities (one to many) associated with this entity. This corresponds to the OData navigation property TableColumns.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated SAP__TableColumns 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.
-
getTableColumnsOrFetch
Retrieval of associated SAP__TableColumns entities (one to many). This corresponds to the OData navigation property TableColumns.If the navigation property TableColumns of a queried SAP__DocumentDescription 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 SAP__TableColumns 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.
-
getTableColumnsIfPresent
Retrieval of associated SAP__TableColumns entities (one to many). This corresponds to the OData navigation property TableColumns.If the navigation property for an entity SAP__DocumentDescription 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 TableColumns is already loaded, the result will contain
the SAP__TableColumns entities. If not, an
Optionwith result stateemptyis returned.
-
setTableColumns
Overwrites the list of associated SAP__TableColumns entities for the loaded navigation property TableColumns.If the navigation property TableColumns of a queried SAP__DocumentDescription 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 SAP__TableColumns entities.
-
addTableColumns
Adds elements to the list of associated SAP__TableColumns entities. This corresponds to the OData navigation property TableColumns.If the navigation property TableColumns of a queried SAP__DocumentDescription 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 SAP__TableColumns entities.
-
fetchCoverPage
Fetches the SAP__CoverPage entities (one to many) associated with this entity. This corresponds to the OData navigation property CoverPage.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated SAP__CoverPage 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.
-
getCoverPageOrFetch
Retrieval of associated SAP__CoverPage entities (one to many). This corresponds to the OData navigation property CoverPage.If the navigation property CoverPage of a queried SAP__DocumentDescription 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 SAP__CoverPage 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.
-
getCoverPageIfPresent
Retrieval of associated SAP__CoverPage entities (one to many). This corresponds to the OData navigation property CoverPage.If the navigation property for an entity SAP__DocumentDescription 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 CoverPage is already loaded, the result will contain
the SAP__CoverPage entities. If not, an
Optionwith result stateemptyis returned.
-
setCoverPage
Overwrites the list of associated SAP__CoverPage entities for the loaded navigation property CoverPage.If the navigation property CoverPage of a queried SAP__DocumentDescription 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 SAP__CoverPage entities.
-
addCoverPage
Adds elements to the list of associated SAP__CoverPage entities. This corresponds to the OData navigation property CoverPage.If the navigation property CoverPage of a queried SAP__DocumentDescription 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 SAP__CoverPage entities.
-
fetchSignature
Fetches the SAP__Signature entity (one to one) associated with this entity. This corresponds to the OData navigation property Signature.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated SAP__Signature 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.
-
getSignatureOrFetch
Retrieval of associated SAP__Signature entity (one to one). This corresponds to the OData navigation property Signature.If the navigation property Signature of a queried SAP__DocumentDescription 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 SAP__Signature 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.
-
getSignatureIfPresent
Retrieval of associated SAP__Signature entity (one to one). This corresponds to the OData navigation property Signature.If the navigation property for an entity SAP__DocumentDescription 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 Signature is already loaded, the result will contain
the SAP__Signature entity. If not, an
Optionwith result stateemptyis returned.
-
setSignature
Overwrites the associated SAP__Signature entity for the loaded navigation property Signature.- Parameters:
value- New SAP__Signature entity.
-
fetchPDFStandard
Fetches the SAP__PDFStandard entity (one to one) associated with this entity. This corresponds to the OData navigation property PDFStandard.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated SAP__PDFStandard 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.
-
getPDFStandardOrFetch
Retrieval of associated SAP__PDFStandard entity (one to one). This corresponds to the OData navigation property PDFStandard.If the navigation property PDFStandard of a queried SAP__DocumentDescription 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 SAP__PDFStandard 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.
-
getPDFStandardIfPresent
Retrieval of associated SAP__PDFStandard entity (one to one). This corresponds to the OData navigation property PDFStandard.If the navigation property for an entity SAP__DocumentDescription 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 PDFStandard is already loaded, the result will contain
the SAP__PDFStandard entity. If not, an
Optionwith result stateemptyis returned.
-
setPDFStandard
Overwrites the associated SAP__PDFStandard entity for the loaded navigation property PDFStandard.- Parameters:
value- New SAP__PDFStandard entity.
-
builder
-
getId
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: Id
- Returns:
- UUID
-
getCreatedBy
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedBy
- Returns:
- The createdBy contained in this entity.
-
getCreatedAt
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: CreatedAt
- Returns:
- Time Stamp
-
getFileName
Constraints: Not nullable, Maximum length: 256Original property name from the Odata EDM: FileName
- Returns:
- The fileName contained in this entity.
-
getTitle
Constraints: Not nullable, Maximum length: 256Original property name from the Odata EDM: Title
- Returns:
- The title contained in this entity.
-
toString
- Overrides:
toStringin classVdmObject<SAP__DocumentDescription>
-
equals
- Overrides:
equalsin classVdmEntity<SAP__DocumentDescription>
-
canEqual
- Overrides:
canEqualin classVdmEntity<SAP__DocumentDescription>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<SAP__DocumentDescription>
-