public class OpportunityItem extends VdmEntity<OpportunityItem>
Original entity name from the Odata EDM: A_OpportunityItemType
Modifier and Type | Class and Description |
---|---|
static class |
OpportunityItem.OpportunityItemBuilder
Helper class to allow for fluent creation of OpportunityItem instances.
|
Modifier and Type | Field and Description |
---|---|
static OpportunityItemSelectable |
ALL_FIELDS
Selector for all available fields of OpportunityItem.
|
static OpportunityItemField<String> |
COMPETITOR
Use with available fluent helpers to apply the Competitor field to query operations.
|
static OpportunityItemField<String> |
CONTACT_PERSON
Use with available fluent helpers to apply the ContactPerson field to query operations.
|
static OpportunityItemField<BigDecimal> |
NET_VALUE_AMOUNT
Use with available fluent helpers to apply the NetValueAmount field to query operations.
|
static OpportunityItemField<String> |
OPPORTUNITY
Use with available fluent helpers to apply the Opportunity field to query operations.
|
static OpportunityItemField<String> |
OPPORTUNITY_ITEM
Use with available fluent helpers to apply the OpportunityItem field to query operations.
|
static OpportunityItemField<String> |
OPPORTUNITY_ITEM_CATEGORY
Use with available fluent helpers to apply the OpportunityItemCategory field to query operations.
|
static OpportunityItemField<String> |
OPPORTUNITY_ITEM_DESCRIPTION
Use with available fluent helpers to apply the OpportunityItemDescription field to query operations.
|
static OpportunityItemField<String> |
OPPORTUNITY_ITEM_STATUS
Use with available fluent helpers to apply the OpportunityItemStatus field to query operations.
|
static OpportunityItemField<UUID> |
OPPORTUNITY_ITEM_UUID
Use with available fluent helpers to apply the OpportunityItemUUID field to query operations.
|
static OpportunityItemField<UUID> |
OPPORTUNITY_UUID
Use with available fluent helpers to apply the OpportunityUUID field to query operations.
|
static OpportunityItemField<String> |
PAYER_PARTY
Use with available fluent helpers to apply the PayerParty field to query operations.
|
static OpportunityItemField<String> |
PRODUCT
Use with available fluent helpers to apply the Product field to query operations.
|
static OpportunityItemField<String> |
PRODUCT_HIERARCHY
Use with available fluent helpers to apply the ProductHierarchy field to query operations.
|
static OpportunityItemField<BigDecimal> |
PRODUCT_QUANTITY
Use with available fluent helpers to apply the ProductQuantity field to query operations.
|
static OpportunityItemField<String> |
PROSPECT
Use with available fluent helpers to apply the Prospect field to query operations.
|
static OpportunityItemField<String> |
REFERENCE_LEAD
Use with available fluent helpers to apply the ReferenceLead field to query operations.
|
static OpportunityItemField<String> |
REFERENCE_LEAD_ITEM
Use with available fluent helpers to apply the ReferenceLeadItem field to query operations.
|
static OpportunityItemField<String> |
SALES_QUANTITY_UNIT
Use with available fluent helpers to apply the SalesQuantityUnit field to query operations.
|
static OpportunityItemOneToOneLink<Opportunity> |
TO_OPPORTUNITY
Use with available fluent helpers to apply the to_Opportunity navigation property to query operations.
|
static OpportunityItemLink<OpptyItmFUPSalesOrder> |
TO_OPPORTUNITY_ITEM_SALES_ORDER
Use with available fluent helpers to apply the to_OpportunityItemSalesOrder navigation property to query
operations.
|
static OpportunityItemLink<OpptyItmFUPSalesQuotation> |
TO_OPPORTUNITY_ITEM_SALES_QUOTATION
Use with available fluent helpers to apply the to_OpportunityItemSalesQuotation navigation property to
query operations.
|
static OpportunityItemLink<OpptyItmFUPServiceOrder> |
TO_OPPORTUNITY_ITEM_SERVICE_ORDER
Use with available fluent helpers to apply the to_OpportunityItemServiceOrder navigation property to query
operations.
|
static OpportunityItemLink<OpportunityItemPersonResp> |
TO_PERSON_RESPONSIBLE
Use with available fluent helpers to apply the to_PersonResponsible navigation property to query
operations.
|
static OpportunityItemLink<OpportunityItemSalesRep> |
TO_SALES_REPRESENTATIVE
Use with available fluent helpers to apply the to_SalesRepresentative navigation property to query
operations.
|
static OpportunityItemLink<OpportunityItemText> |
TO_TEXT
Use with available fluent helpers to apply the to_Text navigation property to query operations.
|
static OpportunityItemField<String> |
TRANSACTION_CURRENCY
Use with available fluent helpers to apply the TransactionCurrency field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
OpportunityItem() |
OpportunityItem(String opportunity,
String opportunityItem,
UUID opportunityUUID,
String opportunityItemCategory,
UUID opportunityItemUUID,
String opportunityItemDescription,
String product,
String productHierarchy,
BigDecimal netValueAmount,
String transactionCurrency,
BigDecimal productQuantity,
String salesQuantityUnit,
String opportunityItemStatus,
String competitor,
String contactPerson,
String prospect,
String payerParty,
String referenceLead,
String referenceLeadItem,
Opportunity toOpportunity,
List<OpptyItmFUPSalesOrder> toOpportunityItemSalesOrder,
List<OpptyItmFUPSalesQuotation> toOpportunityItemSalesQuotation,
List<OpptyItmFUPServiceOrder> toOpportunityItemServiceOrder,
List<OpportunityItemPersonResp> toPersonResponsible,
List<OpportunityItemSalesRep> toSalesRepresentative,
List<OpportunityItemText> toText) |
Modifier and Type | Method and Description |
---|---|
void |
addOpportunityItemSalesOrder(OpptyItmFUPSalesOrder... entity)
Adds elements to the list of associated OpptyItmFUPSalesOrder entities.
|
void |
addOpportunityItemSalesQuotation(OpptyItmFUPSalesQuotation... entity)
Adds elements to the list of associated OpptyItmFUPSalesQuotation entities.
|
void |
addOpportunityItemServiceOrder(OpptyItmFUPServiceOrder... entity)
Adds elements to the list of associated OpptyItmFUPServiceOrder entities.
|
void |
addPersonResponsible(OpportunityItemPersonResp... entity)
Adds elements to the list of associated OpportunityItemPersonResp entities.
|
void |
addSalesRepresentative(OpportunityItemSalesRep... entity)
Adds elements to the list of associated OpportunityItemSalesRep entities.
|
void |
addText(OpportunityItemText... entity)
Adds elements to the list of associated OpportunityItemText entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static OpportunityItem.OpportunityItemBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Opportunity |
fetchOpportunity()
Fetches the Opportunity entity (one to one) associated with this entity.
|
List<OpptyItmFUPSalesOrder> |
fetchOpportunityItemSalesOrder()
Fetches the OpptyItmFUPSalesOrder entities (one to many) associated with this entity.
|
List<OpptyItmFUPSalesQuotation> |
fetchOpportunityItemSalesQuotation()
Fetches the OpptyItmFUPSalesQuotation entities (one to many) associated with this entity.
|
List<OpptyItmFUPServiceOrder> |
fetchOpportunityItemServiceOrder()
Fetches the OpptyItmFUPServiceOrder entities (one to many) associated with this entity.
|
List<OpportunityItemPersonResp> |
fetchPersonResponsible()
Fetches the OpportunityItemPersonResp entities (one to many) associated with this entity.
|
List<OpportunityItemSalesRep> |
fetchSalesRepresentative()
Fetches the OpportunityItemSalesRep entities (one to many) associated with this entity.
|
List<OpportunityItemText> |
fetchText()
Fetches the OpportunityItemText entities (one to many) associated with this entity.
|
static <T> OpportunityItemField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
String |
getCompetitor()
Constraints: Not nullable, Maximum length: 10
|
String |
getContactPerson()
Constraints: Not nullable, Maximum length: 10
|
protected String |
getDefaultServicePath()
Used by fluent helpers and navigation property methods to construct OData queries.
|
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection()
Used by fluent helpers and navigation property methods to construct OData queries.
|
protected Map<String,Object> |
getKey() |
BigDecimal |
getNetValueAmount()
Constraints: Not nullable, Precision: 16, Scale: 3
|
String |
getOpportunity()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
io.vavr.control.Option<Opportunity> |
getOpportunityIfPresent()
Retrieval of associated Opportunity entity (one to one).
|
String |
getOpportunityItem()
(Key Field) Constraints: Not nullable, Maximum length: 6
|
String |
getOpportunityItemCategory()
Constraints: Not nullable, Maximum length: 4
|
String |
getOpportunityItemDescription()
Constraints: Not nullable, Maximum length: 40
|
io.vavr.control.Option<List<OpptyItmFUPSalesOrder>> |
getOpportunityItemSalesOrderIfPresent()
Retrieval of associated OpptyItmFUPSalesOrder entities (one to many).
|
List<OpptyItmFUPSalesOrder> |
getOpportunityItemSalesOrderOrFetch()
Retrieval of associated OpptyItmFUPSalesOrder entities (one to many).
|
io.vavr.control.Option<List<OpptyItmFUPSalesQuotation>> |
getOpportunityItemSalesQuotationIfPresent()
Retrieval of associated OpptyItmFUPSalesQuotation entities (one to many).
|
List<OpptyItmFUPSalesQuotation> |
getOpportunityItemSalesQuotationOrFetch()
Retrieval of associated OpptyItmFUPSalesQuotation entities (one to many).
|
io.vavr.control.Option<List<OpptyItmFUPServiceOrder>> |
getOpportunityItemServiceOrderIfPresent()
Retrieval of associated OpptyItmFUPServiceOrder entities (one to many).
|
List<OpptyItmFUPServiceOrder> |
getOpportunityItemServiceOrderOrFetch()
Retrieval of associated OpptyItmFUPServiceOrder entities (one to many).
|
String |
getOpportunityItemStatus()
Constraints: Not nullable, Maximum length: 4
|
UUID |
getOpportunityItemUUID()
Constraints: none
|
Opportunity |
getOpportunityOrFetch()
Retrieval of associated Opportunity entity (one to one).
|
UUID |
getOpportunityUUID()
Constraints: none
|
String |
getPayerParty()
Constraints: Not nullable, Maximum length: 10
|
io.vavr.control.Option<List<OpportunityItemPersonResp>> |
getPersonResponsibleIfPresent()
Retrieval of associated OpportunityItemPersonResp entities (one to many).
|
List<OpportunityItemPersonResp> |
getPersonResponsibleOrFetch()
Retrieval of associated OpportunityItemPersonResp entities (one to many).
|
String |
getProduct()
Constraints: Not nullable, Maximum length: 54
|
String |
getProductHierarchy()
Constraints: Not nullable, Maximum length: 20
|
BigDecimal |
getProductQuantity()
Constraints: Not nullable, Precision: 13, Scale: 3
|
String |
getProspect()
Constraints: Not nullable, Maximum length: 10
|
String |
getReferenceLead()
Constraints: Not nullable, Maximum length: 10
|
String |
getReferenceLeadItem()
Constraints: Not nullable, Maximum length: 6
|
String |
getSalesQuantityUnit()
Constraints: Not nullable, Maximum length: 3
|
io.vavr.control.Option<List<OpportunityItemSalesRep>> |
getSalesRepresentativeIfPresent()
Retrieval of associated OpportunityItemSalesRep entities (one to many).
|
List<OpportunityItemSalesRep> |
getSalesRepresentativeOrFetch()
Retrieval of associated OpportunityItemSalesRep entities (one to many).
|
io.vavr.control.Option<List<OpportunityItemText>> |
getTextIfPresent()
Retrieval of associated OpportunityItemText entities (one to many).
|
List<OpportunityItemText> |
getTextOrFetch()
Retrieval of associated OpportunityItemText entities (one to many).
|
String |
getTransactionCurrency()
Constraints: Not nullable, Maximum length: 5
|
Class<OpportunityItem> |
getType() |
int |
hashCode() |
void |
setCompetitor(String competitor)
Constraints: Not nullable, Maximum length: 10
|
void |
setContactPerson(String contactPerson)
Constraints: Not nullable, Maximum length: 10
|
void |
setNetValueAmount(BigDecimal netValueAmount)
Constraints: Not nullable, Precision: 16, Scale: 3
|
void |
setOpportunity(Opportunity value)
Overwrites the associated Opportunity entity for the loaded navigation property to_Opportunity.
|
void |
setOpportunity(String opportunity)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setOpportunityItem(String opportunityItem)
(Key Field) Constraints: Not nullable, Maximum length: 6
|
void |
setOpportunityItemCategory(String opportunityItemCategory)
Constraints: Not nullable, Maximum length: 4
|
void |
setOpportunityItemDescription(String opportunityItemDescription)
Constraints: Not nullable, Maximum length: 40
|
void |
setOpportunityItemSalesOrder(List<OpptyItmFUPSalesOrder> value)
Overwrites the list of associated OpptyItmFUPSalesOrder entities for the loaded navigation property
to_OpportunityItemSalesOrder.
|
void |
setOpportunityItemSalesQuotation(List<OpptyItmFUPSalesQuotation> value)
Overwrites the list of associated OpptyItmFUPSalesQuotation entities for the loaded navigation property
to_OpportunityItemSalesQuotation.
|
void |
setOpportunityItemServiceOrder(List<OpptyItmFUPServiceOrder> value)
Overwrites the list of associated OpptyItmFUPServiceOrder entities for the loaded navigation property
to_OpportunityItemServiceOrder.
|
void |
setOpportunityItemStatus(String opportunityItemStatus)
Constraints: Not nullable, Maximum length: 4
|
void |
setOpportunityItemUUID(UUID opportunityItemUUID)
Constraints: none
|
void |
setOpportunityUUID(UUID opportunityUUID)
Constraints: none
|
void |
setPayerParty(String payerParty)
Constraints: Not nullable, Maximum length: 10
|
void |
setPersonResponsible(List<OpportunityItemPersonResp> value)
Overwrites the list of associated OpportunityItemPersonResp entities for the loaded navigation property
to_PersonResponsible.
|
void |
setProduct(String product)
Constraints: Not nullable, Maximum length: 54
|
void |
setProductHierarchy(String productHierarchy)
Constraints: Not nullable, Maximum length: 20
|
void |
setProductQuantity(BigDecimal productQuantity)
Constraints: Not nullable, Precision: 13, Scale: 3
|
void |
setProspect(String prospect)
Constraints: Not nullable, Maximum length: 10
|
void |
setReferenceLead(String referenceLead)
Constraints: Not nullable, Maximum length: 10
|
void |
setReferenceLeadItem(String referenceLeadItem)
Constraints: Not nullable, Maximum length: 6
|
void |
setSalesQuantityUnit(String salesQuantityUnit)
Constraints: Not nullable, Maximum length: 3
|
void |
setSalesRepresentative(List<OpportunityItemSalesRep> value)
Overwrites the list of associated OpportunityItemSalesRep entities for the loaded navigation property
to_SalesRepresentative.
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setText(List<OpportunityItemText> value)
Overwrites the list of associated OpportunityItemText entities for the loaded navigation property
to_Text.
|
void |
setTransactionCurrency(String transactionCurrency)
Constraints: Not nullable, Maximum length: 5
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final OpportunityItemSelectable ALL_FIELDS
public static final OpportunityItemField<String> OPPORTUNITY
public static final OpportunityItemField<String> OPPORTUNITY_ITEM
public static final OpportunityItemField<UUID> OPPORTUNITY_UUID
public static final OpportunityItemField<String> OPPORTUNITY_ITEM_CATEGORY
public static final OpportunityItemField<UUID> OPPORTUNITY_ITEM_UUID
public static final OpportunityItemField<String> OPPORTUNITY_ITEM_DESCRIPTION
public static final OpportunityItemField<String> PRODUCT
public static final OpportunityItemField<String> PRODUCT_HIERARCHY
public static final OpportunityItemField<BigDecimal> NET_VALUE_AMOUNT
public static final OpportunityItemField<String> TRANSACTION_CURRENCY
public static final OpportunityItemField<BigDecimal> PRODUCT_QUANTITY
public static final OpportunityItemField<String> SALES_QUANTITY_UNIT
public static final OpportunityItemField<String> OPPORTUNITY_ITEM_STATUS
public static final OpportunityItemField<String> COMPETITOR
public static final OpportunityItemField<String> CONTACT_PERSON
public static final OpportunityItemField<String> PROSPECT
public static final OpportunityItemField<String> PAYER_PARTY
public static final OpportunityItemField<String> REFERENCE_LEAD
public static final OpportunityItemField<String> REFERENCE_LEAD_ITEM
public static final OpportunityItemOneToOneLink<Opportunity> TO_OPPORTUNITY
public static final OpportunityItemLink<OpptyItmFUPSalesOrder> TO_OPPORTUNITY_ITEM_SALES_ORDER
public static final OpportunityItemLink<OpptyItmFUPSalesQuotation> TO_OPPORTUNITY_ITEM_SALES_QUOTATION
public static final OpportunityItemLink<OpptyItmFUPServiceOrder> TO_OPPORTUNITY_ITEM_SERVICE_ORDER
public static final OpportunityItemLink<OpportunityItemPersonResp> TO_PERSON_RESPONSIBLE
public static final OpportunityItemLink<OpportunityItemSalesRep> TO_SALES_REPRESENTATIVE
public static final OpportunityItemLink<OpportunityItemText> TO_TEXT
public OpportunityItem()
public OpportunityItem(@Nullable String opportunity, @Nullable String opportunityItem, @Nullable UUID opportunityUUID, @Nullable String opportunityItemCategory, @Nullable UUID opportunityItemUUID, @Nullable String opportunityItemDescription, @Nullable String product, @Nullable String productHierarchy, @Nullable BigDecimal netValueAmount, @Nullable String transactionCurrency, @Nullable BigDecimal productQuantity, @Nullable String salesQuantityUnit, @Nullable String opportunityItemStatus, @Nullable String competitor, @Nullable String contactPerson, @Nullable String prospect, @Nullable String payerParty, @Nullable String referenceLead, @Nullable String referenceLeadItem, @Nullable Opportunity toOpportunity, List<OpptyItmFUPSalesOrder> toOpportunityItemSalesOrder, List<OpptyItmFUPSalesQuotation> toOpportunityItemSalesQuotation, List<OpptyItmFUPServiceOrder> toOpportunityItemServiceOrder, List<OpportunityItemPersonResp> toPersonResponsible, List<OpportunityItemSalesRep> toSalesRepresentative, List<OpportunityItemText> toText)
@Nonnull public Class<OpportunityItem> getType()
getType
in class VdmObject<OpportunityItem>
public void setOpportunity(@Nullable String opportunity)
Original property name from the Odata EDM: Opportunity
opportunity
- Transaction IDpublic void setOpportunityItem(@Nullable String opportunityItem)
Original property name from the Odata EDM: OpportunityItem
opportunityItem
- Shortened Item Number in Documentpublic void setOpportunityUUID(@Nullable UUID opportunityUUID)
Original property name from the Odata EDM: OpportunityUUID
opportunityUUID
- GUID of a CRM Order Objectpublic void setOpportunityItemCategory(@Nullable String opportunityItemCategory)
Original property name from the Odata EDM: OpportunityItemCategory
opportunityItemCategory
- Item Categorypublic void setOpportunityItemUUID(@Nullable UUID opportunityItemUUID)
Original property name from the Odata EDM: OpportunityItemUUID
opportunityItemUUID
- GUID of a CRM Order Objectpublic void setOpportunityItemDescription(@Nullable String opportunityItemDescription)
Original property name from the Odata EDM: OpportunityItemDescription
opportunityItemDescription
- Product Descriptionpublic void setProduct(@Nullable String product)
Original property name from the Odata EDM: Product
product
- Product Name Enteredpublic void setProductHierarchy(@Nullable String productHierarchy)
Original property name from the Odata EDM: ProductHierarchy
productHierarchy
- Product Categorypublic void setNetValueAmount(@Nullable BigDecimal netValueAmount)
Original property name from the Odata EDM: NetValueAmount
netValueAmount
- Net Valuepublic void setTransactionCurrency(@Nullable String transactionCurrency)
Original property name from the Odata EDM: TransactionCurrency
transactionCurrency
- Currencypublic void setProductQuantity(@Nullable BigDecimal productQuantity)
Original property name from the Odata EDM: ProductQuantity
productQuantity
- CRM: Order Quantitypublic void setSalesQuantityUnit(@Nullable String salesQuantityUnit)
Original property name from the Odata EDM: SalesQuantityUnit
salesQuantityUnit
- Unit of Measure in Which the Product Is Soldpublic void setOpportunityItemStatus(@Nullable String opportunityItemStatus)
Original property name from the Odata EDM: OpportunityItemStatus
opportunityItemStatus
- Opportunity Lifecycle Statuspublic void setCompetitor(@Nullable String competitor)
Original property name from the Odata EDM: Competitor
competitor
- Competitorpublic void setContactPerson(@Nullable String contactPerson)
Original property name from the Odata EDM: ContactPerson
contactPerson
- Customer Contact Personpublic void setProspect(@Nullable String prospect)
Original property name from the Odata EDM: Prospect
prospect
- Sales Prospectpublic void setPayerParty(@Nullable String payerParty)
Original property name from the Odata EDM: PayerParty
payerParty
- Payerpublic void setReferenceLead(@Nullable String referenceLead)
Original property name from the Odata EDM: ReferenceLead
referenceLead
- Transaction IDpublic void setReferenceLeadItem(@Nullable String referenceLeadItem)
Original property name from the Odata EDM: ReferenceLeadItem
referenceLeadItem
- Shortened Item Number in Documentprotected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<OpportunityItem>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<OpportunityItem>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<OpportunityItem>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<OpportunityItem>
@Nonnull public static <T> OpportunityItemField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
T
- The type of the extension field when performing value comparisons.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.@Nonnull public static <T,DomainT> OpportunityItemField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<OpportunityItem>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<OpportunityItem>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
VdmEntity
Note: Use with caution, as this can easily break the fetch calls on this entity. See the interface of the corresponding service for the default service path.
attachToService
in class VdmEntity<OpportunityItem>
servicePath
- Optional parameter. New service path to apply to this entity and any associated entities that were
previously fetched. If a null value is provided and the service path has never been set, then the
service path will be set to the default defined in the corresponding service interface.destination
- New destination to apply to this entity and any associated entities that were previously fetched.protected String getDefaultServicePath()
VdmEntity
getDefaultServicePath
in class VdmEntity<OpportunityItem>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<OpportunityItem>
@Nullable public Opportunity fetchOpportunity() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
null
if an entity is not associated.com.sap.cloud.sdk.odatav2.connectivity.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.@Nullable public Opportunity getOpportunityOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_Opportunity of a queried OpportunityItem 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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public io.vavr.control.Option<Opportunity> getOpportunityIfPresent()
If the navigation property for an entity OpportunityItem has not been resolved yet, this method will
not query further information. Instead its Option
result state will be empty
.
Option
with result state
empty
is returned.public void setOpportunity(Opportunity value)
value
- New Opportunity entity.@Nonnull public List<OpptyItmFUPSalesOrder> fetchOpportunityItemSalesOrder() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public List<OpptyItmFUPSalesOrder> getOpportunityItemSalesOrderOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_OpportunityItemSalesOrder of a queried OpportunityItem 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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public io.vavr.control.Option<List<OpptyItmFUPSalesOrder>> getOpportunityItemSalesOrderIfPresent()
If the navigation property for an entity OpportunityItem has not been resolved yet, this method will
not query further information. Instead its Option
result state will be empty
.
Option
with result
state empty
is returned.public void setOpportunityItemSalesOrder(@Nonnull List<OpptyItmFUPSalesOrder> value)
If the navigation property to_OpportunityItemSalesOrder of a queried OpportunityItem 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.
value
- List of OpptyItmFUPSalesOrder entities.public void addOpportunityItemSalesOrder(OpptyItmFUPSalesOrder... entity)
If the navigation property to_OpportunityItemSalesOrder of a queried OpportunityItem 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.
entity
- Array of OpptyItmFUPSalesOrder entities.@Nonnull public List<OpptyItmFUPSalesQuotation> fetchOpportunityItemSalesQuotation() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public List<OpptyItmFUPSalesQuotation> getOpportunityItemSalesQuotationOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_OpportunityItemSalesQuotation of a queried OpportunityItem 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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public io.vavr.control.Option<List<OpptyItmFUPSalesQuotation>> getOpportunityItemSalesQuotationIfPresent()
If the navigation property for an entity OpportunityItem has not been resolved yet, this method will
not query further information. Instead its Option
result state will be empty
.
Option
with
result state empty
is returned.public void setOpportunityItemSalesQuotation(@Nonnull List<OpptyItmFUPSalesQuotation> value)
If the navigation property to_OpportunityItemSalesQuotation of a queried OpportunityItem 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.
value
- List of OpptyItmFUPSalesQuotation entities.public void addOpportunityItemSalesQuotation(OpptyItmFUPSalesQuotation... entity)
If the navigation property to_OpportunityItemSalesQuotation of a queried OpportunityItem 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.
entity
- Array of OpptyItmFUPSalesQuotation entities.@Nonnull public List<OpptyItmFUPServiceOrder> fetchOpportunityItemServiceOrder() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public List<OpptyItmFUPServiceOrder> getOpportunityItemServiceOrderOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_OpportunityItemServiceOrder of a queried OpportunityItem 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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public io.vavr.control.Option<List<OpptyItmFUPServiceOrder>> getOpportunityItemServiceOrderIfPresent()
If the navigation property for an entity OpportunityItem has not been resolved yet, this method will
not query further information. Instead its Option
result state will be empty
.
Option
with
result state empty
is returned.public void setOpportunityItemServiceOrder(@Nonnull List<OpptyItmFUPServiceOrder> value)
If the navigation property to_OpportunityItemServiceOrder of a queried OpportunityItem 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.
value
- List of OpptyItmFUPServiceOrder entities.public void addOpportunityItemServiceOrder(OpptyItmFUPServiceOrder... entity)
If the navigation property to_OpportunityItemServiceOrder of a queried OpportunityItem 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.
entity
- Array of OpptyItmFUPServiceOrder entities.@Nonnull public List<OpportunityItemPersonResp> fetchPersonResponsible() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public List<OpportunityItemPersonResp> getPersonResponsibleOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_PersonResponsible of a queried OpportunityItem 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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public io.vavr.control.Option<List<OpportunityItemPersonResp>> getPersonResponsibleIfPresent()
If the navigation property for an entity OpportunityItem has not been resolved yet, this method will
not query further information. Instead its Option
result state will be empty
.
Option
with result state
empty
is returned.public void setPersonResponsible(@Nonnull List<OpportunityItemPersonResp> value)
If the navigation property to_PersonResponsible of a queried OpportunityItem 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.
value
- List of OpportunityItemPersonResp entities.public void addPersonResponsible(OpportunityItemPersonResp... entity)
If the navigation property to_PersonResponsible of a queried OpportunityItem 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.
entity
- Array of OpportunityItemPersonResp entities.@Nonnull public List<OpportunityItemSalesRep> fetchSalesRepresentative() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public List<OpportunityItemSalesRep> getSalesRepresentativeOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_SalesRepresentative of a queried OpportunityItem 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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public io.vavr.control.Option<List<OpportunityItemSalesRep>> getSalesRepresentativeIfPresent()
If the navigation property for an entity OpportunityItem has not been resolved yet, this method will
not query further information. Instead its Option
result state will be empty
.
Option
with result
state empty
is returned.public void setSalesRepresentative(@Nonnull List<OpportunityItemSalesRep> value)
If the navigation property to_SalesRepresentative of a queried OpportunityItem 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.
value
- List of OpportunityItemSalesRep entities.public void addSalesRepresentative(OpportunityItemSalesRep... entity)
If the navigation property to_SalesRepresentative of a queried OpportunityItem 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.
entity
- Array of OpportunityItemSalesRep entities.@Nonnull public List<OpportunityItemText> fetchText() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public List<OpportunityItemText> getTextOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_Text of a queried OpportunityItem 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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public io.vavr.control.Option<List<OpportunityItemText>> getTextIfPresent()
If the navigation property for an entity OpportunityItem has not been resolved yet, this method will
not query further information. Instead its Option
result state will be empty
.
Option
with result state empty
is returned.public void setText(@Nonnull List<OpportunityItemText> value)
If the navigation property to_Text of a queried OpportunityItem 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.
value
- List of OpportunityItemText entities.public void addText(OpportunityItemText... entity)
If the navigation property to_Text of a queried OpportunityItem 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.
entity
- Array of OpportunityItemText entities.@Nonnull public static OpportunityItem.OpportunityItemBuilder builder()
@Nullable public String getOpportunity()
Original property name from the Odata EDM: Opportunity
@Nullable public String getOpportunityItem()
Original property name from the Odata EDM: OpportunityItem
@Nullable public UUID getOpportunityUUID()
Original property name from the Odata EDM: OpportunityUUID
@Nullable public String getOpportunityItemCategory()
Original property name from the Odata EDM: OpportunityItemCategory
@Nullable public UUID getOpportunityItemUUID()
Original property name from the Odata EDM: OpportunityItemUUID
@Nullable public String getOpportunityItemDescription()
Original property name from the Odata EDM: OpportunityItemDescription
@Nullable public String getProduct()
Original property name from the Odata EDM: Product
@Nullable public String getProductHierarchy()
Original property name from the Odata EDM: ProductHierarchy
@Nullable public BigDecimal getNetValueAmount()
Original property name from the Odata EDM: NetValueAmount
@Nullable public String getTransactionCurrency()
Original property name from the Odata EDM: TransactionCurrency
@Nullable public BigDecimal getProductQuantity()
Original property name from the Odata EDM: ProductQuantity
@Nullable public String getSalesQuantityUnit()
Original property name from the Odata EDM: SalesQuantityUnit
@Nullable public String getOpportunityItemStatus()
Original property name from the Odata EDM: OpportunityItemStatus
@Nullable public String getCompetitor()
Original property name from the Odata EDM: Competitor
@Nullable public String getContactPerson()
Original property name from the Odata EDM: ContactPerson
@Nullable public String getProspect()
Original property name from the Odata EDM: Prospect
@Nullable public String getPayerParty()
Original property name from the Odata EDM: PayerParty
@Nullable public String getReferenceLead()
Original property name from the Odata EDM: ReferenceLead
@Nullable public String getReferenceLeadItem()
Original property name from the Odata EDM: ReferenceLeadItem
@Nonnull public String toString()
toString
in class VdmObject<OpportunityItem>
public boolean equals(@Nullable Object o)
equals
in class VdmObject<OpportunityItem>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmObject<OpportunityItem>
public int hashCode()
hashCode
in class VdmObject<OpportunityItem>
Copyright © 2021 SAP SE. All rights reserved.