public class SchAgrmtPartner extends VdmEntity<SchAgrmtPartner>
Modifier and Type | Class and Description |
---|---|
static class |
SchAgrmtPartner.SchAgrmtPartnerBuilder |
Modifier and Type | Field and Description |
---|---|
static SchAgrmtPartnerSelectable |
ALL_FIELDS
Selector for all available fields of SchAgrmtPartner.
|
static SchAgrmtPartnerField<Boolean> |
DEFAULT_PARTNER
Use with available fluent helpers to apply the DefaultPartner field to query operations.
|
static SchAgrmtPartnerField<String> |
PARTNER_COUNTER
Use with available fluent helpers to apply the PartnerCounter field to query operations.
|
static SchAgrmtPartnerField<String> |
PARTNER_FUNCTION
Use with available fluent helpers to apply the PartnerFunction field to query operations.
|
static SchAgrmtPartnerField<String> |
PLANT
Use with available fluent helpers to apply the Plant field to query operations.
|
static SchAgrmtPartnerField<String> |
PURCHASING_ORGANIZATION
Use with available fluent helpers to apply the PurchasingOrganization field to query operations.
|
static SchAgrmtPartnerField<String> |
SCHEDULING_AGREEMENT
Use with available fluent helpers to apply the SchedulingAgreement field to query operations.
|
static SchAgrmtPartnerField<String> |
SCHEDULING_AGREEMENT_ITEM
Use with available fluent helpers to apply the SchedulingAgreementItem field to query operations.
|
static SchAgrmtPartnerField<String> |
SUPPLIER
Use with available fluent helpers to apply the Supplier field to query operations.
|
static SchAgrmtPartnerField<String> |
SUPPLIER_SUBRANGE
Use with available fluent helpers to apply the SupplierSubrange field to query operations.
|
static SchAgrmtPartnerLink<SchAgrmtItem> |
TO_SCHEDG_AGRMT_ITM
Use with available fluent helpers to apply the to_SchedgAgrmtItm navigation property to query operations.
|
Constructor and Description |
---|
SchAgrmtPartner() |
SchAgrmtPartner(String schedulingAgreement,
String schedulingAgreementItem,
String purchasingOrganization,
String supplierSubrange,
String plant,
String partnerFunction,
String partnerCounter,
String supplier,
Boolean defaultPartner,
ErpConfigContext erpConfigContext,
SchAgrmtItem toSchedgAgrmtItm) |
Modifier and Type | Method and Description |
---|---|
static SchAgrmtPartner.SchAgrmtPartnerBuilder |
builder() |
boolean |
equals(Object o) |
SchAgrmtItem |
fetchSchedgAgrmtItm()
Fetches the SchAgrmtItem entity (one to one) associated with this entity.
|
static <T> SchAgrmtPartnerField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
Boolean |
getDefaultPartner()
Constraints: none
|
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
String |
getPartnerCounter()
(Key Field) Constraints: Not nullable, Maximum length: 3
|
String |
getPartnerFunction()
(Key Field) Constraints: Not nullable, Maximum length: 2
|
String |
getPlant()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getPurchasingOrganization()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
SchAgrmtItem |
getSchedgAgrmtItmOrFetch()
Retrieval of associated SchAgrmtItem entity (one to one).
|
com.google.common.base.Optional<SchAgrmtItem> |
getSchedgAgrmtItmOrNull()
Retrieval of associated SchAgrmtItem entity (one to one).
|
String |
getSchedulingAgreement()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getSchedulingAgreementItem()
(Key Field) Constraints: Not nullable, Maximum length: 5
|
String |
getSupplier()
Constraints: Not nullable, Maximum length: 10
|
String |
getSupplierSubrange()
(Key Field) Constraints: Not nullable, Maximum length: 6
|
Class<SchAgrmtPartner> |
getType() |
int |
hashCode() |
void |
setDefaultPartner(Boolean defaultPartner)
Constraints: none
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
void |
setPartnerCounter(String partnerCounter)
(Key Field) Constraints: Not nullable, Maximum length: 3
|
void |
setPartnerFunction(String partnerFunction)
(Key Field) Constraints: Not nullable, Maximum length: 2
|
void |
setPlant(String plant)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setPurchasingOrganization(String purchasingOrganization)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setSchedgAgrmtItm(SchAgrmtItem value)
Overwrites the associated SchAgrmtItem entity for the loaded navigation property to_SchedgAgrmtItm.
|
void |
setSchedulingAgreement(String schedulingAgreement)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setSchedulingAgreementItem(String schedulingAgreementItem)
(Key Field) Constraints: Not nullable, Maximum length: 5
|
void |
setSupplier(String supplier)
Constraints: Not nullable, Maximum length: 10
|
void |
setSupplierSubrange(String supplierSubrange)
(Key Field) Constraints: Not nullable, Maximum length: 6
|
String |
toString() |
getCustomField, getCustomField, getCustomFieldNames, getCustomFields, hasCustomField, hasCustomField, setCustomField, setCustomField
public static final SchAgrmtPartnerSelectable ALL_FIELDS
public static final SchAgrmtPartnerField<String> SCHEDULING_AGREEMENT
public static final SchAgrmtPartnerField<String> SCHEDULING_AGREEMENT_ITEM
public static final SchAgrmtPartnerField<String> PURCHASING_ORGANIZATION
public static final SchAgrmtPartnerField<String> SUPPLIER_SUBRANGE
public static final SchAgrmtPartnerField<String> PLANT
public static final SchAgrmtPartnerField<String> PARTNER_FUNCTION
public static final SchAgrmtPartnerField<String> PARTNER_COUNTER
public static final SchAgrmtPartnerField<String> SUPPLIER
public static final SchAgrmtPartnerField<Boolean> DEFAULT_PARTNER
public static final SchAgrmtPartnerLink<SchAgrmtItem> TO_SCHEDG_AGRMT_ITM
public SchAgrmtPartner()
public SchAgrmtPartner(@Nullable String schedulingAgreement, @Nullable String schedulingAgreementItem, @Nullable String purchasingOrganization, @Nullable String supplierSubrange, @Nullable String plant, @Nullable String partnerFunction, @Nullable String partnerCounter, @Nullable String supplier, @Nullable Boolean defaultPartner, @Nullable ErpConfigContext erpConfigContext, @Nullable SchAgrmtItem toSchedgAgrmtItm)
public Class<SchAgrmtPartner> getType()
getType
in class VdmObject<SchAgrmtPartner>
public static <T> SchAgrmtPartnerField<T> field(String fieldName, Class<T> fieldType)
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.public SchAgrmtItem fetchSchedgAgrmtItm() 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.public SchAgrmtItem getSchedgAgrmtItmOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_SchedgAgrmtItm of a queried SchAgrmtPartner 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.public com.google.common.base.Optional<SchAgrmtItem> getSchedgAgrmtItmOrNull()
If the navigation property to_SchedgAgrmtItm for an entity SchAgrmtPartner has not been resolved yet, this method will not query further information. Instead its Optional result state will be null.
public void setSchedgAgrmtItm(SchAgrmtItem value)
value
- New SchAgrmtItem entity.public static SchAgrmtPartner.SchAgrmtPartnerBuilder builder()
@Nullable public String getSchedulingAgreement()
@Nullable public String getSchedulingAgreementItem()
@Nullable public String getPurchasingOrganization()
@Nullable public String getSupplierSubrange()
@Nullable public String getPlant()
@Nullable public String getPartnerFunction()
@Nullable public String getPartnerCounter()
@Nullable public String getSupplier()
@Nullable public Boolean getDefaultPartner()
@Nullable public ErpConfigContext getErpConfigContext()
public void setSchedulingAgreement(@Nullable String schedulingAgreement)
schedulingAgreement
- public void setSchedulingAgreementItem(@Nullable String schedulingAgreementItem)
schedulingAgreementItem
- public void setPurchasingOrganization(@Nullable String purchasingOrganization)
purchasingOrganization
- public void setSupplierSubrange(@Nullable String supplierSubrange)
supplierSubrange
- public void setPlant(@Nullable String plant)
plant
- public void setPartnerFunction(@Nullable String partnerFunction)
partnerFunction
- public void setPartnerCounter(@Nullable String partnerCounter)
partnerCounter
- public void setSupplier(@Nullable String supplier)
supplier
- public void setDefaultPartner(@Nullable Boolean defaultPartner)
defaultPartner
- public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
erpConfigContext
- public String toString()
toString
in class VdmObject<SchAgrmtPartner>
public boolean equals(Object o)
equals
in class VdmObject<SchAgrmtPartner>
public int hashCode()
hashCode
in class VdmObject<SchAgrmtPartner>
Copyright © 2018 SAP SE. All rights reserved.