Class Customer
Original entity name from the Odata EDM: CustomerType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of Customer instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CustomerField<String>Use with available fluent helpers to apply the AdditionalMasterDataSource field to query operations.static final CustomerSelectableSelector for all available fields of Customer.static final CustomerField<String>Use with available fluent helpers to apply the Customer field to query operations.static final CustomerField<String>Use with available fluent helpers to apply the Customer_Text field to query operations.static final CustomerLink<CustomerHier>Use with available fluent helpers to apply the to_CnsldtnCustomerHier navigation property to query operations.static final CustomerLink<CustomerText>Use with available fluent helpers to apply the to_CnsldtnCustomerT navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionCustomer()Customer(String customer, String customer_Text, String additionalMasterDataSource, List<CustomerHier> toCnsldtnCustomerHier, List<CustomerText> toCnsldtnCustomerT) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCnsldtnCustomerHier(CustomerHier... entity) Adds elements to the list of associated CustomerHier entities.voidaddCnsldtnCustomerT(CustomerText... entity) Adds elements to the list of associated CustomerText entities.voidattachToService(String servicePath, HttpDestinationProperties destination) static Customer.CustomerBuilderbuilder()protected booleanbooleanFetches the CustomerHier entities (one to many) associated with this entity.Fetches the CustomerText entities (one to many) associated with this entity.static <T,DomainT>
CustomerField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> CustomerField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidConstraints: Not nullable, Maximum length: 10io.vavr.control.Option<List<CustomerHier>>Retrieval of associated CustomerHier entities (one to many).Retrieval of associated CustomerHier entities (one to many).io.vavr.control.Option<List<CustomerText>>Retrieval of associated CustomerText entities (one to many).Retrieval of associated CustomerText entities (one to many).(Key Field) Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 80protected Stringprotected StringgetKey()getType()inthashCode()voidsetAdditionalMasterDataSource(String additionalMasterDataSource) Constraints: Not nullable, Maximum length: 10voidsetCnsldtnCustomerHier(List<CustomerHier> value) Overwrites the list of associated CustomerHier entities for the loaded navigation property to_CnsldtnCustomerHier.voidsetCnsldtnCustomerT(List<CustomerText> value) Overwrites the list of associated CustomerText entities for the loaded navigation property to_CnsldtnCustomerT.voidsetCustomer(String customer) (Key Field) Constraints: Not nullable, Maximum length: 10voidsetCustomer_Text(String customer_Text) Constraints: Not nullable, Maximum length: 80protected 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 Customer. -
CUSTOMER
Use with available fluent helpers to apply the Customer field to query operations. -
CUSTOMER_TEXT
Use with available fluent helpers to apply the Customer_Text field to query operations. -
ADDITIONAL_MASTER_DATA_SOURCE
Use with available fluent helpers to apply the AdditionalMasterDataSource field to query operations. -
TO_CNSLDTN_CUSTOMER_HIER
Use with available fluent helpers to apply the to_CnsldtnCustomerHier navigation property to query operations. -
TO_CNSLDTN_CUSTOMER_T
Use with available fluent helpers to apply the to_CnsldtnCustomerT navigation property to query operations.
-
-
Constructor Details
-
Customer
public Customer() -
Customer
public Customer(@Nullable String customer, @Nullable String customer_Text, @Nullable String additionalMasterDataSource, List<CustomerHier> toCnsldtnCustomerHier, List<CustomerText> toCnsldtnCustomerT)
-
-
Method Details
-
getType
-
setCustomer
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Customer
- Parameters:
customer- Consolidation Customer
-
setCustomer_Text
Constraints: Not nullable, Maximum length: 80Original property name from the Odata EDM: Customer_Text
- Parameters:
customer_Text- Customer Description
-
setAdditionalMasterDataSource
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: AdditionalMasterDataSource
- Parameters:
additionalMasterDataSource- Consolidation Additional Master Data Source
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<Customer>
-
getKey
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<Customer>
-
fromMap
-
field
@Nonnull public static <T> CustomerField<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> CustomerField<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<Customer>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<Customer>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<Customer>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<Customer>
-
fetchCnsldtnCustomerHier
Fetches the CustomerHier entities (one to many) associated with this entity. This corresponds to the OData navigation property to_CnsldtnCustomerHier.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated CustomerHier 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.
-
getCnsldtnCustomerHierOrFetch
Retrieval of associated CustomerHier entities (one to many). This corresponds to the OData navigation property to_CnsldtnCustomerHier.If the navigation property to_CnsldtnCustomerHier of a queried Customer 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 CustomerHier 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.
-
getCnsldtnCustomerHierIfPresent
Retrieval of associated CustomerHier entities (one to many). This corresponds to the OData navigation property to_CnsldtnCustomerHier.If the navigation property for an entity Customer 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_CnsldtnCustomerHier is already loaded, the result
will contain the CustomerHier entities. If not, an
Optionwith result stateemptyis returned.
-
setCnsldtnCustomerHier
Overwrites the list of associated CustomerHier entities for the loaded navigation property to_CnsldtnCustomerHier.If the navigation property to_CnsldtnCustomerHier of a queried Customer 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 CustomerHier entities.
-
addCnsldtnCustomerHier
Adds elements to the list of associated CustomerHier entities. This corresponds to the OData navigation property to_CnsldtnCustomerHier.If the navigation property to_CnsldtnCustomerHier of a queried Customer 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 CustomerHier entities.
-
fetchCnsldtnCustomerT
Fetches the CustomerText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_CnsldtnCustomerT.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated CustomerText 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.
-
getCnsldtnCustomerTOrFetch
Retrieval of associated CustomerText entities (one to many). This corresponds to the OData navigation property to_CnsldtnCustomerT.If the navigation property to_CnsldtnCustomerT of a queried Customer 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 CustomerText 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.
-
getCnsldtnCustomerTIfPresent
Retrieval of associated CustomerText entities (one to many). This corresponds to the OData navigation property to_CnsldtnCustomerT.If the navigation property for an entity Customer 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_CnsldtnCustomerT is already loaded, the result will
contain the CustomerText entities. If not, an
Optionwith result stateemptyis returned.
-
setCnsldtnCustomerT
Overwrites the list of associated CustomerText entities for the loaded navigation property to_CnsldtnCustomerT.If the navigation property to_CnsldtnCustomerT of a queried Customer 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 CustomerText entities.
-
addCnsldtnCustomerT
Adds elements to the list of associated CustomerText entities. This corresponds to the OData navigation property to_CnsldtnCustomerT.If the navigation property to_CnsldtnCustomerT of a queried Customer 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 CustomerText entities.
-
builder
-
getCustomer
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Customer
- Returns:
- Consolidation Customer
-
getCustomer_Text
Constraints: Not nullable, Maximum length: 80Original property name from the Odata EDM: Customer_Text
- Returns:
- Customer Description
-
getAdditionalMasterDataSource
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: AdditionalMasterDataSource
- Returns:
- Consolidation Additional Master Data Source
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-