Modifier and Type | Class and Description |
---|---|
static class |
Project.ProjectBuilder
Helper class to allow for fluent creation of Project instances.
|
Modifier and Type | Field and Description |
---|---|
static ProjectSelectable |
ALL_FIELDS
Selector for all available fields of Project.
|
static ProjectField<String> |
COMPANY_CODE
Use with available fluent helpers to apply the CompanyCode field to query operations.
|
static ProjectField<String> |
CONTROLLING_AREA
Use with available fluent helpers to apply the ControllingArea field to query operations.
|
static ProjectField<String> |
FUNCTIONAL_AREA
Use with available fluent helpers to apply the FunctionalArea field to query operations.
|
static ProjectField<LocalDateTime> |
PLANNED_END_DATE
Use with available fluent helpers to apply the PlannedEndDate field to query operations.
|
static ProjectField<LocalDateTime> |
PLANNED_START_DATE
Use with available fluent helpers to apply the PlannedStartDate 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> |
PROJECT_DESCRIPTION
Use with available fluent helpers to apply the ProjectDescription field to query operations.
|
static ProjectField<String> |
PROJECT_EXTERNAL_ID
Use with available fluent helpers to apply the ProjectExternalID field to query operations.
|
static ProjectField<String> |
PROJECT_INTERNAL_ID
Use with available fluent helpers to apply the ProjectInternalID field to query operations.
|
static ProjectField<String> |
PROJECT_PROFILE_CODE
Use with available fluent helpers to apply the ProjectProfileCode field to query operations.
|
static ProjectField<String> |
TAX_JURISDICTION
Use with available fluent helpers to apply the TaxJurisdiction field to query operations.
|
static ProjectLink<WBSElement> |
TO_WBS_ELEMENT
Use with available fluent helpers to apply the to_WBSElement navigation property to query operations.
|
static ProjectField<String> |
WORK_CENTER_LOCATION
Use with available fluent helpers to apply the WorkCenterLocation field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
Project() |
Project(String projectInternalID,
String projectExternalID,
String projectDescription,
String projectProfileCode,
String companyCode,
String controllingArea,
String functionalArea,
String profitCenter,
LocalDateTime plannedStartDate,
LocalDateTime plannedEndDate,
String workCenterLocation,
String taxJurisdiction,
List<WBSElement> toWBSElement) |
Modifier and Type | Method and Description |
---|---|
void |
addWBSElement(WBSElement... entity)
Adds elements to the list of associated WBSElement entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static Project.ProjectBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<WBSElement> |
fetchWBSElement()
Fetches the WBSElement 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.
|
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()
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.
|
String |
getFunctionalArea()
Constraints: Not nullable, Maximum length: 16
|
protected Map<String,Object> |
getKey() |
LocalDateTime |
getPlannedEndDate()
Constraints: Not nullable, Precision: 0
|
LocalDateTime |
getPlannedStartDate()
Constraints: Not nullable, Precision: 0
|
String |
getProfitCenter()
Constraints: Not nullable, Maximum length: 10
|
String |
getProjectDescription()
Constraints: Not nullable, Maximum length: 40
|
String |
getProjectExternalID()
Constraints: Not nullable, Maximum length: 24
|
String |
getProjectInternalID()
(Key Field) Constraints: Not nullable, Maximum length: 8
|
String |
getProjectProfileCode()
Constraints: Not nullable, Maximum length: 7
|
String |
getTaxJurisdiction()
Constraints: Not nullable, Maximum length: 15
|
Class<Project> |
getType() |
io.vavr.control.Option<List<WBSElement>> |
getWBSElementIfPresent()
Retrieval of associated WBSElement entities (one to many).
|
List<WBSElement> |
getWBSElementOrFetch()
Retrieval of associated WBSElement entities (one to many).
|
String |
getWorkCenterLocation()
Constraints: Not nullable, Maximum length: 10
|
int |
hashCode() |
void |
setCompanyCode(String companyCode)
Constraints: Not nullable, Maximum length: 4
|
void |
setControllingArea(String controllingArea)
Constraints: Not nullable, Maximum length: 4
|
void |
setFunctionalArea(String functionalArea)
Constraints: Not nullable, Maximum length: 16
|
void |
setPlannedEndDate(LocalDateTime plannedEndDate)
Constraints: Not nullable, Precision: 0
|
void |
setPlannedStartDate(LocalDateTime plannedStartDate)
Constraints: Not nullable, Precision: 0
|
void |
setProfitCenter(String profitCenter)
Constraints: Not nullable, Maximum length: 10
|
void |
setProjectDescription(String projectDescription)
Constraints: Not nullable, Maximum length: 40
|
void |
setProjectExternalID(String projectExternalID)
Constraints: Not nullable, Maximum length: 24
|
void |
setProjectInternalID(String projectInternalID)
(Key Field) Constraints: Not nullable, Maximum length: 8
|
void |
setProjectProfileCode(String projectProfileCode)
Constraints: Not nullable, Maximum length: 7
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setTaxJurisdiction(String taxJurisdiction)
Constraints: Not nullable, Maximum length: 15
|
void |
setWBSElement(List<WBSElement> value)
Overwrites the list of associated WBSElement entities for the loaded navigation property
to_WBSElement.
|
void |
setWorkCenterLocation(String workCenterLocation)
Constraints: Not nullable, Maximum length: 10
|
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 ProjectSelectable ALL_FIELDS
public static final ProjectField<String> PROJECT_INTERNAL_ID
public static final ProjectField<String> PROJECT_EXTERNAL_ID
public static final ProjectField<String> PROJECT_DESCRIPTION
public static final ProjectField<String> PROJECT_PROFILE_CODE
public static final ProjectField<String> COMPANY_CODE
public static final ProjectField<String> CONTROLLING_AREA
public static final ProjectField<String> FUNCTIONAL_AREA
public static final ProjectField<String> PROFIT_CENTER
public static final ProjectField<LocalDateTime> PLANNED_START_DATE
public static final ProjectField<LocalDateTime> PLANNED_END_DATE
public static final ProjectField<String> WORK_CENTER_LOCATION
public static final ProjectField<String> TAX_JURISDICTION
public static final ProjectLink<WBSElement> TO_WBS_ELEMENT
public Project()
public Project(@Nullable String projectInternalID, @Nullable String projectExternalID, @Nullable String projectDescription, @Nullable String projectProfileCode, @Nullable String companyCode, @Nullable String controllingArea, @Nullable String functionalArea, @Nullable String profitCenter, @Nullable LocalDateTime plannedStartDate, @Nullable LocalDateTime plannedEndDate, @Nullable String workCenterLocation, @Nullable String taxJurisdiction, List<WBSElement> toWBSElement)
public void setProjectInternalID(@Nullable String projectInternalID)
Original property name from the Odata EDM: ProjectInternalID
projectInternalID
- Project (internal)public void setProjectExternalID(@Nullable String projectExternalID)
Original property name from the Odata EDM: ProjectExternalID
projectExternalID
- Project Number (External) Editedpublic void setProjectDescription(@Nullable String projectDescription)
Original property name from the Odata EDM: ProjectDescription
projectDescription
- Project Namepublic void setProjectProfileCode(@Nullable String projectProfileCode)
Original property name from the Odata EDM: ProjectProfileCode
projectProfileCode
- Project Profilepublic void setCompanyCode(@Nullable String companyCode)
Original property name from the Odata EDM: CompanyCode
companyCode
- Company Codepublic void setControllingArea(@Nullable String controllingArea)
Original property name from the Odata EDM: ControllingArea
controllingArea
- Controlling Areapublic void setFunctionalArea(@Nullable String functionalArea)
Original property name from the Odata EDM: FunctionalArea
functionalArea
- Functional Areapublic void setProfitCenter(@Nullable String profitCenter)
Original property name from the Odata EDM: ProfitCenter
profitCenter
- Profit Centerpublic void setPlannedStartDate(@Nullable LocalDateTime plannedStartDate)
Original property name from the Odata EDM: PlannedStartDate
plannedStartDate
- Project planned start datepublic void setPlannedEndDate(@Nullable LocalDateTime plannedEndDate)
Original property name from the Odata EDM: PlannedEndDate
plannedEndDate
- Project planned finish datepublic void setWorkCenterLocation(@Nullable String workCenterLocation)
Original property name from the Odata EDM: WorkCenterLocation
workCenterLocation
- Locationpublic void setTaxJurisdiction(@Nullable String taxJurisdiction)
Original property name from the Odata EDM: TaxJurisdiction
taxJurisdiction
- Tax Jurisdictionprotected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<Project>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<Project>
@Nonnull public static <T> ProjectField<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> ProjectField<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<Project>
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<Project>
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<Project>
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<Project>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<Project>
@Nonnull public List<WBSElement> fetchWBSElement() 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<WBSElement> getWBSElementOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_WBSElement 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.@Nonnull public io.vavr.control.Option<List<WBSElement>> getWBSElementIfPresent()
If the navigation property for an entity Project 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 setWBSElement(@Nonnull List<WBSElement> value)
If the navigation property to_WBSElement 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 WBSElement entities.public void addWBSElement(WBSElement... entity)
If the navigation property to_WBSElement 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 WBSElement entities.@Nonnull public static Project.ProjectBuilder builder()
@Nullable public String getProjectInternalID()
Original property name from the Odata EDM: ProjectInternalID
@Nullable public String getProjectExternalID()
Original property name from the Odata EDM: ProjectExternalID
@Nullable public String getProjectDescription()
Original property name from the Odata EDM: ProjectDescription
@Nullable public String getProjectProfileCode()
Original property name from the Odata EDM: ProjectProfileCode
@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 String getFunctionalArea()
Original property name from the Odata EDM: FunctionalArea
@Nullable public String getProfitCenter()
Original property name from the Odata EDM: ProfitCenter
@Nullable public LocalDateTime getPlannedStartDate()
Original property name from the Odata EDM: PlannedStartDate
@Nullable public LocalDateTime getPlannedEndDate()
Original property name from the Odata EDM: PlannedEndDate
@Nullable public String getWorkCenterLocation()
Original property name from the Odata EDM: WorkCenterLocation
@Nullable public String getTaxJurisdiction()
Original property name from the Odata EDM: TaxJurisdiction
Copyright © 2021 SAP SE. All rights reserved.