Modifier and Type | Class and Description |
---|---|
static class |
Project.ProjectBuilder |
Modifier and Type | Field and Description |
---|---|
static ProjectSelectable |
ALL_FIELDS
Selector for all available fields of Project.
|
static ProjectField<String> |
CONFIDENTIAL
Use with available fluent helpers to apply the Confidential field to query operations.
|
static ProjectField<String> |
COST_CENTER
Use with available fluent helpers to apply the CostCenter field to query operations.
|
static ProjectField<String> |
CURRENCY
Use with available fluent helpers to apply the Currency field to query operations.
|
static ProjectField<String> |
CUSTOMER
Use with available fluent helpers to apply the Customer field to query operations.
|
static ProjectField<LocalDateTime> |
END_DATE
Use with available fluent helpers to apply the EndDate field to query operations.
|
static ProjectField<String> |
ORG_ID
Use with available fluent helpers to apply the OrgID field to query operations.
|
static ProjectField<String> |
PROFIT_CENTER
Use with available fluent helpers to apply the ProfitCenter field to query operations.
|
static ProjectField<String> |
PROJ_ACCOUNTANT_COMP_CODE
Use with available fluent helpers to apply the ProjAccountantCompCode field to query operations.
|
static ProjectField<String> |
PROJ_ACCOUNTANT_EXT_ID
Use with available fluent helpers to apply the ProjAccountantExtId field to query operations.
|
static ProjectField<String> |
PROJ_CONTROLLER_COMP_CODE
Use with available fluent helpers to apply the ProjControllerCompCode field to query operations.
|
static ProjectField<String> |
PROJ_CONTROLLER_EXT_ID
Use with available fluent helpers to apply the ProjControllerExtId field to query operations.
|
static ProjectField<String> |
PROJ_MANAGER_COMP_CODE
Use with available fluent helpers to apply the ProjManagerCompCode field to query operations.
|
static ProjectField<String> |
PROJ_MANAGER_EXT_ID
Use with available fluent helpers to apply the ProjManagerExtId field to query operations.
|
static ProjectField<String> |
PROJ_PARTNER_COMP_CODE
Use with available fluent helpers to apply the ProjPartnerCompCode field to query operations.
|
static ProjectField<String> |
PROJ_PARTNER_EXT_ID
Use with available fluent helpers to apply the ProjPartnerExtId field to query operations.
|
static ProjectField<String> |
PROJECT_CATEGORY
Use with available fluent helpers to apply the ProjectCategory field to query operations.
|
static ProjectField<String> |
PROJECT_DESC
Use with available fluent helpers to apply the ProjectDesc field to query operations.
|
static ProjectField<String> |
PROJECT_ID
Use with available fluent helpers to apply the ProjectID field to query operations.
|
static ProjectField<String> |
PROJECT_NAME
Use with available fluent helpers to apply the ProjectName field to query operations.
|
static ProjectField<String> |
PROJECT_STAGE
Use with available fluent helpers to apply the ProjectStage field to query operations.
|
static ProjectField<LocalDateTime> |
START_DATE
Use with available fluent helpers to apply the StartDate field to query operations.
|
static ProjectLink<WorkPackage> |
TO_WORK_PACKAGE_SET
Use with available fluent helpers to apply the WorkPackageSet navigation property to query operations.
|
changedOriginalFields
Constructor and Description |
---|
Project() |
Project(String projectDesc,
String projManagerCompCode,
String projAccountantCompCode,
String projectID,
String projControllerCompCode,
String projManagerExtId,
String projectName,
String projPartnerCompCode,
String projAccountantExtId,
String projectStage,
String projControllerExtId,
String projPartnerExtId,
LocalDateTime startDate,
LocalDateTime endDate,
String customer,
String costCenter,
String profitCenter,
String projectCategory,
String currency,
String orgID,
String confidential,
ErpConfigContext erpConfigContext,
List<WorkPackage> toWorkPackageSet) |
Modifier and Type | Method and Description |
---|---|
void |
addWorkPackageSet(WorkPackage... entity)
Adds elements to the list of associated WorkPackage entities.
|
static Project.ProjectBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<WorkPackage> |
fetchWorkPackageSet()
Fetches the WorkPackage entities (one to many) associated with this entity.
|
static <T> ProjectField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
String |
getConfidential()
Constraints: Not nullable, Maximum length: 1 Original property name from the Odata EDM: Confidential
|
String |
getCostCenter()
Constraints: Not nullable, Maximum length: 20 Original property name from the Odata EDM: CostCenter
|
String |
getCurrency()
Constraints: Not nullable, Maximum length: 5 Original property name from the Odata EDM: Currency
|
String |
getCustomer()
Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: Customer
|
LocalDateTime |
getEndDate()
Constraints: Not nullable, Precision: 7 Original property name from the Odata EDM: EndDate
|
protected String |
getEndpointUrl() |
protected String |
getEntityCollection() |
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
protected Map<String,Object> |
getKey() |
String |
getOrgID()
Constraints: Not nullable, Maximum length: 5 Original property name from the Odata EDM: OrgIDThis field links master project data with the company code and plant.
|
String |
getProfitCenter()
Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: ProfitCenter
|
String |
getProjAccountantCompCode()
Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: ProjAccountantCompCode
|
String |
getProjAccountantExtId()
Constraints: Not nullable, Maximum length: 38 Original property name from the Odata EDM: ProjAccountantExtId
|
String |
getProjControllerCompCode()
Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: ProjControllerCompCode
|
String |
getProjControllerExtId()
Constraints: Not nullable, Maximum length: 38 Original property name from the Odata EDM: ProjControllerExtId
|
String |
getProjectCategory()
Constraints: Not nullable, Maximum length: 1 Original property name from the Odata EDM: ProjectCategory
|
String |
getProjectDesc()
Constraints: noneOriginal property name from the Odata EDM: ProjectDesc
|
String |
getProjectID()
(Key Field) Constraints: Not nullable, Maximum length: 40 Original property name from the Odata EDM: ProjectID
|
String |
getProjectName()
Constraints: Not nullable, Maximum length: 40 Original property name from the Odata EDM: ProjectName
|
String |
getProjectStage()
Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: ProjectStage
|
String |
getProjManagerCompCode()
Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: ProjManagerCompCode
|
String |
getProjManagerExtId()
Constraints: Not nullable, Maximum length: 38 Original property name from the Odata EDM: ProjManagerExtId
|
String |
getProjPartnerCompCode()
Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: ProjPartnerCompCode
|
String |
getProjPartnerExtId()
Constraints: Not nullable, Maximum length: 38 Original property name from the Odata EDM: ProjPartnerExtId
|
LocalDateTime |
getStartDate()
Constraints: Not nullable, Precision: 7 Original property name from the Odata EDM: StartDate
|
Class<Project> |
getType() |
Optional<List<WorkPackage>> |
getWorkPackageSetIfPresent()
Retrieval of associated WorkPackage entities (one to many).
|
List<WorkPackage> |
getWorkPackageSetOrFetch()
Retrieval of associated WorkPackage entities (one to many).
|
int |
hashCode() |
void |
setConfidential(String confidential)
Constraints: Not nullable, Maximum length: 1 Original property name from the Odata EDM: Confidential
|
void |
setCostCenter(String costCenter)
Constraints: Not nullable, Maximum length: 20 Original property name from the Odata EDM: CostCenter
|
void |
setCurrency(String currency)
Constraints: Not nullable, Maximum length: 5 Original property name from the Odata EDM: Currency
|
void |
setCustomer(String customer)
Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: Customer
|
void |
setEndDate(LocalDateTime endDate)
Constraints: Not nullable, Precision: 7 Original property name from the Odata EDM: EndDate
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
void |
setOrgID(String orgID)
Constraints: Not nullable, Maximum length: 5 Original property name from the Odata EDM: OrgIDThis field links master project data with the company code and plant.
|
void |
setProfitCenter(String profitCenter)
Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: ProfitCenter
|
void |
setProjAccountantCompCode(String projAccountantCompCode)
Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: ProjAccountantCompCode
|
void |
setProjAccountantExtId(String projAccountantExtId)
Constraints: Not nullable, Maximum length: 38 Original property name from the Odata EDM: ProjAccountantExtId
|
void |
setProjControllerCompCode(String projControllerCompCode)
Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: ProjControllerCompCode
|
void |
setProjControllerExtId(String projControllerExtId)
Constraints: Not nullable, Maximum length: 38 Original property name from the Odata EDM: ProjControllerExtId
|
void |
setProjectCategory(String projectCategory)
Constraints: Not nullable, Maximum length: 1 Original property name from the Odata EDM: ProjectCategory
|
void |
setProjectDesc(String projectDesc)
Constraints: noneOriginal property name from the Odata EDM: ProjectDesc
|
void |
setProjectID(String projectID)
(Key Field) Constraints: Not nullable, Maximum length: 40 Original property name from the Odata EDM: ProjectID
|
void |
setProjectName(String projectName)
Constraints: Not nullable, Maximum length: 40 Original property name from the Odata EDM: ProjectName
|
void |
setProjectStage(String projectStage)
Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: ProjectStage
|
void |
setProjManagerCompCode(String projManagerCompCode)
Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: ProjManagerCompCode
|
void |
setProjManagerExtId(String projManagerExtId)
Constraints: Not nullable, Maximum length: 38 Original property name from the Odata EDM: ProjManagerExtId
|
void |
setProjPartnerCompCode(String projPartnerCompCode)
Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: ProjPartnerCompCode
|
void |
setProjPartnerExtId(String projPartnerExtId)
Constraints: Not nullable, Maximum length: 38 Original property name from the Odata EDM: ProjPartnerExtId
|
void |
setStartDate(LocalDateTime startDate)
Constraints: Not nullable, Precision: 7 Original property name from the Odata EDM: StartDate
|
void |
setWorkPackageSet(List<WorkPackage> value)
Overwrites the list of associated WorkPackage entities for the loaded navigation property WorkPackageSet.
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getVersionIdentifier, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final ProjectSelectable ALL_FIELDS
public static final ProjectField<String> PROJECT_DESC
public static final ProjectField<String> PROJ_MANAGER_COMP_CODE
public static final ProjectField<String> PROJ_ACCOUNTANT_COMP_CODE
public static final ProjectField<String> PROJECT_ID
public static final ProjectField<String> PROJ_CONTROLLER_COMP_CODE
public static final ProjectField<String> PROJ_MANAGER_EXT_ID
public static final ProjectField<String> PROJECT_NAME
public static final ProjectField<String> PROJ_PARTNER_COMP_CODE
public static final ProjectField<String> PROJ_ACCOUNTANT_EXT_ID
public static final ProjectField<String> PROJECT_STAGE
public static final ProjectField<String> PROJ_CONTROLLER_EXT_ID
public static final ProjectField<String> PROJ_PARTNER_EXT_ID
public static final ProjectField<LocalDateTime> START_DATE
public static final ProjectField<LocalDateTime> END_DATE
public static final ProjectField<String> CUSTOMER
public static final ProjectField<String> COST_CENTER
public static final ProjectField<String> PROFIT_CENTER
public static final ProjectField<String> PROJECT_CATEGORY
public static final ProjectField<String> CURRENCY
public static final ProjectField<String> ORG_ID
public static final ProjectField<String> CONFIDENTIAL
public static final ProjectLink<WorkPackage> TO_WORK_PACKAGE_SET
public Project()
public Project(@Nullable String projectDesc, @Nullable String projManagerCompCode, @Nullable String projAccountantCompCode, @Nullable String projectID, @Nullable String projControllerCompCode, @Nullable String projManagerExtId, @Nullable String projectName, @Nullable String projPartnerCompCode, @Nullable String projAccountantExtId, @Nullable String projectStage, @Nullable String projControllerExtId, @Nullable String projPartnerExtId, @Nullable LocalDateTime startDate, @Nullable LocalDateTime endDate, @Nullable String customer, @Nullable String costCenter, @Nullable String profitCenter, @Nullable String projectCategory, @Nullable String currency, @Nullable String orgID, @Nullable String confidential, @Nullable ErpConfigContext erpConfigContext, List<WorkPackage> toWorkPackageSet)
public void setProjectDesc(@Nullable String projectDesc)
Original property name from the Odata EDM: ProjectDesc
projectDesc
- Project Desc.public void setProjManagerCompCode(@Nullable String projManagerCompCode)
Original property name from the Odata EDM: ProjManagerCompCode
projManagerCompCode
- The company code is an organizational unit within financial accounting.public void setProjAccountantCompCode(@Nullable String projAccountantCompCode)
Original property name from the Odata EDM: ProjAccountantCompCode
projAccountantCompCode
- The company code is an organizational unit within financial accounting.public void setProjectID(@Nullable String projectID)
Original property name from the Odata EDM: ProjectID
projectID
- Identifies a master project.public void setProjControllerCompCode(@Nullable String projControllerCompCode)
Original property name from the Odata EDM: ProjControllerCompCode
projControllerCompCode
- The company code is an organizational unit within financial accounting.public void setProjManagerExtId(@Nullable String projManagerExtId)
Original property name from the Odata EDM: ProjManagerExtId
projManagerExtId
- 38 characterspublic void setProjectName(@Nullable String projectName)
Original property name from the Odata EDM: ProjectName
projectName
- Customer Project Namepublic void setProjPartnerCompCode(@Nullable String projPartnerCompCode)
Original property name from the Odata EDM: ProjPartnerCompCode
projPartnerCompCode
- The company code is an organizational unit within financial accounting.public void setProjAccountantExtId(@Nullable String projAccountantExtId)
Original property name from the Odata EDM: ProjAccountantExtId
projAccountantExtId
- 38 characterspublic void setProjectStage(@Nullable String projectStage)
Original property name from the Odata EDM: ProjectStage
projectStage
- User-defined key for indicating stages in master projects.public void setProjControllerExtId(@Nullable String projControllerExtId)
Original property name from the Odata EDM: ProjControllerExtId
projControllerExtId
- 38 characterspublic void setProjPartnerExtId(@Nullable String projPartnerExtId)
Original property name from the Odata EDM: ProjPartnerExtId
projPartnerExtId
- 38 characterspublic void setStartDate(@Nullable LocalDateTime startDate)
Original property name from the Odata EDM: StartDate
startDate
- Commercial Project: Start Datepublic void setEndDate(@Nullable LocalDateTime endDate)
Original property name from the Odata EDM: EndDate
endDate
- Commercial Project: End Datepublic void setCustomer(@Nullable String customer)
Original property name from the Odata EDM: Customer
customer
- Gives an alphanumeric key, which clearly identifies the customer or vendor in the SAP system.public void setCostCenter(@Nullable String costCenter)
Original property name from the Odata EDM: CostCenter
costCenter
- Organization Unit Keypublic void setProfitCenter(@Nullable String profitCenter)
Original property name from the Odata EDM: ProfitCenter
profitCenter
- Profit Centerpublic void setProjectCategory(@Nullable String projectCategory)
Original property name from the Odata EDM: ProjectCategory
projectCategory
- Project Typepublic void setCurrency(@Nullable String currency)
Original property name from the Odata EDM: Currency
currency
- Currencypublic void setOrgID(@Nullable String orgID)
Original property name from the Odata EDM: OrgID
This field links master project data with the company code and plant.
orgID
- This field links master project data with the company code and plant.public void setConfidential(@Nullable String confidential)
Original property name from the Odata EDM: Confidential
confidential
- Select the checkbox to indicate that the details are confidential and can be viewed only by an authorized user.protected String getEndpointUrl()
getEndpointUrl
in class VdmEntity<Project>
protected String getEntityCollection()
getEntityCollection
in class VdmEntity<Project>
protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<Project>
public static <T> ProjectField<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.protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<Project>
public List<WorkPackage> fetchWorkPackageSet() 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 List<WorkPackage> getWorkPackageSetOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property WorkPackageSet of a queried Project 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 Optional<List<WorkPackage>> getWorkPackageSetIfPresent()
If the navigation property for an entity Project has not been resolved yet, this method will not query further information. Instead its Optional
result state will be empty
.
Optional
with result state empty
is returned.public void setWorkPackageSet(@Nonnull List<WorkPackage> value)
If the navigation property WorkPackageSet of a queried Project 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 WorkPackage entities.public void addWorkPackageSet(WorkPackage... entity)
If the navigation property WorkPackageSet of a queried Project 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 WorkPackage entities.public static Project.ProjectBuilder builder()
@Nullable public String getProjectDesc()
Original property name from the Odata EDM: ProjectDesc
@Nullable public String getProjManagerCompCode()
Original property name from the Odata EDM: ProjManagerCompCode
@Nullable public String getProjAccountantCompCode()
Original property name from the Odata EDM: ProjAccountantCompCode
@Nullable public String getProjectID()
Original property name from the Odata EDM: ProjectID
@Nullable public String getProjControllerCompCode()
Original property name from the Odata EDM: ProjControllerCompCode
@Nullable public String getProjManagerExtId()
Original property name from the Odata EDM: ProjManagerExtId
@Nullable public String getProjectName()
Original property name from the Odata EDM: ProjectName
@Nullable public String getProjPartnerCompCode()
Original property name from the Odata EDM: ProjPartnerCompCode
@Nullable public String getProjAccountantExtId()
Original property name from the Odata EDM: ProjAccountantExtId
@Nullable public String getProjectStage()
Original property name from the Odata EDM: ProjectStage
@Nullable public String getProjControllerExtId()
Original property name from the Odata EDM: ProjControllerExtId
@Nullable public String getProjPartnerExtId()
Original property name from the Odata EDM: ProjPartnerExtId
@Nullable public LocalDateTime getStartDate()
Original property name from the Odata EDM: StartDate
@Nullable public LocalDateTime getEndDate()
Original property name from the Odata EDM: EndDate
@Nullable public String getCustomer()
Original property name from the Odata EDM: Customer
@Nullable public String getCostCenter()
Original property name from the Odata EDM: CostCenter
@Nullable public String getProfitCenter()
Original property name from the Odata EDM: ProfitCenter
@Nullable public String getProjectCategory()
Original property name from the Odata EDM: ProjectCategory
@Nullable public String getCurrency()
Original property name from the Odata EDM: Currency
@Nullable public String getOrgID()
Original property name from the Odata EDM: OrgID
This field links master project data with the company code and plant.
@Nullable public String getConfidential()
Original property name from the Odata EDM: Confidential
@Nullable public ErpConfigContext getErpConfigContext()
public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
setErpConfigContext
in class VdmEntity<Project>
erpConfigContext
- Copyright © 2018 SAP SE. All rights reserved.