public class EntProjPriorityCode extends VdmEntity<EntProjPriorityCode>
Original entity name from the Odata EDM: EntProjPriorityCodeType
Modifier and Type | Class and Description |
---|---|
static class |
EntProjPriorityCode.EntProjPriorityCodeBuilder
Helper class to allow for fluent creation of EntProjPriorityCode instances.
|
Modifier and Type | Field and Description |
---|---|
static SimpleProperty<EntProjPriorityCode> |
ALL_FIELDS
Selector for all available fields of EntProjPriorityCode.
|
static SimpleProperty.String<EntProjPriorityCode> |
PRIORITY_CODE |
static SimpleProperty.String<EntProjPriorityCode> |
PRIORITY_CODE_NAME |
static NavigationProperty.Collection<EntProjPriorityCode,EntProjPriorityCodeText> |
TO__PRIORITY_CODE_TEXT
Use with available request builders to apply the _PriorityCodeText navigation property to query
operations.
|
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS
Constructor and Description |
---|
EntProjPriorityCode() |
EntProjPriorityCode(String priorityCode,
String priorityCodeName,
List<EntProjPriorityCodeText> to_PriorityCodeText) |
Modifier and Type | Method and Description |
---|---|
void |
addPriorityCodeText(EntProjPriorityCodeText... entity)
Adds elements to the list of associated EntProjPriorityCodeText entities.
|
static EntProjPriorityCode.EntProjPriorityCodeBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
protected void |
fromMap(Map<String,Object> inputValues)
Read entity data from generic map.
|
protected String |
getDefaultServicePath()
Used by request builders and navigation property methods to construct OData requests.
|
protected String |
getEntityCollection()
Used by request builders and navigation property methods to construct OData requests.
|
protected ODataEntityKey |
getKey() |
String |
getOdataType() |
String |
getPriorityCode()
(Key Field) Constraints: Not nullable, Maximum length: 3
|
String |
getPriorityCodeName()
Constraints: Not nullable, Maximum length: 40
|
io.vavr.control.Option<List<EntProjPriorityCodeText>> |
getPriorityCodeTextIfPresent()
Retrieval of associated EntProjPriorityCodeText entities (one to many).
|
Class<EntProjPriorityCode> |
getType() |
int |
hashCode() |
void |
setPriorityCode(String priorityCode)
(Key Field) Constraints: Not nullable, Maximum length: 3
|
void |
setPriorityCodeName(String priorityCodeName)
Constraints: Not nullable, Maximum length: 40
|
void |
setPriorityCodeText(List<EntProjPriorityCodeText> value)
Overwrites the list of associated EntProjPriorityCodeText entities for the loaded navigation property
_PriorityCodeText.
|
protected Map<String,Object> |
toMapOfFields()
Get all fields as map.
|
protected Map<String,Object> |
toMapOfNavigationProperties()
Get navigation properties as map.
|
String |
toString() |
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifier
getAnnotationProperties, getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final SimpleProperty<EntProjPriorityCode> ALL_FIELDS
public static final SimpleProperty.String<EntProjPriorityCode> PRIORITY_CODE
public static final SimpleProperty.String<EntProjPriorityCode> PRIORITY_CODE_NAME
public static final NavigationProperty.Collection<EntProjPriorityCode,EntProjPriorityCodeText> TO__PRIORITY_CODE_TEXT
@Nonnull public Class<EntProjPriorityCode> getType()
getType
in class VdmObject<EntProjPriorityCode>
public void setPriorityCode(@Nullable String priorityCode)
Original property name from the Odata EDM: PriorityCode
priorityCode
- The priorityCode to set.public void setPriorityCodeName(@Nullable String priorityCodeName)
Original property name from the Odata EDM: PriorityCodeName
priorityCodeName
- Object Nameprotected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<EntProjPriorityCode>
@Nonnull protected ODataEntityKey getKey()
getKey
in class VdmObject<EntProjPriorityCode>
@Nonnull protected Map<String,Object> toMapOfFields()
VdmObject
toMapOfFields
in class VdmObject<EntProjPriorityCode>
protected void fromMap(Map<String,Object> inputValues)
VdmObject
fromMap
in class VdmObject<EntProjPriorityCode>
inputValues
- The key-value map.protected String getDefaultServicePath()
VdmEntity
getDefaultServicePath
in class VdmEntity<EntProjPriorityCode>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
VdmObject
toMapOfNavigationProperties
in class VdmObject<EntProjPriorityCode>
@Nonnull public io.vavr.control.Option<List<EntProjPriorityCodeText>> getPriorityCodeTextIfPresent()
If the navigation property for an entity EntProjPriorityCode has not been resolved yet, this method will
not query further information. Instead its Option
result state will be empty
.
Option
with result state
empty
is returned.public void setPriorityCodeText(@Nonnull List<EntProjPriorityCodeText> value)
If the navigation property _PriorityCodeText of a queried EntProjPriorityCode 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 EntProjPriorityCodeText entities.public void addPriorityCodeText(EntProjPriorityCodeText... entity)
If the navigation property _PriorityCodeText of a queried EntProjPriorityCode 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 EntProjPriorityCodeText entities.@Nonnull public static EntProjPriorityCode.EntProjPriorityCodeBuilder builder()
@Nullable public String getPriorityCode()
Original property name from the Odata EDM: PriorityCode
@Nullable public String getPriorityCodeName()
Original property name from the Odata EDM: PriorityCodeName
@Nonnull public String toString()
toString
in class VdmObject<EntProjPriorityCode>
public boolean equals(@Nullable Object o)
equals
in class VdmEntity<EntProjPriorityCode>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmEntity<EntProjPriorityCode>
public int hashCode()
hashCode
in class VdmEntity<EntProjPriorityCode>
public String getOdataType()
getOdataType
in class VdmObject<EntProjPriorityCode>
Copyright © 2021 SAP SE. All rights reserved.