public class CostCenter extends Entity<CostCenter>
Modifier and Type | Class and Description |
---|---|
static class |
CostCenter.CostCenterBuilder |
Modifier and Type | Field and Description |
---|---|
static EntityField<CostCenter,String> |
CATEGORY
Use with available fluent helpers to apply the Category field to query operations.
|
static EntityField<CostCenter,String> |
COMPANY_CODE
Use with available fluent helpers to apply the CompanyCode field to query operations.
|
static EntityField<CostCenter,String> |
COST_CENTER_DESCRIPTION
Use with available fluent helpers to apply the CostCenterDescription field to query operations.
|
static EntityField<CostCenter,String> |
COST_CENTER_ID
Use with available fluent helpers to apply the CostCenterID field to query operations.
|
static EntityField<CostCenter,String> |
COST_CENTER_NAME
Use with available fluent helpers to apply the CostCenterName field to query operations.
|
static EntityField<CostCenter,String> |
LANGUAGE
Use with available fluent helpers to apply the Language field to query operations.
|
static EntityField<CostCenter,Calendar> |
LAST_CHANGE_DATE_TIME
Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
|
static EntityField<CostCenter,String> |
STATUS
Use with available fluent helpers to apply the Status field to query operations.
|
static EntityField<CostCenter,Calendar> |
VALIDITY_END_DATE
Use with available fluent helpers to apply the ValidityEndDate field to query operations.
|
static EntityField<CostCenter,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 |
---|---|
static CostCenter.CostCenterBuilder |
builder() |
List<CostCenterText> |
costCenterTexts()
Fetches the CostCenterText entities (one to many) associated with this entity.
|
void |
costCenterTexts(CostCenterText... entity)
Adds elements to the list of associated CostCenterText entities.
|
void |
costCenterTexts(List<CostCenterText> value)
Overwrites the list of associated CostCenterText entities for the loaded navigation property CostCenterTexts.
|
List<CostCenterText> |
costCenterTextsOrFetch()
Retrieval of associated CostCenterText entities (one to many).
|
com.google.common.base.Optional<List<CostCenterText>> |
costCenterTextsOrNull()
Retrieval of associated CostCenterText entities (one to many).
|
boolean |
equals(Object o) |
static <T> EntityField<CostCenter,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
|
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
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 |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
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
public static final EntityField<CostCenter,String> COMPANY_CODE
public static final EntityField<CostCenter,String> COST_CENTER_ID
public static final EntityField<CostCenter,Calendar> VALIDITY_END_DATE
public static final EntityField<CostCenter,Calendar> VALIDITY_START_DATE
public static final EntityField<CostCenter,String> STATUS
public static final EntityField<CostCenter,String> CATEGORY
public static final EntityField<CostCenter,String> LANGUAGE
public static final EntityField<CostCenter,String> COST_CENTER_NAME
public static final EntityField<CostCenter,String> COST_CENTER_DESCRIPTION
public static final EntityField<CostCenter,Calendar> LAST_CHANGE_DATE_TIME
@Generated(value="lombok") public CostCenter()
@ConstructorProperties(value={"companyCode","costCenterID","validityEndDate","validityStartDate","status","category","language","costCenterName","costCenterDescription","lastChangeDateTime","erpConfigContext","toCostCenterTexts"}) @Generated(value="lombok") 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 Entity<CostCenter>
public static <T> EntityField<CostCenter,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> costCenterTexts() 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
public List<CostCenterText> costCenterTextsOrFetch() 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
public com.google.common.base.Optional<List<CostCenterText>> costCenterTextsOrNull()
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 costCenterTexts(@NonNull List<CostCenterText> value) 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.
value
- List of CostCenterText entities.com.sap.cloud.sdk.odatav2.connectivity.ODataException
public void costCenterTexts(CostCenterText... entity) 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.
entity
- Array of CostCenterText entities.com.sap.cloud.sdk.odatav2.connectivity.ODataException
@Generated(value="lombok") public static CostCenter.CostCenterBuilder builder()
@Nullable @Generated(value="lombok") public String getCompanyCode()
@Nullable @Generated(value="lombok") public String getCostCenterID()
@Nullable @Generated(value="lombok") public Calendar getValidityEndDate()
@Nullable @Generated(value="lombok") public Calendar getValidityStartDate()
@Nullable @Generated(value="lombok") public String getStatus()
@Nullable @Generated(value="lombok") public String getCategory()
@Nullable @Generated(value="lombok") public String getLanguage()
@Nullable @Generated(value="lombok") public String getCostCenterName()
@Nullable @Generated(value="lombok") public String getCostCenterDescription()
@Nullable @Generated(value="lombok") public Calendar getLastChangeDateTime()
@Nullable @Generated(value="lombok") public ErpConfigContext getErpConfigContext()
@Generated(value="lombok") public void setCompanyCode(@Nullable String companyCode)
companyCode
- @Generated(value="lombok") public void setCostCenterID(@Nullable String costCenterID)
costCenterID
- @Generated(value="lombok") public void setValidityEndDate(@Nullable Calendar validityEndDate)
validityEndDate
- @Generated(value="lombok") public void setValidityStartDate(@Nullable Calendar validityStartDate)
validityStartDate
- @Generated(value="lombok") public void setStatus(@Nullable String status)
status
- @Generated(value="lombok") public void setCategory(@Nullable String category)
category
- @Generated(value="lombok") public void setLanguage(@Nullable String language)
language
- @Generated(value="lombok") public void setCostCenterName(@Nullable String costCenterName)
costCenterName
- @Generated(value="lombok") public void setCostCenterDescription(@Nullable String costCenterDescription)
costCenterDescription
- @Generated(value="lombok") public void setLastChangeDateTime(@Nullable Calendar lastChangeDateTime)
lastChangeDateTime
- @Generated(value="lombok") public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
erpConfigContext
- @Generated(value="lombok") public String toString()
toString
in class Entity<CostCenter>
@Generated(value="lombok") public boolean equals(Object o)
equals
in class Entity<CostCenter>
@Generated(value="lombok") public int hashCode()
hashCode
in class Entity<CostCenter>
Copyright © 2017 SAP SE. All rights reserved.