public class ConsolidationUnitByTimeVersion extends VdmEntity<ConsolidationUnitByTimeVersion>
Original entity name from the Odata EDM: ConsolidationUnitByTimeVersionType
Modifier and Type | Class and Description |
---|---|
static class |
ConsolidationUnitByTimeVersion.ConsolidationUnitByTimeVersionBuilder
Helper class to allow for fluent creation of ConsolidationUnitByTimeVersion instances.
|
Modifier and Type | Field and Description |
---|---|
static ConsolidationUnitByTimeVersionSelectable |
ALL_FIELDS
Selector for all available fields of ConsolidationUnitByTimeVersion.
|
static ConsolidationUnitByTimeVersionField<String> |
CNSLDTN_CRCY_TRANSLATION_METHOD
Use with available fluent helpers to apply the CnsldtnCrcyTranslationMethod field to query operations.
|
static ConsolidationUnitByTimeVersionField<String> |
CNSLDTN_DATA_TRANSFER_METHOD
Use with available fluent helpers to apply the CnsldtnDataTransferMethod field to query operations.
|
static ConsolidationUnitByTimeVersionField<String> |
CNSLDTN_UNIT_GROUP_CRCY_SOURCE
Use with available fluent helpers to apply the CnsldtnUnitGroupCrcySource field to query operations.
|
static ConsolidationUnitByTimeVersionField<String> |
CNSLDTN_UNIT_LOCAL_CRCY_SOURCE
Use with available fluent helpers to apply the CnsldtnUnitLocalCrcySource field to query operations.
|
static ConsolidationUnitByTimeVersionField<String> |
CNSLDTN_UPLOAD_METHOD
Use with available fluent helpers to apply the CnsldtnUploadMethod field to query operations.
|
static ConsolidationUnitByTimeVersionField<String> |
CONSOLIDATION_UNIT
Use with available fluent helpers to apply the ConsolidationUnit field to query operations.
|
static ConsolidationUnitByTimeVersionField<Boolean> |
CONSOLIDATION_UNIT_IS_PARTNER_ONLY
Use with available fluent helpers to apply the ConsolidationUnitIsPartnerOnly field to query operations.
|
static ConsolidationUnitByTimeVersionField<String> |
CONSOLIDATION_VERSION
Use with available fluent helpers to apply the ConsolidationVersion field to query operations.
|
static ConsolidationUnitByTimeVersionField<Boolean> |
DOCUMENT_ENTRY_IS_IN_GROUP_CURRENCY
Use with available fluent helpers to apply the DocumentEntryIsInGroupCurrency field to query operations.
|
static ConsolidationUnitByTimeVersionField<String> |
FISCAL_YEAR_VARIANT
Use with available fluent helpers to apply the FiscalYearVariant field to query operations.
|
static ConsolidationUnitByTimeVersionField<String> |
FROM_FISCAL_YEAR_PERIOD
Use with available fluent helpers to apply the FromFiscalYearPeriod field to query operations.
|
static ConsolidationUnitByTimeVersionField<BigDecimal> |
TAX_RATE
Use with available fluent helpers to apply the TaxRate field to query operations.
|
static ConsolidationUnitByTimeVersionOneToOneLink<ConsolidationUnit> |
TO_CNSLDTN_UNIT
Use with available fluent helpers to apply the to_CnsldtnUnit navigation property to query operations.
|
static ConsolidationUnitByTimeVersionField<String> |
TO_FISCAL_YEAR_PERIOD
Use with available fluent helpers to apply the ToFiscalYearPeriod field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
ConsolidationUnitByTimeVersion() |
ConsolidationUnitByTimeVersion(String consolidationUnit,
String consolidationVersion,
String fromFiscalYearPeriod,
String toFiscalYearPeriod,
Boolean consolidationUnitIsPartnerOnly,
String cnsldtnCrcyTranslationMethod,
BigDecimal taxRate,
String fiscalYearVariant,
String cnsldtnDataTransferMethod,
Boolean documentEntryIsInGroupCurrency,
String cnsldtnUnitLocalCrcySource,
String cnsldtnUnitGroupCrcySource,
String cnsldtnUploadMethod,
ConsolidationUnit toCnsldtnUnit) |
Modifier and Type | Method and Description |
---|---|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static ConsolidationUnitByTimeVersion.ConsolidationUnitByTimeVersionBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ConsolidationUnit |
fetchCnsldtnUnit()
Fetches the ConsolidationUnit entity (one to one) associated with this entity.
|
static <T> ConsolidationUnitByTimeVersionField<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 |
getCnsldtnCrcyTranslationMethod()
Constraints: Not nullable, Maximum length: 5
|
String |
getCnsldtnDataTransferMethod()
Constraints: Not nullable, Maximum length: 1
|
String |
getCnsldtnUnitGroupCrcySource()
Constraints: Not nullable, Maximum length: 1
|
io.vavr.control.Option<ConsolidationUnit> |
getCnsldtnUnitIfPresent()
Retrieval of associated ConsolidationUnit entity (one to one).
|
String |
getCnsldtnUnitLocalCrcySource()
Constraints: Not nullable, Maximum length: 1
|
ConsolidationUnit |
getCnsldtnUnitOrFetch()
Retrieval of associated ConsolidationUnit entity (one to one).
|
String |
getCnsldtnUploadMethod()
Constraints: Not nullable, Maximum length: 5
|
String |
getConsolidationUnit()
(Key Field) Constraints: Not nullable, Maximum length: 18
|
Boolean |
getConsolidationUnitIsPartnerOnly()
Constraints: none
|
String |
getConsolidationVersion()
(Key Field) Constraints: Not nullable, Maximum length: 3
|
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.
|
Boolean |
getDocumentEntryIsInGroupCurrency()
Constraints: none
|
protected String |
getEntityCollection()
Used by fluent helpers and navigation property methods to construct OData queries.
|
String |
getFiscalYearVariant()
Constraints: Not nullable, Maximum length: 2
|
String |
getFromFiscalYearPeriod()
(Key Field) Constraints: Not nullable, Maximum length: 7
|
protected Map<String,Object> |
getKey() |
BigDecimal |
getTaxRate()
Constraints: Not nullable, Precision: 7, Scale: 4
|
String |
getToFiscalYearPeriod()
Constraints: Not nullable, Maximum length: 7
|
Class<ConsolidationUnitByTimeVersion> |
getType() |
int |
hashCode() |
void |
setCnsldtnCrcyTranslationMethod(String cnsldtnCrcyTranslationMethod)
Constraints: Not nullable, Maximum length: 5
|
void |
setCnsldtnDataTransferMethod(String cnsldtnDataTransferMethod)
Constraints: Not nullable, Maximum length: 1
|
void |
setCnsldtnUnit(ConsolidationUnit value)
Overwrites the associated ConsolidationUnit entity for the loaded navigation property
to_CnsldtnUnit.
|
void |
setCnsldtnUnitGroupCrcySource(String cnsldtnUnitGroupCrcySource)
Constraints: Not nullable, Maximum length: 1
|
void |
setCnsldtnUnitLocalCrcySource(String cnsldtnUnitLocalCrcySource)
Constraints: Not nullable, Maximum length: 1
|
void |
setCnsldtnUploadMethod(String cnsldtnUploadMethod)
Constraints: Not nullable, Maximum length: 5
|
void |
setConsolidationUnit(String consolidationUnit)
(Key Field) Constraints: Not nullable, Maximum length: 18
|
void |
setConsolidationUnitIsPartnerOnly(Boolean consolidationUnitIsPartnerOnly)
Constraints: none
|
void |
setConsolidationVersion(String consolidationVersion)
(Key Field) Constraints: Not nullable, Maximum length: 3
|
void |
setDocumentEntryIsInGroupCurrency(Boolean documentEntryIsInGroupCurrency)
Constraints: none
|
void |
setFiscalYearVariant(String fiscalYearVariant)
Constraints: Not nullable, Maximum length: 2
|
void |
setFromFiscalYearPeriod(String fromFiscalYearPeriod)
(Key Field) Constraints: Not nullable, Maximum length: 7
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setTaxRate(BigDecimal taxRate)
Constraints: Not nullable, Precision: 7, Scale: 4
|
void |
setToFiscalYearPeriod(String toFiscalYearPeriod)
Constraints: Not nullable, Maximum length: 7
|
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 ConsolidationUnitByTimeVersionSelectable ALL_FIELDS
public static final ConsolidationUnitByTimeVersionField<String> CONSOLIDATION_UNIT
public static final ConsolidationUnitByTimeVersionField<String> CONSOLIDATION_VERSION
public static final ConsolidationUnitByTimeVersionField<String> FROM_FISCAL_YEAR_PERIOD
public static final ConsolidationUnitByTimeVersionField<String> TO_FISCAL_YEAR_PERIOD
public static final ConsolidationUnitByTimeVersionField<Boolean> CONSOLIDATION_UNIT_IS_PARTNER_ONLY
public static final ConsolidationUnitByTimeVersionField<String> CNSLDTN_CRCY_TRANSLATION_METHOD
public static final ConsolidationUnitByTimeVersionField<BigDecimal> TAX_RATE
public static final ConsolidationUnitByTimeVersionField<String> FISCAL_YEAR_VARIANT
public static final ConsolidationUnitByTimeVersionField<String> CNSLDTN_DATA_TRANSFER_METHOD
public static final ConsolidationUnitByTimeVersionField<Boolean> DOCUMENT_ENTRY_IS_IN_GROUP_CURRENCY
public static final ConsolidationUnitByTimeVersionField<String> CNSLDTN_UNIT_LOCAL_CRCY_SOURCE
public static final ConsolidationUnitByTimeVersionField<String> CNSLDTN_UNIT_GROUP_CRCY_SOURCE
public static final ConsolidationUnitByTimeVersionField<String> CNSLDTN_UPLOAD_METHOD
public static final ConsolidationUnitByTimeVersionOneToOneLink<ConsolidationUnit> TO_CNSLDTN_UNIT
public ConsolidationUnitByTimeVersion()
public ConsolidationUnitByTimeVersion(@Nullable String consolidationUnit, @Nullable String consolidationVersion, @Nullable String fromFiscalYearPeriod, @Nullable String toFiscalYearPeriod, @Nullable Boolean consolidationUnitIsPartnerOnly, @Nullable String cnsldtnCrcyTranslationMethod, @Nullable BigDecimal taxRate, @Nullable String fiscalYearVariant, @Nullable String cnsldtnDataTransferMethod, @Nullable Boolean documentEntryIsInGroupCurrency, @Nullable String cnsldtnUnitLocalCrcySource, @Nullable String cnsldtnUnitGroupCrcySource, @Nullable String cnsldtnUploadMethod, @Nullable ConsolidationUnit toCnsldtnUnit)
@Nonnull public Class<ConsolidationUnitByTimeVersion> getType()
getType
in class VdmObject<ConsolidationUnitByTimeVersion>
public void setConsolidationUnit(@Nullable String consolidationUnit)
Original property name from the Odata EDM: ConsolidationUnit
consolidationUnit
- Consolidation Unitpublic void setConsolidationVersion(@Nullable String consolidationVersion)
Original property name from the Odata EDM: ConsolidationVersion
consolidationVersion
- Enter a Consolidation Version.public void setFromFiscalYearPeriod(@Nullable String fromFiscalYearPeriod)
Original property name from the Odata EDM: FromFiscalYearPeriod
fromFiscalYearPeriod
- From Fiscal Year Periodpublic void setToFiscalYearPeriod(@Nullable String toFiscalYearPeriod)
Original property name from the Odata EDM: ToFiscalYearPeriod
toFiscalYearPeriod
- To Fiscal Year Periodpublic void setConsolidationUnitIsPartnerOnly(@Nullable Boolean consolidationUnitIsPartnerOnly)
Original property name from the Odata EDM: ConsolidationUnitIsPartnerOnly
consolidationUnitIsPartnerOnly
- Consolidation Unit is Partner Unit Onlypublic void setCnsldtnCrcyTranslationMethod(@Nullable String cnsldtnCrcyTranslationMethod)
Original property name from the Odata EDM: CnsldtnCrcyTranslationMethod
cnsldtnCrcyTranslationMethod
- Currency Translation Methodpublic void setTaxRate(@Nullable BigDecimal taxRate)
Original property name from the Odata EDM: TaxRate
taxRate
- Percentage rate applied to the tax base amount in order to calculate the tax amount.public void setFiscalYearVariant(@Nullable String fiscalYearVariant)
Original property name from the Odata EDM: FiscalYearVariant
fiscalYearVariant
- Deviating Fiscal Year Variantpublic void setCnsldtnDataTransferMethod(@Nullable String cnsldtnDataTransferMethod)
Original property name from the Odata EDM: CnsldtnDataTransferMethod
cnsldtnDataTransferMethod
- Universal Journal Integrationpublic void setDocumentEntryIsInGroupCurrency(@Nullable Boolean documentEntryIsInGroupCurrency)
Original property name from the Odata EDM: DocumentEntryIsInGroupCurrency
documentEntryIsInGroupCurrency
- Group Currency is Leading Currencypublic void setCnsldtnUnitLocalCrcySource(@Nullable String cnsldtnUnitLocalCrcySource)
Original property name from the Odata EDM: CnsldtnUnitLocalCrcySource
cnsldtnUnitLocalCrcySource
- Source for Local Currency Key Figurepublic void setCnsldtnUnitGroupCrcySource(@Nullable String cnsldtnUnitGroupCrcySource)
Original property name from the Odata EDM: CnsldtnUnitGroupCrcySource
cnsldtnUnitGroupCrcySource
- Source for Group Currency Key Figurepublic void setCnsldtnUploadMethod(@Nullable String cnsldtnUploadMethod)
Original property name from the Odata EDM: CnsldtnUploadMethod
cnsldtnUploadMethod
- Upload Methodprotected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<ConsolidationUnitByTimeVersion>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<ConsolidationUnitByTimeVersion>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<ConsolidationUnitByTimeVersion>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<ConsolidationUnitByTimeVersion>
@Nonnull public static <T> ConsolidationUnitByTimeVersionField<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> ConsolidationUnitByTimeVersionField<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<ConsolidationUnitByTimeVersion>
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<ConsolidationUnitByTimeVersion>
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<ConsolidationUnitByTimeVersion>
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<ConsolidationUnitByTimeVersion>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<ConsolidationUnitByTimeVersion>
@Nullable public ConsolidationUnit fetchCnsldtnUnit() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
null
if an entity is not associated.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.@Nullable public ConsolidationUnit getCnsldtnUnitOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_CnsldtnUnit of a queried ConsolidationUnitByTimeVersion 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<ConsolidationUnit> getCnsldtnUnitIfPresent()
If the navigation property for an entity ConsolidationUnitByTimeVersion 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 setCnsldtnUnit(ConsolidationUnit value)
value
- New ConsolidationUnit entity.@Nonnull public static ConsolidationUnitByTimeVersion.ConsolidationUnitByTimeVersionBuilder builder()
@Nullable public String getConsolidationUnit()
Original property name from the Odata EDM: ConsolidationUnit
@Nullable public String getConsolidationVersion()
Original property name from the Odata EDM: ConsolidationVersion
@Nullable public String getFromFiscalYearPeriod()
Original property name from the Odata EDM: FromFiscalYearPeriod
@Nullable public String getToFiscalYearPeriod()
Original property name from the Odata EDM: ToFiscalYearPeriod
@Nullable public Boolean getConsolidationUnitIsPartnerOnly()
Original property name from the Odata EDM: ConsolidationUnitIsPartnerOnly
@Nullable public String getCnsldtnCrcyTranslationMethod()
Original property name from the Odata EDM: CnsldtnCrcyTranslationMethod
@Nullable public BigDecimal getTaxRate()
Original property name from the Odata EDM: TaxRate
@Nullable public String getFiscalYearVariant()
Original property name from the Odata EDM: FiscalYearVariant
@Nullable public String getCnsldtnDataTransferMethod()
Original property name from the Odata EDM: CnsldtnDataTransferMethod
@Nullable public Boolean getDocumentEntryIsInGroupCurrency()
Original property name from the Odata EDM: DocumentEntryIsInGroupCurrency
@Nullable public String getCnsldtnUnitLocalCrcySource()
Original property name from the Odata EDM: CnsldtnUnitLocalCrcySource
@Nullable public String getCnsldtnUnitGroupCrcySource()
Original property name from the Odata EDM: CnsldtnUnitGroupCrcySource
@Nullable public String getCnsldtnUploadMethod()
Original property name from the Odata EDM: CnsldtnUploadMethod
@Nonnull public String toString()
toString
in class VdmObject<ConsolidationUnitByTimeVersion>
public boolean equals(@Nullable Object o)
equals
in class VdmObject<ConsolidationUnitByTimeVersion>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmObject<ConsolidationUnitByTimeVersion>
public int hashCode()
hashCode
in class VdmObject<ConsolidationUnitByTimeVersion>
Copyright © 2021 SAP SE. All rights reserved.