public class CostCenter extends VdmEntity<CostCenter>
Original entity name from the Odata EDM: CostCenter
Modifier and Type | Class and Description |
---|---|
static class |
CostCenter.CostCenterBuilder |
Modifier and Type | Field and Description |
---|---|
static CostCenterSelectable |
ALL_FIELDS
Selector for all available fields of CostCenter.
|
static CostCenterField<String> |
CATEGORY
Use with available fluent helpers to apply the Category field to query operations.
|
static CostCenterField<String> |
COMPANY_CODE
Use with available fluent helpers to apply the CompanyCode field to query operations.
|
static CostCenterField<String> |
COST_CENTER_DESCRIPTION
Use with available fluent helpers to apply the CostCenterDescription field to query operations.
|
static CostCenterField<String> |
COST_CENTER_ID
Use with available fluent helpers to apply the CostCenterID field to query operations.
|
static CostCenterField<String> |
COST_CENTER_NAME
Use with available fluent helpers to apply the CostCenterName field to query operations.
|
static CostCenterField<String> |
LANGUAGE
Use with available fluent helpers to apply the Language field to query operations.
|
static CostCenterField<Calendar> |
LAST_CHANGE_DATE_TIME
Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
|
static CostCenterField<String> |
STATUS
Use with available fluent helpers to apply the Status field to query operations.
|
static CostCenterLink<CostCenterText> |
TO_COST_CENTER_TEXTS
Use with available fluent helpers to apply the CostCenterTexts navigation property to query operations.
|
static CostCenterField<Calendar> |
VALIDITY_END_DATE
Use with available fluent helpers to apply the ValidityEndDate field to query operations.
|
static CostCenterField<Calendar> |
VALIDITY_START_DATE
Use with available fluent helpers to apply the ValidityStartDate field to query operations.
|
Constructor and Description |
---|
CostCenter() |
CostCenter(String companyCode,
String costCenterID,
Calendar validityEndDate,
Calendar validityStartDate,
String status,
String category,
String language,
String costCenterName,
String costCenterDescription,
Calendar lastChangeDateTime,
ErpConfigContext erpConfigContext,
List<CostCenterText> toCostCenterTexts) |
Modifier and Type | Method and Description |
---|---|
void |
addCostCenterTexts(CostCenterText... entity)
Adds elements to the list of associated CostCenterText entities.
|
static CostCenter.CostCenterBuilder |
builder() |
boolean |
equals(Object o) |
List<CostCenterText> |
fetchCostCenterTexts()
Fetches the CostCenterText entities (one to many) associated with this entity.
|
static <T> CostCenterField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
String |
getCategory()
Constraints: Not nullable, Maximum length: 1 Original property name from the Odata EDM: Category
|
String |
getCompanyCode()
(Key Field) Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: CompanyCode
|
String |
getCostCenterDescription()
Constraints: Not nullable, Maximum length: 40 Original property name from the Odata EDM: CostCenterDescription
|
String |
getCostCenterID()
(Key Field) Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: CostCenterID
|
String |
getCostCenterName()
Constraints: Not nullable, Maximum length: 20 Original property name from the Odata EDM: CostCenterName
|
List<CostCenterText> |
getCostCenterTextsOrFetch()
Retrieval of associated CostCenterText entities (one to many).
|
com.google.common.base.Optional<List<CostCenterText>> |
getCostCenterTextsOrNull()
Retrieval of associated CostCenterText entities (one to many).
|
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
String |
getLanguage()
Constraints: Not nullable, Maximum length: 2 Original property name from the Odata EDM: Language
|
Calendar |
getLastChangeDateTime()
Constraints: Not nullable, Precision: 0 Original property name from the Odata EDM: LastChangeDateTime
|
String |
getStatus()
Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: Status
|
Class<CostCenter> |
getType() |
Calendar |
getValidityEndDate()
(Key Field) Constraints: Not nullable, Precision: 0 Original property name from the Odata EDM: ValidityEndDate
|
Calendar |
getValidityStartDate()
Constraints: Not nullable, Precision: 0 Original property name from the Odata EDM: ValidityStartDate
|
int |
hashCode() |
void |
setCategory(String category)
Constraints: Not nullable, Maximum length: 1 Original property name from the Odata EDM: Category
|
void |
setCompanyCode(String companyCode)
(Key Field) Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: CompanyCode
|
void |
setCostCenterDescription(String costCenterDescription)
Constraints: Not nullable, Maximum length: 40 Original property name from the Odata EDM: CostCenterDescription
|
void |
setCostCenterID(String costCenterID)
(Key Field) Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: CostCenterID
|
void |
setCostCenterName(String costCenterName)
Constraints: Not nullable, Maximum length: 20 Original property name from the Odata EDM: CostCenterName
|
void |
setCostCenterTexts(List<CostCenterText> value)
Overwrites the list of associated CostCenterText entities for the loaded navigation property CostCenterTexts.
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
void |
setLanguage(String language)
Constraints: Not nullable, Maximum length: 2 Original property name from the Odata EDM: Language
|
void |
setLastChangeDateTime(Calendar lastChangeDateTime)
Constraints: Not nullable, Precision: 0 Original property name from the Odata EDM: LastChangeDateTime
|
void |
setStatus(String status)
Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: Status
|
void |
setValidityEndDate(Calendar validityEndDate)
(Key Field) Constraints: Not nullable, Precision: 0 Original property name from the Odata EDM: ValidityEndDate
|
void |
setValidityStartDate(Calendar validityStartDate)
Constraints: Not nullable, Precision: 0 Original property name from the Odata EDM: ValidityStartDate
|
String |
toString() |
getVersionIdentifier, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, hasCustomField, hasCustomField, setCustomField, setCustomField
public static final CostCenterSelectable ALL_FIELDS
public static final CostCenterField<String> COMPANY_CODE
public static final CostCenterField<String> COST_CENTER_ID
public static final CostCenterField<Calendar> VALIDITY_END_DATE
public static final CostCenterField<Calendar> VALIDITY_START_DATE
public static final CostCenterField<String> STATUS
public static final CostCenterField<String> CATEGORY
public static final CostCenterField<String> LANGUAGE
public static final CostCenterField<String> COST_CENTER_NAME
public static final CostCenterField<String> COST_CENTER_DESCRIPTION
public static final CostCenterField<Calendar> LAST_CHANGE_DATE_TIME
public static final CostCenterLink<CostCenterText> TO_COST_CENTER_TEXTS
public CostCenter()
public CostCenter(@Nullable String companyCode, @Nullable String costCenterID, @Nullable Calendar validityEndDate, @Nullable Calendar validityStartDate, @Nullable String status, @Nullable String category, @Nullable String language, @Nullable String costCenterName, @Nullable String costCenterDescription, @Nullable Calendar lastChangeDateTime, @Nullable ErpConfigContext erpConfigContext, List<CostCenterText> toCostCenterTexts)
public Class<CostCenter> getType()
getType
in class VdmObject<CostCenter>
public void setCompanyCode(@Nullable String companyCode)
Original property name from the Odata EDM: CompanyCode
companyCode
- Company Codepublic void setCostCenterID(@Nullable String costCenterID)
Original property name from the Odata EDM: CostCenterID
costCenterID
- Cost Centerpublic void setValidityEndDate(@Nullable Calendar validityEndDate)
Original property name from the Odata EDM: ValidityEndDate
validityEndDate
- Valid Topublic void setValidityStartDate(@Nullable Calendar validityStartDate)
Original property name from the Odata EDM: ValidityStartDate
validityStartDate
- Valid Frompublic void setStatus(@Nullable String status)
Original property name from the Odata EDM: Status
status
- Character Field Length = 10public void setCategory(@Nullable String category)
Original property name from the Odata EDM: Category
category
- CCtr Categorypublic void setLanguage(@Nullable String language)
Original property name from the Odata EDM: Language
language
- Language Keypublic void setCostCenterName(@Nullable String costCenterName)
Original property name from the Odata EDM: CostCenterName
costCenterName
- Namepublic void setCostCenterDescription(@Nullable String costCenterDescription)
Original property name from the Odata EDM: CostCenterDescription
costCenterDescription
- Long Textpublic void setLastChangeDateTime(@Nullable Calendar lastChangeDateTime)
Original property name from the Odata EDM: LastChangeDateTime
lastChangeDateTime
- Time Stamppublic static <T> CostCenterField<T> field(String fieldName, Class<T> fieldType)
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.public List<CostCenterText> fetchCostCenterTexts() 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.public List<CostCenterText> getCostCenterTextsOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property CostCenterTexts of a queried CostCenter 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.public com.google.common.base.Optional<List<CostCenterText>> getCostCenterTextsOrNull()
If the navigation property for an entity CostCenter has not been resolved yet, this method will not query further information. Instead its Optional result state will be null.
public void setCostCenterTexts(@NonNull List<CostCenterText> value)
If the navigation property CostCenterTexts of a queried CostCenter 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 CostCenterText entities.public void addCostCenterTexts(CostCenterText... entity)
If the navigation property CostCenterTexts of a queried CostCenter 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 CostCenterText entities.public static CostCenter.CostCenterBuilder builder()
@Nullable public String getCompanyCode()
Original property name from the Odata EDM: CompanyCode
@Nullable public String getCostCenterID()
Original property name from the Odata EDM: CostCenterID
@Nullable public Calendar getValidityEndDate()
Original property name from the Odata EDM: ValidityEndDate
@Nullable public Calendar getValidityStartDate()
Original property name from the Odata EDM: ValidityStartDate
@Nullable public String getStatus()
Original property name from the Odata EDM: Status
@Nullable public String getCategory()
Original property name from the Odata EDM: Category
@Nullable public String getLanguage()
Original property name from the Odata EDM: Language
@Nullable public String getCostCenterName()
Original property name from the Odata EDM: CostCenterName
@Nullable public String getCostCenterDescription()
Original property name from the Odata EDM: CostCenterDescription
@Nullable public Calendar getLastChangeDateTime()
Original property name from the Odata EDM: LastChangeDateTime
@Nullable public ErpConfigContext getErpConfigContext()
public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
erpConfigContext
- public String toString()
toString
in class VdmObject<CostCenter>
public boolean equals(Object o)
equals
in class VdmObject<CostCenter>
public int hashCode()
hashCode
in class VdmObject<CostCenter>
Copyright © 2018 SAP SE. All rights reserved.