public class EnterpriseProject extends VdmEntity<EnterpriseProject>
Original entity name from the Odata EDM: A_EnterpriseProjectType
Modifier and Type | Class and Description |
---|---|
static class |
EnterpriseProject.EnterpriseProjectBuilder
Helper class to allow for fluent creation of EnterpriseProject instances.
|
Modifier and Type | Field and Description |
---|---|
static EnterpriseProjectSelectable |
ALL_FIELDS
Selector for all available fields of EnterpriseProject.
|
static EnterpriseProjectField<String> |
COMPANY_CODE
Use with available fluent helpers to apply the CompanyCode field to query operations.
|
static EnterpriseProjectField<String> |
CONTROLLING_AREA
Use with available fluent helpers to apply the ControllingArea field to query operations.
|
static EnterpriseProjectField<String> |
ENTERPRISE_PROJECT_TYPE
Use with available fluent helpers to apply the EnterpriseProjectType field to query operations.
|
static EnterpriseProjectField<String> |
FUNCTIONAL_AREA
Use with available fluent helpers to apply the FunctionalArea field to query operations.
|
static EnterpriseProjectField<ZonedDateTime> |
LAST_CHANGE_DATE_TIME
Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
|
static EnterpriseProjectField<String> |
PRIORITY_CODE
Use with available fluent helpers to apply the PriorityCode field to query operations.
|
static EnterpriseProjectField<String> |
PROCESSING_STATUS
Use with available fluent helpers to apply the ProcessingStatus field to query operations.
|
static EnterpriseProjectField<String> |
PROFIT_CENTER
Use with available fluent helpers to apply the ProfitCenter field to query operations.
|
static EnterpriseProjectField<String> |
PROJECT
Use with available fluent helpers to apply the Project field to query operations.
|
static EnterpriseProjectField<String> |
PROJECT_DESCRIPTION
Use with available fluent helpers to apply the ProjectDescription field to query operations.
|
static EnterpriseProjectField<LocalDateTime> |
PROJECT_END_DATE
Use with available fluent helpers to apply the ProjectEndDate field to query operations.
|
static EnterpriseProjectField<String> |
PROJECT_INTERNAL_ID
Use with available fluent helpers to apply the ProjectInternalID field to query operations.
|
static EnterpriseProjectField<UUID> |
PROJECT_MANAGER_UUID
Use with available fluent helpers to apply the ProjectManagerUUID field to query operations.
|
static EnterpriseProjectField<String> |
PROJECT_PROFILE_CODE
Use with available fluent helpers to apply the ProjectProfileCode field to query operations.
|
static EnterpriseProjectField<LocalDateTime> |
PROJECT_START_DATE
Use with available fluent helpers to apply the ProjectStartDate field to query operations.
|
static EnterpriseProjectField<UUID> |
PROJECT_UUID
Use with available fluent helpers to apply the ProjectUUID field to query operations.
|
static EnterpriseProjectField<String> |
RESPONSIBLE_COST_CENTER
Use with available fluent helpers to apply the ResponsibleCostCenter field to query operations.
|
static EnterpriseProjectLink<EnterpriseProjectElement> |
TO_ENTERPRISE_PROJECT_ELEMENT
Use with available fluent helpers to apply the to_EnterpriseProjectElement navigation property to query
operations.
|
changedOriginalFields
Constructor and Description |
---|
EnterpriseProject() |
EnterpriseProject(UUID projectUUID,
String projectInternalID,
String project,
String projectDescription,
String enterpriseProjectType,
String priorityCode,
LocalDateTime projectStartDate,
LocalDateTime projectEndDate,
String processingStatus,
String responsibleCostCenter,
String profitCenter,
UUID projectManagerUUID,
String projectProfileCode,
String functionalArea,
String companyCode,
String controllingArea,
ZonedDateTime lastChangeDateTime,
List<EnterpriseProjectElement> toEnterpriseProjectElement) |
Modifier and Type | Method and Description |
---|---|
void |
addEnterpriseProjectElement(EnterpriseProjectElement... entity)
Adds elements to the list of associated EnterpriseProjectElement entities.
|
void |
attachToService(String servicePath,
ErpConfigContext configContext)
Sets the service path and ERP configuration context for the fetch commands of this entity.
|
static EnterpriseProject.EnterpriseProjectBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<EnterpriseProjectElement> |
fetchEnterpriseProjectElement()
Fetches the EnterpriseProjectElement entities (one to many) associated with this entity.
|
static <T> EnterpriseProjectField<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 |
getCompanyCode()
Constraints: Not nullable, Maximum length: 4
|
String |
getControllingArea()
Constraints: Not nullable, Maximum length: 4
|
protected String |
getDefaultServicePath() |
Optional<List<EnterpriseProjectElement>> |
getEnterpriseProjectElementIfPresent()
Retrieval of associated EnterpriseProjectElement entities (one to many).
|
List<EnterpriseProjectElement> |
getEnterpriseProjectElementOrFetch()
Retrieval of associated EnterpriseProjectElement entities (one to many).
|
String |
getEnterpriseProjectType()
Constraints: Not nullable, Maximum length: 2
|
protected String |
getEntityCollection() |
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
String |
getFunctionalArea()
Constraints: Not nullable, Maximum length: 16
|
protected Map<String,Object> |
getKey() |
ZonedDateTime |
getLastChangeDateTime()
Constraints: Not nullable, Precision: 0
|
String |
getPriorityCode()
Constraints: Not nullable, Maximum length: 3
|
String |
getProcessingStatus()
Constraints: Not nullable, Maximum length: 2
|
String |
getProfitCenter()
Constraints: Not nullable, Maximum length: 10
|
String |
getProject()
Constraints: Not nullable, Maximum length: 24
|
String |
getProjectDescription()
Constraints: Not nullable, Maximum length: 40
|
LocalDateTime |
getProjectEndDate()
Constraints: Not nullable, Precision: 0
|
String |
getProjectInternalID()
Constraints: Not nullable, Maximum length: 24
|
UUID |
getProjectManagerUUID()
Constraints: none
|
String |
getProjectProfileCode()
Constraints: Not nullable, Maximum length: 7
|
LocalDateTime |
getProjectStartDate()
Constraints: Not nullable, Precision: 0
|
UUID |
getProjectUUID()
(Key Field) Constraints: Not nullable
|
String |
getResponsibleCostCenter()
Constraints: Not nullable, Maximum length: 10
|
Class<EnterpriseProject> |
getType() |
int |
hashCode() |
void |
setCompanyCode(String companyCode)
Constraints: Not nullable, Maximum length: 4
|
void |
setControllingArea(String controllingArea)
Constraints: Not nullable, Maximum length: 4
|
void |
setEnterpriseProjectElement(List<EnterpriseProjectElement> value)
Overwrites the list of associated EnterpriseProjectElement entities for the loaded navigation property
to_EnterpriseProjectElement.
|
void |
setEnterpriseProjectType(String enterpriseProjectType)
Constraints: Not nullable, Maximum length: 2
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Deprecated.
Use
attachToService(String, ErpConfigContext) instead. |
void |
setFunctionalArea(String functionalArea)
Constraints: Not nullable, Maximum length: 16
|
void |
setLastChangeDateTime(ZonedDateTime lastChangeDateTime)
Constraints: Not nullable, Precision: 0
|
void |
setPriorityCode(String priorityCode)
Constraints: Not nullable, Maximum length: 3
|
void |
setProcessingStatus(String processingStatus)
Constraints: Not nullable, Maximum length: 2
|
void |
setProfitCenter(String profitCenter)
Constraints: Not nullable, Maximum length: 10
|
void |
setProject(String project)
Constraints: Not nullable, Maximum length: 24
|
void |
setProjectDescription(String projectDescription)
Constraints: Not nullable, Maximum length: 40
|
void |
setProjectEndDate(LocalDateTime projectEndDate)
Constraints: Not nullable, Precision: 0
|
void |
setProjectInternalID(String projectInternalID)
Constraints: Not nullable, Maximum length: 24
|
void |
setProjectManagerUUID(UUID projectManagerUUID)
Constraints: none
|
void |
setProjectProfileCode(String projectProfileCode)
Constraints: Not nullable, Maximum length: 7
|
void |
setProjectStartDate(LocalDateTime projectStartDate)
Constraints: Not nullable, Precision: 0
|
void |
setProjectUUID(UUID projectUUID)
(Key Field) Constraints: Not nullable
|
void |
setResponsibleCostCenter(String responsibleCostCenter)
Constraints: Not nullable, Maximum length: 10
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getEndpointUrl, getServicePathForFetch, getVersionIdentifier, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final EnterpriseProjectSelectable ALL_FIELDS
public static final EnterpriseProjectField<UUID> PROJECT_UUID
public static final EnterpriseProjectField<String> PROJECT_INTERNAL_ID
public static final EnterpriseProjectField<String> PROJECT
public static final EnterpriseProjectField<String> PROJECT_DESCRIPTION
public static final EnterpriseProjectField<String> ENTERPRISE_PROJECT_TYPE
public static final EnterpriseProjectField<String> PRIORITY_CODE
public static final EnterpriseProjectField<LocalDateTime> PROJECT_START_DATE
public static final EnterpriseProjectField<LocalDateTime> PROJECT_END_DATE
public static final EnterpriseProjectField<String> PROCESSING_STATUS
public static final EnterpriseProjectField<String> RESPONSIBLE_COST_CENTER
public static final EnterpriseProjectField<String> PROFIT_CENTER
public static final EnterpriseProjectField<UUID> PROJECT_MANAGER_UUID
public static final EnterpriseProjectField<String> PROJECT_PROFILE_CODE
public static final EnterpriseProjectField<String> FUNCTIONAL_AREA
public static final EnterpriseProjectField<String> COMPANY_CODE
public static final EnterpriseProjectField<String> CONTROLLING_AREA
public static final EnterpriseProjectField<ZonedDateTime> LAST_CHANGE_DATE_TIME
public static final EnterpriseProjectLink<EnterpriseProjectElement> TO_ENTERPRISE_PROJECT_ELEMENT
public EnterpriseProject()
public EnterpriseProject(@Nullable UUID projectUUID, @Nullable String projectInternalID, @Nullable String project, @Nullable String projectDescription, @Nullable String enterpriseProjectType, @Nullable String priorityCode, @Nullable LocalDateTime projectStartDate, @Nullable LocalDateTime projectEndDate, @Nullable String processingStatus, @Nullable String responsibleCostCenter, @Nullable String profitCenter, @Nullable UUID projectManagerUUID, @Nullable String projectProfileCode, @Nullable String functionalArea, @Nullable String companyCode, @Nullable String controllingArea, @Nullable ZonedDateTime lastChangeDateTime, List<EnterpriseProjectElement> toEnterpriseProjectElement)
@Nonnull public Class<EnterpriseProject> getType()
getType
in class VdmObject<EnterpriseProject>
public void setProjectUUID(@Nullable UUID projectUUID)
Original property name from the Odata EDM: ProjectUUID
projectUUID
- Entity Guidpublic void setProjectInternalID(@Nullable String projectInternalID)
Original property name from the Odata EDM: ProjectInternalID
projectInternalID
- Project (internal)public void setProject(@Nullable String project)
Original property name from the Odata EDM: Project
project
- Identification of Entitiespublic void setProjectDescription(@Nullable String projectDescription)
Original property name from the Odata EDM: ProjectDescription
projectDescription
- Language-Dependent Descriptionpublic void setEnterpriseProjectType(@Nullable String enterpriseProjectType)
Original property name from the Odata EDM: EnterpriseProjectType
You can define the criteria for a project type.
enterpriseProjectType
- Key identifying a project type.public void setPriorityCode(@Nullable String priorityCode)
Original property name from the Odata EDM: PriorityCode
priorityCode
- Prioritypublic void setProjectStartDate(@Nullable LocalDateTime projectStartDate)
Original property name from the Odata EDM: ProjectStartDate
projectStartDate
- The projectStartDate to set.public void setProjectEndDate(@Nullable LocalDateTime projectEndDate)
Original property name from the Odata EDM: ProjectEndDate
projectEndDate
- The projectEndDate to set.public void setProcessingStatus(@Nullable String processingStatus)
Original property name from the Odata EDM: ProcessingStatus
processingStatus
- Object Processing Statuspublic void setResponsibleCostCenter(@Nullable String responsibleCostCenter)
Original property name from the Odata EDM: ResponsibleCostCenter
responsibleCostCenter
- Responsible Cost Centerpublic void setProfitCenter(@Nullable String profitCenter)
Original property name from the Odata EDM: ProfitCenter
profitCenter
- Key which together with the controlling area uniquely identifies a profit center.public void setProjectManagerUUID(@Nullable UUID projectManagerUUID)
Original property name from the Odata EDM: ProjectManagerUUID
projectManagerUUID
- The projectManagerUUID to set.public void setProjectProfileCode(@Nullable String projectProfileCode)
Original property name from the Odata EDM: ProjectProfileCode
projectProfileCode
- Key identifying a project profile.public void setFunctionalArea(@Nullable String functionalArea)
Original property name from the Odata EDM: FunctionalArea
Use for Cost-of-Sales AccountingThe functional area is required to create a profit and loss account in Financial Accounting using cost-of-sales accounting. The following are examples of structure criteria:ManufacturingAdministrationSalesResearch and developmentUse for GovernmentThe functional area is needed for Funds Management to meet legal requirements for reporting with functional aspects. You can use the functional area to represent the global targets and goals (such as public safety or city development), in particular the expenses of your organization.Use in cost-of-sales accountingSee the documentation on Filling the Functional Area Field.For comprehensive information on cost-of-sales accounting and on the functional area, see the SAP Library under Accounting -> Financial Accounting -> General Ledger -> Cost-of-Sales Accounting.Use in governmentFor more information on the functional area, see the implementation Guide for Funds Management Government in the section Activate Account Assignment Elements.
functionalArea
- Structure criterion for an enterprise or government based on functional aspects.public void setCompanyCode(@Nullable String companyCode)
Original property name from the Odata EDM: CompanyCode
companyCode
- The company code is an organizational unit within financial accounting.public void setControllingArea(@Nullable String controllingArea)
Original property name from the Odata EDM: ControllingArea
controllingArea
- Controlling Areapublic void setLastChangeDateTime(@Nullable ZonedDateTime lastChangeDateTime)
Original property name from the Odata EDM: LastChangeDateTime
lastChangeDateTime
- Date on which object was last changedprotected String getEntityCollection()
getEntityCollection
in class VdmEntity<EnterpriseProject>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<EnterpriseProject>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<EnterpriseProject>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<EnterpriseProject>
@Nonnull public static <T> EnterpriseProjectField<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> EnterpriseProjectField<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 ErpConfigContext getErpConfigContext()
VdmEntity
getErpConfigContext
in class VdmEntity<EnterpriseProject>
@Deprecated public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
attachToService(String, ErpConfigContext)
instead.VdmEntity
setErpConfigContext
in class VdmEntity<EnterpriseProject>
erpConfigContext
- New ERP configuration context to apply to this entityprotected 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<EnterpriseProject>
public void attachToService(@Nullable String servicePath, @Nullable ErpConfigContext configContext)
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<EnterpriseProject>
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.configContext
- Optional parameter. New ERP configuration context to apply to this entity and any associated entities
that were previously fetched. If a null value is provided and the ERP configuration context has never
been set, then the ERP configuration context will be set to a new instance of
ErpConfigContext
.protected String getDefaultServicePath()
getDefaultServicePath
in class VdmEntity<EnterpriseProject>
@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<EnterpriseProject>
@Nonnull public List<EnterpriseProjectElement> fetchEnterpriseProjectElement() 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<EnterpriseProjectElement> getEnterpriseProjectElementOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_EnterpriseProjectElement of a queried EnterpriseProject 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 Optional<List<EnterpriseProjectElement>> getEnterpriseProjectElementIfPresent()
If the navigation property for an entity EnterpriseProject 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 setEnterpriseProjectElement(@Nonnull List<EnterpriseProjectElement> value)
If the navigation property to_EnterpriseProjectElement of a queried EnterpriseProject 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 EnterpriseProjectElement entities.public void addEnterpriseProjectElement(EnterpriseProjectElement... entity)
If the navigation property to_EnterpriseProjectElement of a queried EnterpriseProject 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 EnterpriseProjectElement entities.public static EnterpriseProject.EnterpriseProjectBuilder builder()
@Nullable public UUID getProjectUUID()
Original property name from the Odata EDM: ProjectUUID
@Nullable public String getProjectInternalID()
Original property name from the Odata EDM: ProjectInternalID
@Nullable public String getProject()
Original property name from the Odata EDM: Project
@Nullable public String getProjectDescription()
Original property name from the Odata EDM: ProjectDescription
@Nullable public String getEnterpriseProjectType()
Original property name from the Odata EDM: EnterpriseProjectType
You can define the criteria for a project type.
@Nullable public String getPriorityCode()
Original property name from the Odata EDM: PriorityCode
@Nullable public LocalDateTime getProjectStartDate()
Original property name from the Odata EDM: ProjectStartDate
@Nullable public LocalDateTime getProjectEndDate()
Original property name from the Odata EDM: ProjectEndDate
@Nullable public String getProcessingStatus()
Original property name from the Odata EDM: ProcessingStatus
@Nullable public String getResponsibleCostCenter()
Original property name from the Odata EDM: ResponsibleCostCenter
@Nullable public String getProfitCenter()
Original property name from the Odata EDM: ProfitCenter
@Nullable public UUID getProjectManagerUUID()
Original property name from the Odata EDM: ProjectManagerUUID
@Nullable public String getProjectProfileCode()
Original property name from the Odata EDM: ProjectProfileCode
@Nullable public String getFunctionalArea()
Original property name from the Odata EDM: FunctionalArea
Use for Cost-of-Sales AccountingThe functional area is required to create a profit and loss account in Financial Accounting using cost-of-sales accounting. The following are examples of structure criteria:ManufacturingAdministrationSalesResearch and developmentUse for GovernmentThe functional area is needed for Funds Management to meet legal requirements for reporting with functional aspects. You can use the functional area to represent the global targets and goals (such as public safety or city development), in particular the expenses of your organization.Use in cost-of-sales accountingSee the documentation on Filling the Functional Area Field.For comprehensive information on cost-of-sales accounting and on the functional area, see the SAP Library under Accounting -> Financial Accounting -> General Ledger -> Cost-of-Sales Accounting.Use in governmentFor more information on the functional area, see the implementation Guide for Funds Management Government in the section Activate Account Assignment Elements.
@Nullable public String getCompanyCode()
Original property name from the Odata EDM: CompanyCode
@Nullable public String getControllingArea()
Original property name from the Odata EDM: ControllingArea
@Nullable public ZonedDateTime getLastChangeDateTime()
Original property name from the Odata EDM: LastChangeDateTime
public String toString()
toString
in class VdmObject<EnterpriseProject>
public boolean equals(Object o)
equals
in class VdmObject<EnterpriseProject>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<EnterpriseProject>
public int hashCode()
hashCode
in class VdmObject<EnterpriseProject>
Copyright © 2019 SAP SE. All rights reserved.