public class CostCenter extends VdmEntity<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
|
String |
getCompanyCode()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getCostCenterDescription()
Constraints: Not nullable, Maximum length: 40
|
String |
getCostCenterID()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getCostCenterName()
Constraints: Not nullable, Maximum length: 20
|
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
|
Calendar |
getLastChangeDateTime()
Constraints: Not nullable, Precision: 0
|
String |
getStatus()
Constraints: Not nullable, Maximum length: 10
|
Class<CostCenter> |
getType() |
Calendar |
getValidityEndDate()
(Key Field) Constraints: Not nullable, Precision: 0
|
Calendar |
getValidityStartDate()
Constraints: Not nullable, Precision: 0
|
int |
hashCode() |
void |
setCategory(String category)
Constraints: Not nullable, Maximum length: 1
|
void |
setCompanyCode(String companyCode)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setCostCenterDescription(String costCenterDescription)
Constraints: Not nullable, Maximum length: 40
|
void |
setCostCenterID(String costCenterID)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setCostCenterName(String costCenterName)
Constraints: Not nullable, Maximum length: 20
|
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
|
void |
setLastChangeDateTime(Calendar lastChangeDateTime)
Constraints: Not nullable, Precision: 0
|
void |
setStatus(String status)
Constraints: Not nullable, Maximum length: 10
|
void |
setValidityEndDate(Calendar validityEndDate)
(Key Field) Constraints: Not nullable, Precision: 0
|
void |
setValidityStartDate(Calendar validityStartDate)
Constraints: Not nullable, Precision: 0
|
String |
toString() |
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 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 CostCenterTexts 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()
@Nullable public String getCostCenterID()
@Nullable public Calendar getValidityEndDate()
@Nullable public Calendar getValidityStartDate()
@Nullable public String getStatus()
@Nullable public String getCategory()
@Nullable public String getLanguage()
@Nullable public String getCostCenterName()
@Nullable public String getCostCenterDescription()
@Nullable public Calendar getLastChangeDateTime()
@Nullable public ErpConfigContext getErpConfigContext()
public void setCompanyCode(@Nullable String companyCode)
companyCode
- public void setCostCenterID(@Nullable String costCenterID)
costCenterID
- public void setValidityEndDate(@Nullable Calendar validityEndDate)
validityEndDate
- public void setValidityStartDate(@Nullable Calendar validityStartDate)
validityStartDate
- public void setStatus(@Nullable String status)
status
- public void setCategory(@Nullable String category)
category
- public void setLanguage(@Nullable String language)
language
- public void setCostCenterName(@Nullable String costCenterName)
costCenterName
- public void setCostCenterDescription(@Nullable String costCenterDescription)
costCenterDescription
- public void setLastChangeDateTime(@Nullable Calendar lastChangeDateTime)
lastChangeDateTime
- 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.