Class ProjectDemandExpense
Original entity name from the Odata EDM: ProjectDemandExpense_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProjectDemandExpense instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProjectDemandExpenseSelectableSelector for all available fields of ProjectDemandExpense.static final ProjectDemandExpenseField<String>Use with available fluent helpers to apply the CreatedByUser field to query operations.static final ProjectDemandExpenseField<ZonedDateTime>Use with available fluent helpers to apply the CreationDateTime field to query operations.static final ProjectDemandExpenseField<ZonedDateTime>Use with available fluent helpers to apply the LastChangeDateTime field to query operations.static final ProjectDemandExpenseField<String>Use with available fluent helpers to apply the LastChangedByUser field to query operations.static final ProjectDemandExpenseField<String>Use with available fluent helpers to apply the ProjDmndBillingControlCategory field to query operations.static final ProjectDemandExpenseField<String>Use with available fluent helpers to apply the ProjectDemandExpenseType field to query operations.static final ProjectDemandExpenseField<UUID>Use with available fluent helpers to apply the ProjectDemandExpenseUUID field to query operations.static final ProjectDemandExpenseField<UUID>Use with available fluent helpers to apply the ProjectDemandUUID field to query operations.static final ProjectDemandExpenseField<UUID>Use with available fluent helpers to apply the ProjectUUID field to query operations.static final ProjectDemandExpenseField<UUID>Use with available fluent helpers to apply the ReferencedObjectUUID field to query operations.static final ProjectDemandExpenseLink<ProjDmndExpenseDistr>Use with available fluent helpers to apply the to_ProjDmndExpenseDistr navigation property to query operations.static final ProjectDemandExpenseOneToOneLink<ProjectDemand>Use with available fluent helpers to apply the to_Root navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionProjectDemandExpense(UUID projectDemandExpenseUUID, UUID projectDemandUUID, String projectDemandExpenseType, UUID projectUUID, UUID referencedObjectUUID, String projDmndBillingControlCategory, String createdByUser, ZonedDateTime creationDateTime, String lastChangedByUser, ZonedDateTime lastChangeDateTime, ProjectDemand toRoot, List<ProjDmndExpenseDistr> toProjDmndExpenseDistr) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProjDmndExpenseDistr(ProjDmndExpenseDistr... entity) Adds elements to the list of associated ProjDmndExpenseDistr entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the ProjDmndExpenseDistr entities (one to many) associated with this entity.Fetches the ProjectDemand entity (one to one) associated with this entity.static <T,DomainT>
ProjectDemandExpenseField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> ProjectDemandExpenseField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidConstraints: Not nullable, Maximum length: 12Constraints: Not nullable, Precision: 7protected Stringprotected StringgetKey()Constraints: Not nullable, Precision: 7Constraints: Not nullable, Maximum length: 12Constraints: Not nullable, Maximum length: 8io.vavr.control.Option<List<ProjDmndExpenseDistr>>Retrieval of associated ProjDmndExpenseDistr entities (one to many).Retrieval of associated ProjDmndExpenseDistr entities (one to many).Constraints: Not nullable, Maximum length: 40(Key Field) Constraints: Not nullableConstraints: noneConstraints: noneConstraints: noneio.vavr.control.Option<ProjectDemand>Retrieval of associated ProjectDemand entity (one to one).Retrieval of associated ProjectDemand entity (one to one).getType()inthashCode()voidsetCreatedByUser(String createdByUser) Constraints: Not nullable, Maximum length: 12voidsetCreationDateTime(ZonedDateTime creationDateTime) Constraints: Not nullable, Precision: 7voidsetLastChangeDateTime(ZonedDateTime lastChangeDateTime) Constraints: Not nullable, Precision: 7voidsetLastChangedByUser(String lastChangedByUser) Constraints: Not nullable, Maximum length: 12voidsetProjDmndBillingControlCategory(String projDmndBillingControlCategory) Constraints: Not nullable, Maximum length: 8voidOverwrites the list of associated ProjDmndExpenseDistr entities for the loaded navigation property to_ProjDmndExpenseDistr.voidsetProjectDemandExpenseType(String projectDemandExpenseType) Constraints: Not nullable, Maximum length: 40voidsetProjectDemandExpenseUUID(UUID projectDemandExpenseUUID) (Key Field) Constraints: Not nullablevoidsetProjectDemandUUID(UUID projectDemandUUID) Constraints: nonevoidsetProjectUUID(UUID projectUUID) Constraints: nonevoidsetReferencedObjectUUID(UUID referencedObjectUUID) Constraints: nonevoidsetRoot(ProjectDemand value) Overwrites the associated ProjectDemand entity for the loaded navigation property to_Root.protected voidsetServicePathForFetch(String servicePathForFetch) toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of ProjectDemandExpense. -
PROJECT_DEMAND_EXPENSE_UUID
Use with available fluent helpers to apply the ProjectDemandExpenseUUID field to query operations. -
PROJECT_DEMAND_UUID
Use with available fluent helpers to apply the ProjectDemandUUID field to query operations. -
PROJECT_DEMAND_EXPENSE_TYPE
Use with available fluent helpers to apply the ProjectDemandExpenseType field to query operations. -
PROJECT_UUID
Use with available fluent helpers to apply the ProjectUUID field to query operations. -
REFERENCED_OBJECT_UUID
Use with available fluent helpers to apply the ReferencedObjectUUID field to query operations. -
PROJ_DMND_BILLING_CONTROL_CATEGORY
Use with available fluent helpers to apply the ProjDmndBillingControlCategory field to query operations. -
CREATED_BY_USER
Use with available fluent helpers to apply the CreatedByUser field to query operations. -
CREATION_DATE_TIME
Use with available fluent helpers to apply the CreationDateTime field to query operations. -
LAST_CHANGED_BY_USER
Use with available fluent helpers to apply the LastChangedByUser field to query operations. -
LAST_CHANGE_DATE_TIME
Use with available fluent helpers to apply the LastChangeDateTime field to query operations. -
TO_ROOT
Use with available fluent helpers to apply the to_Root navigation property to query operations. -
TO_PROJ_DMND_EXPENSE_DISTR
Use with available fluent helpers to apply the to_ProjDmndExpenseDistr navigation property to query operations.
-
-
Constructor Details
-
ProjectDemandExpense
public ProjectDemandExpense() -
ProjectDemandExpense
public ProjectDemandExpense(@Nullable UUID projectDemandExpenseUUID, @Nullable UUID projectDemandUUID, @Nullable String projectDemandExpenseType, @Nullable UUID projectUUID, @Nullable UUID referencedObjectUUID, @Nullable String projDmndBillingControlCategory, @Nullable String createdByUser, @Nullable ZonedDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable ZonedDateTime lastChangeDateTime, @Nullable ProjectDemand toRoot, List<ProjDmndExpenseDistr> toProjDmndExpenseDistr)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProjectDemandExpense>
-
setProjectDemandExpenseUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ProjectDemandExpenseUUID
- Parameters:
projectDemandExpenseUUID- Global Identification of a Demand for Expense
-
setProjectDemandUUID
Constraints: noneOriginal property name from the Odata EDM: ProjectDemandUUID
- Parameters:
projectDemandUUID- Global Identification of a Project Demand
-
setProjectDemandExpenseType
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectDemandExpenseType
- Parameters:
projectDemandExpenseType- Expense Type
-
setProjectUUID
Constraints: noneOriginal property name from the Odata EDM: ProjectUUID
- Parameters:
projectUUID- Global ID of the Project to Which a Demand is Related
-
setReferencedObjectUUID
Constraints: noneOriginal property name from the Odata EDM: ReferencedObjectUUID
- Parameters:
referencedObjectUUID- UUID of the Object to Which a Demand Is Related
-
setProjDmndBillingControlCategory
Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: ProjDmndBillingControlCategory
- Parameters:
projDmndBillingControlCategory- Billing Control Category
-
setCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Parameters:
createdByUser- Created By User
-
setCreationDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Parameters:
creationDateTime- Creation Date Time
-
setLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Parameters:
lastChangedByUser- Last Changed By User
-
setLastChangeDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Parameters:
lastChangeDateTime- Last Change Date Time
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProjectDemandExpense>
-
getKey
- Overrides:
getKeyin classVdmObject<ProjectDemandExpense>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProjectDemandExpense>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProjectDemandExpense>
-
field
@Nonnull public static <T> ProjectDemandExpenseField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.- Parameters:
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.- Returns:
- A representation of an extension field from this entity.
-
field
@Nonnull public static <T,DomainT> ProjectDemandExpenseField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.DomainT- The type of the extension field as returned by the OData service.- Parameters:
typeConverter- A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the fieldfieldName- The name of the extension field as returned by the OData service.- Returns:
- A representation of an extension field from this entity, holding a reference to the given TypeConverter.
-
getDestinationForFetch
- Overrides:
getDestinationForFetchin classVdmEntity<ProjectDemandExpense>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<ProjectDemandExpense>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<ProjectDemandExpense>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProjectDemandExpense>
-
fetchRoot
Fetches the ProjectDemand entity (one to one) associated with this entity. This corresponds to the OData navigation property to_Root.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated ProjectDemand entity, or
nullif an entity is not associated. - Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getRootOrFetch
Retrieval of associated ProjectDemand entity (one to one). This corresponds to the OData navigation property to_Root.If the navigation property to_Root of a queried ProjectDemandExpense 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.
- Returns:
- List of associated ProjectDemand entity.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getRootIfPresent
Retrieval of associated ProjectDemand entity (one to one). This corresponds to the OData navigation property to_Root.If the navigation property for an entity ProjectDemandExpense has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property to_Root is already loaded, the result will contain the
ProjectDemand entity. If not, an
Optionwith result stateemptyis returned.
-
setRoot
Overwrites the associated ProjectDemand entity for the loaded navigation property to_Root.- Parameters:
value- New ProjectDemand entity.
-
fetchProjDmndExpenseDistr
Fetches the ProjDmndExpenseDistr entities (one to many) associated with this entity. This corresponds to the OData navigation property to_ProjDmndExpenseDistr.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated ProjDmndExpenseDistr entities. If no entities are associated then an empty list is returned.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getProjDmndExpenseDistrOrFetch
Retrieval of associated ProjDmndExpenseDistr entities (one to many). This corresponds to the OData navigation property to_ProjDmndExpenseDistr.If the navigation property to_ProjDmndExpenseDistr of a queried ProjectDemandExpense 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.
- Returns:
- List of associated ProjDmndExpenseDistr entities.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getProjDmndExpenseDistrIfPresent
@Nonnull public io.vavr.control.Option<List<ProjDmndExpenseDistr>> getProjDmndExpenseDistrIfPresent()Retrieval of associated ProjDmndExpenseDistr entities (one to many). This corresponds to the OData navigation property to_ProjDmndExpenseDistr.If the navigation property for an entity ProjectDemandExpense has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property to_ProjDmndExpenseDistr is already loaded, the result
will contain the ProjDmndExpenseDistr entities. If not, an
Optionwith result stateemptyis returned.
-
setProjDmndExpenseDistr
Overwrites the list of associated ProjDmndExpenseDistr entities for the loaded navigation property to_ProjDmndExpenseDistr.If the navigation property to_ProjDmndExpenseDistr of a queried ProjectDemandExpense 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.
- Parameters:
value- List of ProjDmndExpenseDistr entities.
-
addProjDmndExpenseDistr
Adds elements to the list of associated ProjDmndExpenseDistr entities. This corresponds to the OData navigation property to_ProjDmndExpenseDistr.If the navigation property to_ProjDmndExpenseDistr of a queried ProjectDemandExpense 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.
- Parameters:
entity- Array of ProjDmndExpenseDistr entities.
-
builder
-
getProjectDemandExpenseUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ProjectDemandExpenseUUID
- Returns:
- Global Identification of a Demand for Expense
-
getProjectDemandUUID
Constraints: noneOriginal property name from the Odata EDM: ProjectDemandUUID
- Returns:
- Global Identification of a Project Demand
-
getProjectDemandExpenseType
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectDemandExpenseType
- Returns:
- Expense Type
-
getProjectUUID
Constraints: noneOriginal property name from the Odata EDM: ProjectUUID
- Returns:
- Global ID of the Project to Which a Demand is Related
-
getReferencedObjectUUID
Constraints: noneOriginal property name from the Odata EDM: ReferencedObjectUUID
- Returns:
- UUID of the Object to Which a Demand Is Related
-
getProjDmndBillingControlCategory
Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: ProjDmndBillingControlCategory
- Returns:
- Billing Control Category
-
getCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Returns:
- Created By User
-
getCreationDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Returns:
- Creation Date Time
-
getLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Returns:
- Last Changed By User
-
getLastChangeDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Returns:
- Last Change Date Time
-
toString
- Overrides:
toStringin classVdmObject<ProjectDemandExpense>
-
equals
- Overrides:
equalsin classVdmEntity<ProjectDemandExpense>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProjectDemandExpense>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProjectDemandExpense>
-