public class DefectCode extends VdmEntity<DefectCode>
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.
|
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() |
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.
|
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
|
DefectCodeGroup |
getDefectCodeGroupOrFetch()
Retrieval of associated DefectCodeGroup entity (one to one).
|
com.google.common.base.Optional<DefectCodeGroup> |
getDefectCodeGroupOrNull()
Retrieval of associated DefectCodeGroup entity (one to one).
|
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
List<DefectCodeText> |
getTextOrFetch()
Retrieval of associated DefectCodeText entities (one to many).
|
com.google.common.base.Optional<List<DefectCodeText>> |
getTextOrNull()
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 value)
(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.
|
String |
toString() |
getCustomField, getCustomField, getCustomFieldNames, getCustomFields, hasCustomField, hasCustomField, setCustomField, setCustomField
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
@Generated(value="lombok") public DefectCode()
@ConstructorProperties(value={"defectCodeGroup","defectCode","codeIsInactive","codeGroupIsUsable","erpConfigContext","toDefectCodeGroup","toText"}) @Generated(value="lombok") 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 static <T> DefectCodeField<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 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 com.google.common.base.Optional<DefectCodeGroup> getDefectCodeGroupOrNull()
If the navigation property to_DefectCodeGroup for an entity DefectCode has not been resolved yet, this method will not query further information. Instead its Optional result state will be null.
public void setDefectCodeGroup(DefectCodeGroup value)
value
- New DefectCodeGroup entity.public void setDefectCodeGroup(String value)
value
- defectCodeGrouppublic 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 com.google.common.base.Optional<List<DefectCodeText>> getTextOrNull()
If the navigation property to_Text for an entity DefectCode has not been resolved yet, this method will not query further information. Instead its Optional result state will be null.
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.@Generated(value="lombok") public static DefectCode.DefectCodeBuilder builder()
@Nullable @Generated(value="lombok") public String getDefectCodeGroup()
@Nullable @Generated(value="lombok") public String getDefectCode()
@Nullable @Generated(value="lombok") public String getCodeIsInactive()
@Nullable @Generated(value="lombok") public String getCodeGroupIsUsable()
@Nullable @Generated(value="lombok") public ErpConfigContext getErpConfigContext()
@Generated(value="lombok") public void setDefectCode(@Nullable String defectCode)
defectCode
- @Generated(value="lombok") public void setCodeIsInactive(@Nullable String codeIsInactive)
codeIsInactive
- @Generated(value="lombok") public void setCodeGroupIsUsable(@Nullable String codeGroupIsUsable)
codeGroupIsUsable
- @Generated(value="lombok") public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
erpConfigContext
- @Generated(value="lombok") public String toString()
toString
in class VdmObject<DefectCode>
@Generated(value="lombok") public boolean equals(Object o)
equals
in class VdmObject<DefectCode>
@Generated(value="lombok") public int hashCode()
hashCode
in class VdmObject<DefectCode>
Copyright © 2018 SAP SE. All rights reserved.