public class DefectCode extends VdmEntity<DefectCode>
Original entity name from the Odata EDM: A_DefectCodeType
Modifier and Type | Class and Description |
---|---|
static class |
DefectCode.DefectCodeBuilder |
Modifier and Type | Field and Description |
---|---|
static DefectCodeSelectable |
ALL_FIELDS
Selector for all available fields of DefectCode.
|
static DefectCodeField<String> |
CODE_GROUP_IS_USABLE
Use with available fluent helpers to apply the CodeGroupIsUsable field to query operations.
|
static DefectCodeField<String> |
CODE_IS_INACTIVE
Use with available fluent helpers to apply the CodeIsInactive field to query operations.
|
static DefectCodeField<String> |
DEFECT_CODE
Use with available fluent helpers to apply the DefectCode field to query operations.
|
static DefectCodeField<String> |
DEFECT_CODE_GROUP
Use with available fluent helpers to apply the DefectCodeGroup field to query operations.
|
static DefectCodeLink<DefectCodeGroup> |
TO_DEFECT_CODE_GROUP
Use with available fluent helpers to apply the to_DefectCodeGroup navigation property to query operations.
|
static DefectCodeLink<DefectCodeText> |
TO_TEXT
Use with available fluent helpers to apply the to_Text navigation property to query operations.
|
changedOriginalFields
Constructor and Description |
---|
DefectCode() |
DefectCode(String defectCodeGroup,
String defectCode,
String codeIsInactive,
String codeGroupIsUsable,
ErpConfigContext erpConfigContext,
DefectCodeGroup toDefectCodeGroup,
List<DefectCodeText> toText) |
Modifier and Type | Method and Description |
---|---|
void |
addText(DefectCodeText... entity)
Adds elements to the list of associated DefectCodeText entities.
|
static DefectCode.DefectCodeBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
DefectCodeGroup |
fetchDefectCodeGroup()
Fetches the DefectCodeGroup entity (one to one) associated with this entity.
|
List<DefectCodeText> |
fetchText()
Fetches the DefectCodeText entities (one to many) associated with this entity.
|
static <T> DefectCodeField<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 |
getCodeGroupIsUsable()
Constraints: Not nullable, Maximum length: 1
|
String |
getCodeIsInactive()
Constraints: Not nullable, Maximum length: 1
|
String |
getDefectCode()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getDefectCodeGroup()
(Key Field) Constraints: Not nullable, Maximum length: 8
|
Optional<DefectCodeGroup> |
getDefectCodeGroupIfPresent()
Retrieval of associated DefectCodeGroup entity (one to one).
|
DefectCodeGroup |
getDefectCodeGroupOrFetch()
Retrieval of associated DefectCodeGroup entity (one to one).
|
protected String |
getEntityCollection() |
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
protected Map<String,Object> |
getKey() |
Optional<List<DefectCodeText>> |
getTextIfPresent()
Retrieval of associated DefectCodeText entities (one to many).
|
List<DefectCodeText> |
getTextOrFetch()
Retrieval of associated DefectCodeText entities (one to many).
|
Class<DefectCode> |
getType() |
int |
hashCode() |
void |
setCodeGroupIsUsable(String codeGroupIsUsable)
Constraints: Not nullable, Maximum length: 1
|
void |
setCodeIsInactive(String codeIsInactive)
Constraints: Not nullable, Maximum length: 1
|
void |
setDefectCode(String defectCode)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setDefectCodeGroup(DefectCodeGroup value)
Overwrites the associated DefectCodeGroup entity for the loaded navigation property to_DefectCodeGroup.
|
void |
setDefectCodeGroup(String defectCodeGroup)
(Key Field) Constraints: Not nullable, Maximum length: 8
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
void |
setText(List<DefectCodeText> value)
Overwrites the list of associated DefectCodeText entities for the loaded navigation property to_Text.
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getEndpointUrl, getServicePathForFetch, getVersionIdentifier, setServicePathForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final DefectCodeSelectable ALL_FIELDS
public static final DefectCodeField<String> DEFECT_CODE_GROUP
public static final DefectCodeField<String> DEFECT_CODE
public static final DefectCodeField<String> CODE_IS_INACTIVE
public static final DefectCodeField<String> CODE_GROUP_IS_USABLE
public static final DefectCodeLink<DefectCodeGroup> TO_DEFECT_CODE_GROUP
public static final DefectCodeLink<DefectCodeText> TO_TEXT
public DefectCode()
public DefectCode(@Nullable String defectCodeGroup, @Nullable String defectCode, @Nullable String codeIsInactive, @Nullable String codeGroupIsUsable, @Nullable ErpConfigContext erpConfigContext, @Nullable DefectCodeGroup toDefectCodeGroup, List<DefectCodeText> toText)
public Class<DefectCode> getType()
getType
in class VdmObject<DefectCode>
public void setDefectCodeGroup(@Nullable String defectCodeGroup)
Original property name from the Odata EDM: DefectCodeGroup
defectCodeGroup
- Defect Code Grouppublic void setDefectCode(@Nullable String defectCode)
Original property name from the Odata EDM: DefectCode
defectCode
- Defect Codepublic void setCodeIsInactive(@Nullable String codeIsInactive)
Original property name from the Odata EDM: CodeIsInactive
codeIsInactive
- Status of Code Group or Code Recordpublic void setCodeGroupIsUsable(@Nullable String codeGroupIsUsable)
Original property name from the Odata EDM: CodeGroupIsUsable
codeGroupIsUsable
- Code Group Is Usableprotected String getEntityCollection()
getEntityCollection
in class VdmEntity<DefectCode>
protected Map<String,Object> getKey()
getKey
in class VdmObject<DefectCode>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<DefectCode>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<DefectCode>
@Nonnull public static <T> DefectCodeField<T> field(@Nonnull String fieldName, @Nonnull 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.@Nonnull public static <T,DomainT> DefectCodeField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<DefectCode>
public DefectCodeGroup fetchDefectCodeGroup() 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 DefectCodeGroup getDefectCodeGroupOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_DefectCodeGroup of a queried DefectCode 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 Optional<DefectCodeGroup> getDefectCodeGroupIfPresent()
If the navigation property for an entity DefectCode has not been resolved yet, this method will not query further information. Instead its Optional
result state will be empty
.
Optional
with result state empty
is returned.public void setDefectCodeGroup(DefectCodeGroup value)
value
- New DefectCodeGroup entity.public List<DefectCodeText> fetchText() 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<DefectCodeText> getTextOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_Text of a queried DefectCode 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 Optional<List<DefectCodeText>> getTextIfPresent()
If the navigation property for an entity DefectCode has not been resolved yet, this method will not query further information. Instead its Optional
result state will be empty
.
Optional
with result state empty
is returned.public void setText(@Nonnull List<DefectCodeText> value)
If the navigation property to_Text of a queried DefectCode 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 DefectCodeText entities.public void addText(DefectCodeText... entity)
If the navigation property to_Text of a queried DefectCode 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 DefectCodeText entities.public static DefectCode.DefectCodeBuilder builder()
@Nullable public String getDefectCodeGroup()
Original property name from the Odata EDM: DefectCodeGroup
@Nullable public String getDefectCode()
Original property name from the Odata EDM: DefectCode
@Nullable public String getCodeIsInactive()
Original property name from the Odata EDM: CodeIsInactive
@Nullable public String getCodeGroupIsUsable()
Original property name from the Odata EDM: CodeGroupIsUsable
@Nullable public ErpConfigContext getErpConfigContext()
public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
setErpConfigContext
in class VdmEntity<DefectCode>
erpConfigContext
- public String toString()
toString
in class VdmObject<DefectCode>
public boolean equals(Object o)
equals
in class VdmObject<DefectCode>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<DefectCode>
public int hashCode()
hashCode
in class VdmObject<DefectCode>
Copyright © 2018 SAP SE. All rights reserved.