public class BudgetPeriod extends VdmEntity<BudgetPeriod>
Original entity name from the Odata EDM: BudgetPeriod_Type
Modifier and Type | Class and Description |
---|---|
static class |
BudgetPeriod.BudgetPeriodBuilder
Helper class to allow for fluent creation of BudgetPeriod instances.
|
Modifier and Type | Field and Description |
---|---|
static BudgetPeriodSelectable |
ALL_FIELDS
Selector for all available fields of BudgetPeriod.
|
static BudgetPeriodField<String> |
BUDGET_PERIOD
Use with available fluent helpers to apply the BudgetPeriod field to query operations.
|
static BudgetPeriodField<String> |
BUDGET_PERIOD_AUTHZN_GRP
Use with available fluent helpers to apply the BudgetPeriodAuthznGrp field to query operations.
|
static BudgetPeriodField<LocalDateTime> |
BUDGET_PERIOD_EXPIRATION_DATE
Use with available fluent helpers to apply the BudgetPeriodExpirationDate field to query operations.
|
static BudgetPeriodField<String> |
BUDGET_PERIOD_NAME
Use with available fluent helpers to apply the BudgetPeriodName field to query operations.
|
static BudgetPeriodField<String> |
BUDGET_PERIOD_PERIODICITY
Use with available fluent helpers to apply the BudgetPeriodPeriodicity field to query operations.
|
static BudgetPeriodField<LocalDateTime> |
BUDGET_PERIOD_REVERSAL_DATE
Use with available fluent helpers to apply the BudgetPeriodReversalDate field to query operations.
|
static BudgetPeriodLink<BudgetPeriodCoreText> |
TO_TEXT
Use with available fluent helpers to apply the to_Text navigation property to query operations.
|
static BudgetPeriodField<LocalDateTime> |
VALIDITY_END_DATE
Use with available fluent helpers to apply the ValidityEndDate field to query operations.
|
static BudgetPeriodField<LocalDateTime> |
VALIDITY_START_DATE
Use with available fluent helpers to apply the ValidityStartDate field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
BudgetPeriod() |
BudgetPeriod(String budgetPeriod,
LocalDateTime validityStartDate,
LocalDateTime validityEndDate,
LocalDateTime budgetPeriodExpirationDate,
LocalDateTime budgetPeriodReversalDate,
String budgetPeriodAuthznGrp,
String budgetPeriodPeriodicity,
String budgetPeriodName,
List<BudgetPeriodCoreText> toText) |
Modifier and Type | Method and Description |
---|---|
void |
addText(BudgetPeriodCoreText... entity)
Adds elements to the list of associated BudgetPeriodCoreText entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination) |
static BudgetPeriod.BudgetPeriodBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<BudgetPeriodCoreText> |
fetchText()
Fetches the BudgetPeriodCoreText entities (one to many) associated with this entity.
|
static <T> BudgetPeriodField<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 |
getBudgetPeriod()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getBudgetPeriodAuthznGrp()
Constraints: Not nullable, Maximum length: 10
|
LocalDateTime |
getBudgetPeriodExpirationDate()
Constraints: Not nullable, Precision: 0
|
String |
getBudgetPeriodName()
Constraints: Not nullable, Maximum length: 35
|
String |
getBudgetPeriodPeriodicity()
Constraints: Not nullable, Maximum length: 10
|
LocalDateTime |
getBudgetPeriodReversalDate()
Constraints: Not nullable, Precision: 0
|
protected String |
getDefaultServicePath() |
HttpDestinationProperties |
getDestinationForFetch() |
protected String |
getEntityCollection() |
protected Map<String,Object> |
getKey() |
io.vavr.control.Option<List<BudgetPeriodCoreText>> |
getTextIfPresent()
Retrieval of associated BudgetPeriodCoreText entities (one to many).
|
List<BudgetPeriodCoreText> |
getTextOrFetch()
Retrieval of associated BudgetPeriodCoreText entities (one to many).
|
Class<BudgetPeriod> |
getType() |
LocalDateTime |
getValidityEndDate()
Constraints: Not nullable, Precision: 0
|
LocalDateTime |
getValidityStartDate()
Constraints: Not nullable, Precision: 0
|
int |
hashCode() |
void |
setBudgetPeriod(String budgetPeriod)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setBudgetPeriodAuthznGrp(String budgetPeriodAuthznGrp)
Constraints: Not nullable, Maximum length: 10
|
void |
setBudgetPeriodExpirationDate(LocalDateTime budgetPeriodExpirationDate)
Constraints: Not nullable, Precision: 0
|
void |
setBudgetPeriodName(String budgetPeriodName)
Constraints: Not nullable, Maximum length: 35
|
void |
setBudgetPeriodPeriodicity(String budgetPeriodPeriodicity)
Constraints: Not nullable, Maximum length: 10
|
void |
setBudgetPeriodReversalDate(LocalDateTime budgetPeriodReversalDate)
Constraints: Not nullable, Precision: 0
|
protected void |
setServicePathForFetch(String servicePathForFetch) |
void |
setText(List<BudgetPeriodCoreText> value)
Overwrites the list of associated BudgetPeriodCoreText entities for the loaded navigation property
to_Text.
|
void |
setValidityEndDate(LocalDateTime validityEndDate)
Constraints: Not nullable, Precision: 0
|
void |
setValidityStartDate(LocalDateTime validityStartDate)
Constraints: Not nullable, Precision: 0
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final BudgetPeriodSelectable ALL_FIELDS
public static final BudgetPeriodField<String> BUDGET_PERIOD
public static final BudgetPeriodField<LocalDateTime> VALIDITY_START_DATE
public static final BudgetPeriodField<LocalDateTime> VALIDITY_END_DATE
public static final BudgetPeriodField<LocalDateTime> BUDGET_PERIOD_EXPIRATION_DATE
public static final BudgetPeriodField<LocalDateTime> BUDGET_PERIOD_REVERSAL_DATE
public static final BudgetPeriodField<String> BUDGET_PERIOD_AUTHZN_GRP
public static final BudgetPeriodField<String> BUDGET_PERIOD_PERIODICITY
public static final BudgetPeriodField<String> BUDGET_PERIOD_NAME
public static final BudgetPeriodLink<BudgetPeriodCoreText> TO_TEXT
public BudgetPeriod()
public BudgetPeriod(@Nullable String budgetPeriod, @Nullable LocalDateTime validityStartDate, @Nullable LocalDateTime validityEndDate, @Nullable LocalDateTime budgetPeriodExpirationDate, @Nullable LocalDateTime budgetPeriodReversalDate, @Nullable String budgetPeriodAuthznGrp, @Nullable String budgetPeriodPeriodicity, @Nullable String budgetPeriodName, List<BudgetPeriodCoreText> toText)
@Nonnull public Class<BudgetPeriod> getType()
getType
in class VdmObject<BudgetPeriod>
public void setBudgetPeriod(@Nullable String budgetPeriod)
Original property name from the Odata EDM: BudgetPeriod
budgetPeriod
- Budget Periodpublic void setValidityStartDate(@Nullable LocalDateTime validityStartDate)
Original property name from the Odata EDM: ValidityStartDate
validityStartDate
- Budget Period Valid Frompublic void setValidityEndDate(@Nullable LocalDateTime validityEndDate)
Original property name from the Odata EDM: ValidityEndDate
validityEndDate
- Budget Period Valid Topublic void setBudgetPeriodExpirationDate(@Nullable LocalDateTime budgetPeriodExpirationDate)
Original property name from the Odata EDM: BudgetPeriodExpirationDate
budgetPeriodExpirationDate
- Budget Period Expiration Datepublic void setBudgetPeriodReversalDate(@Nullable LocalDateTime budgetPeriodReversalDate)
Original property name from the Odata EDM: BudgetPeriodReversalDate
budgetPeriodReversalDate
- Budget Period Reversal Datepublic void setBudgetPeriodAuthznGrp(@Nullable String budgetPeriodAuthznGrp)
Original property name from the Odata EDM: BudgetPeriodAuthznGrp
budgetPeriodAuthznGrp
- Budget Period Authorization Grouppublic void setBudgetPeriodPeriodicity(@Nullable String budgetPeriodPeriodicity)
Original property name from the Odata EDM: BudgetPeriodPeriodicity
budgetPeriodPeriodicity
- Frequency for Budget Periodpublic void setBudgetPeriodName(@Nullable String budgetPeriodName)
Original property name from the Odata EDM: BudgetPeriodName
budgetPeriodName
- Budget Period Nameprotected String getEntityCollection()
getEntityCollection
in class VdmEntity<BudgetPeriod>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<BudgetPeriod>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<BudgetPeriod>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<BudgetPeriod>
@Nonnull public static <T> BudgetPeriodField<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> BudgetPeriodField<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()
getDestinationForFetch
in class VdmEntity<BudgetPeriod>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
setServicePathForFetch
in class VdmEntity<BudgetPeriod>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
attachToService
in class VdmEntity<BudgetPeriod>
protected String getDefaultServicePath()
getDefaultServicePath
in class VdmEntity<BudgetPeriod>
@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<BudgetPeriod>
@Nonnull public List<BudgetPeriodCoreText> fetchText()
Please note: This method will not cache or persist the query results.
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.@Nonnull public List<BudgetPeriodCoreText> getTextOrFetch()
If the navigation property to_Text of a queried BudgetPeriod 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.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.@Nonnull public io.vavr.control.Option<List<BudgetPeriodCoreText>> getTextIfPresent()
If the navigation property for an entity BudgetPeriod 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 setText(@Nonnull List<BudgetPeriodCoreText> value)
If the navigation property to_Text of a queried BudgetPeriod 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 BudgetPeriodCoreText entities.public void addText(BudgetPeriodCoreText... entity)
If the navigation property to_Text of a queried BudgetPeriod 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 BudgetPeriodCoreText entities.@Nonnull public static BudgetPeriod.BudgetPeriodBuilder builder()
@Nullable public String getBudgetPeriod()
Original property name from the Odata EDM: BudgetPeriod
@Nullable public LocalDateTime getValidityStartDate()
Original property name from the Odata EDM: ValidityStartDate
@Nullable public LocalDateTime getValidityEndDate()
Original property name from the Odata EDM: ValidityEndDate
@Nullable public LocalDateTime getBudgetPeriodExpirationDate()
Original property name from the Odata EDM: BudgetPeriodExpirationDate
@Nullable public LocalDateTime getBudgetPeriodReversalDate()
Original property name from the Odata EDM: BudgetPeriodReversalDate
@Nullable public String getBudgetPeriodAuthznGrp()
Original property name from the Odata EDM: BudgetPeriodAuthznGrp
@Nullable public String getBudgetPeriodPeriodicity()
Original property name from the Odata EDM: BudgetPeriodPeriodicity
@Nullable public String getBudgetPeriodName()
Original property name from the Odata EDM: BudgetPeriodName
@Nonnull public String toString()
toString
in class VdmObject<BudgetPeriod>
public boolean equals(@Nullable Object o)
equals
in class VdmEntity<BudgetPeriod>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmEntity<BudgetPeriod>
public int hashCode()
hashCode
in class VdmEntity<BudgetPeriod>
Copyright © 2022 SAP SE. All rights reserved.